Add option to pull bytecode and contract source code with etherscan api #2849
Unanswered
roninjin10
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What
Add options to etherscan plugin to optionally pull down the bytecode or contract source code from etherscan api. By default these would both be off.
Why Bytecode?
Bytecode is useful because with the bytecode one can deploy the contract they are pulling to anvil if they aren't forking. Could even generate vanillajs functions to deploy contracts to an rpc url
Why source code?
Source code is useful for being able to read the source code. When using foundry plugin the user has the source code already and it is useful to have the source code to reference when using etherscan plugin too. It would get written to it's own folder and pulling down the source code would allow me to use Wagmi plugins in their pure form for EVMts.
EVMts
In EVMts I rolled my own etherscan plugin but used Wagmi-cli under the hood . I rolled my own so I can grab the contract source code and eventually also the bytecode. I need the source code so stuff like go-to-definition still takes someone to the solidity contract as expected. If this change happened I would be able to assist in maintaining the cli for EVMts as it would be nearly 100% shared code
Beta Was this translation helpful? Give feedback.
All reactions