-
Notifications
You must be signed in to change notification settings - Fork 122
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
Migrate to viem #123
Migrate to viem #123
Conversation
🦋 Changeset detectedLatest commit: 7df4975 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
||
**BREAKING** Migrated to [viem](https://viem.sh). Notes: | ||
|
||
Ponder projects must now use **Node 18** or a fetch polyfill (see [viem docs](https://viem.sh/docs/compatibility.html)). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively node --experimental-fetch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, interesting. I suppose users could change their package.json like this (just tested, works on Node 16). Pretty ugly though!
// before
{
"scripts": {
"dev": "ponder dev",
},
}
// after
{
"scripts": {
"dev": "node --experimental-fetch node_modules/@ponder/core/dist/bin/ponder.js dev",
},
}
Migrates to viem!
event.block
,event.transaction
, andevent.log
are nowbigint
instead ofethers.BigNumber
.context.contracts
objects will also have slightly different types.Fixes #5, #74, #43