Open allenday opened 1 year ago
This looks interesting, I think I'll address this in the Etherface re-write. In general this would require changes to the parser.rs
module as well as the introduction of a parameter
table with a n-m mapping to the signature
table.
Edit from #10:
The current approach to scraping function, event and error signatures from source code consists of finding these on Etherscan and GitHub. Once found the parser extracts these signatures with RegEx and inserts them into the database. To support mapping named parameters to their signatures we would need to extract these and insert them into the database also. [...]
in many cases it will be enough to get the ABI, e.g. https://etherscan.io/address/0xbe6161704f1f5cd89f49f790137f33cef2bb8554#code
Only works for Etherscan though, because most GitHub repositories don't provide an ABI.
And #15 Polygon
I'm not sure the overlap but the # of contracts is about 1/10 of what's on ETH
Testnets I think we should ignore.
This will be helpful for ABI and event decoding directly in a database query. For example:
Returns a record with this event:
and this function:
While it's useful to have the 4byte method signature, it's also useful to be able to map these, respectively, to:
and
for the purpose of creating decoded function/event tables with named parameters.