Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a stackblitz using op-viem #93

Open
roninjin10 opened this issue Sep 16, 2023 · 2 comments
Open

Add a stackblitz using op-viem #93

roninjin10 opened this issue Sep 16, 2023 · 2 comments
Labels
state: backlog This is pending further review type: enhancement New feature or request

Comments

@roninjin10
Copy link
Contributor

Add a sharable example of using op-viem to mint an nft on l2 from l1

@wbnns wbnns added state: backlog This is pending further review type: enhancement New feature or request labels Oct 4, 2023
@sbauch
Copy link

sbauch commented Oct 12, 2023

I've got a first pass at this after DMing with @roninjin10 about it!

here's the relevant part of the code in my repo - https://github.com/sbauch/op-viem-contract-deposit-example/blob/main/src/App.tsx

Struggled a bit getting set up, and some TODOs before I go too far:

  • I am using a version of this package published here, which seems a bit more recent than the canonical package - https://www.npmjs.com/package/@roninjin10/op-viem
  • Should the example include contract source so that the stackblitz can be used to mint an L2 NFT? Is there maybe an NFT contract already deployed that's worth using here? I'm just using a random address for now, and the repo includes a contract borrowed from some EVMts examples
  • If the example should follow all the way through minting, then I'll want to add some functionality around tracking the transactions
  • unsure if this should be part of this repo, and haven't yet pushed anything to stackblitz, maybe it should be under your team?

@roninjin10
Copy link
Contributor Author

Yea looks good. I can publish the latest code for you. You would want this to be its own GitHub repo. We can fork it. Once you got a GitHub repo to open it in stack blitz you just go to the url with the GitHub url at the end like this https://stackblitz.com/~/github.com/evmts/evmts-vite-wagmi-example .

for the nft the contract you grabbed from evmts is deployed to op goerli. You can use that contract address

@zencephalon zencephalon removed their assignment Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: backlog This is pending further review type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants