shazow / whatsabi

Extract the ABI (and resolve proxies, and get other metadata) from Ethereum bytecode, even without source code.
https://shazow.github.io/whatsabi/
MIT License
1.04k stars 71 forks source link

feat: getContract #77

Closed SonOfMosiah closed 8 months ago

SonOfMosiah commented 8 months ago

Types for EvmVersion and ContractData (return value for getContract)

Implementation for Etherscan + Sourcify getContract()

shazow commented 8 months ago

Also apologies if it's not ready for review yet. 😅

SonOfMosiah commented 8 months ago

Created it as a draft so you wouldn't feel obligated to review before tests were up. I'll write a few tests and then we can get this merged.

shazow commented 8 months ago

Too hyped! lol

SonOfMosiah commented 8 months ago

Happy to have you merge. Looks like tests are just failing due to missing keys/providers in the github action.

shazow commented 8 months ago

Yea, secrets don't get included in actions from third-party PRs.

shazow commented 8 months ago

Thank you for doing this!