trueblocks-core icon indicating copy to clipboard operation
trueblocks-core copied to clipboard

chifra abis: Allow easier adding of function/event/parameter lists to chifra abis --find

Open tjayrush opened this issue 4 years ago • 2 comments

Currently, if we want to add a function name, event name, or parameter name to the files used by chifra abis --find, we have to hand edit. It would be easy to add an option to update those files through the command line. Something like

chifra abis add --function <function_name>,
chifra abis add --event <event_name>, or
chifra abis add --params <param_list>

tjayrush avatar Jul 07 '21 18:07 tjayrush

So this would be for a user who is working with a particular contract, where the contract ABI is missing an element (no signature -> name map). If the user knew the name, they could chifra abis add and that would save it locally for future use?

perama-v avatar Jul 08 '21 10:07 perama-v

Yes. That would save it locally for future use, but at some point it would be cool if those new signatures could be shared with the community at large in a way that is (a) automatic, and (b) free, and (c) not fakable. With signatures and four-bytes the seems possible using technics we've seen in the local-first article. With names/address pairs, it's not so simple.

tjayrush avatar Jul 08 '21 10:07 tjayrush

chifra abis --find is on hold. Closing until needed.

tjayrush avatar Oct 10 '23 02:10 tjayrush