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

Get contracts to compile, add viem.sh, and create examples for it #51

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

haydenshively
Copy link
Member

@aneesh1, intention here is not necessarily to merge, but just to give you something to look at when migrating your code to viem. You can copy/paste the typescript ABIs to replace the JSONs, but aside from that this is really just a bare-bones example.

Some neat features of viem that you'll be able to take advantage of (off the top of my head):

  • built-in multicall
  • built-in polling to enable watching events even without a websocket connection
  • better quorums/fallbacks than ethers
  • transaction .estimateGas, .write and .simulate (probably won't need .simulate, but it's nice to have)

It also picks up types from the ABIs for better IDE integration and uses native bigint instead of BigNumber, so dev experience is significantly better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant