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.06k stars 74 forks source link

Port to other EVM compatible protocols #3

Closed carloscip closed 2 years ago

carloscip commented 2 years ago

Is it possible to allow user input of the abi, instead of an ethereum smart contract address so that it might be compatible with Avalanche for example?

shazow commented 2 years ago

It just takes EVM bytecode, selectorsFromBytecode(code) -- so yes, in however way you get EVM-style bytecode, it will work. I haven't tried it but Avalanche should be fine, let me know if there are issues. :)