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

proxies: Load possible selectors from DiamondProxies #45

Closed shazow closed 7 months ago

shazow commented 1 year ago

This is somewhat tricky as we need to read private variable storage, but should be doable if people need.

Some notes here: https://github.com/shazow/whatsabi/blob/7567fc9c2241915f19a86c6ec6a1efe43cd484d7/src.ts/proxies.ts#L142

shazow commented 1 year ago

@banteg casually drew the rest of the owl (thank you), just need to port it to typescript: https://gist.github.com/banteg/0cee21909f7c1baedfa6c3d96ffe94f2

shazow commented 7 months ago

Done!