hop-protocol / hop

🐰 Hop Protocol Monorepo
https://hop.exchange/
MIT License
2.85k stars 188 forks source link

core: Replace typechain with abitype #584

Closed miguelmota closed 9 months ago

netlify[bot] commented 9 months ago

Deploy Preview for hop-explorer-goerli ready!

Name Link
Latest commit 359741b24c72b1caa2e2f984adf9c709c35663b3
Latest deploy log https://app.netlify.com/sites/hop-explorer-goerli/deploys/65cf96991b87da0007dbd42f
Deploy Preview https://deploy-preview-584--hop-explorer-goerli.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

netlify[bot] commented 9 months ago

Deploy Preview for hop-sdk-docs canceled.

Name Link
Latest commit ea8e7757bdfa5bf54641d4bf02fc16bd30f0fbce
Latest deploy log https://app.netlify.com/sites/hop-sdk-docs/deploys/65d2f825f80afa00087a1a2d
miguelmota commented 9 months ago

Closing draft PR.

Reasons / issues I ran into:

Possible solution:

Ricmoo from ethers mentioned two weeks in an issue thread he's working on a version of Contracts based on abitype. Given that, I think it makes sense to try to upgrade to ethers@6 at some point and use the typed Contract class when it's ready if the plan is to stick with ethers long term. Migrating to viem could also be a good alternative. Of course neither solution is trivial so would require more thought. In the meantime, sticking with typechain and ethers@5 shouldn't be an issue.