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.07k stars 77 forks source link

Adding AnyABI loader #156

Open k-thornton opened 1 week ago

k-thornton commented 1 week ago

Adding AnyABI to the list of ABI loaders

Resolves https://github.com/shazow/whatsabi/issues/90

k-thornton commented 1 week ago

I ran a couple of tests with loadAbi, and autoLoad with loadContractResult = true and false. Seemed to work ok.

For testing, I found a valid contract address that AnyABI wasn't aware of ChainId: 8453, address: 0x5525a074fcfae303d5fcc1ee6ed6c40f5ff8811a

I tested that it loaded ABIs successfully from Ethereum and Base, but didn't test much further.

shazow commented 1 week ago

Thank you, I'll try to get this reviewed soon!