hashgraph / hedera-smart-contracts

Contains Hedera Smart Contract Service supporting files
Apache License 2.0
37 stars 50 forks source link

provide "bulk operation" wrappers for the raw bytecode analyzer and slither tools #813

Open david-bakin-sl opened 1 week ago

david-bakin-sl commented 1 week ago

Given the (new) raw bytecode analyzer script and slither tools, provide small wrappers to do operations on multiple contracts at a time. Input would be a file containing a list of contract accounts, output would be either a single file containing all of the analyzed contracts (with separate lines indicating the contract account for each analysis) or a directory with one-file-per-analyzed contract, each with the contract account as its name. Then the set of results could be looked at for totals, trends, whatever.

Though these scripts are probably pretty easy it is worth doing once only since we'll surely use them multiple times.

(See related issue https://github.com/hashgraph/hedera-services/issues/13955 where it is proposed we have a way to get a list of all mainnet/testnet/previewnet contracts, which could be used to feed the script proposed here.)