Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Add verify command in generated bindings #72

Open
karacurt opened this issue Sep 26, 2024 · 1 comment
Open

Feature request: Add verify command in generated bindings #72

karacurt opened this issue Sep 26, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@karacurt
Copy link
Contributor

karacurt commented Sep 26, 2024

Problem: developers often need to verify the contracts on the chain after using the deploy command in a binding contract.
Solution: I propose implementing a verify command that could verify the contract and a --verify flag that could be used with a deploy command to deploy and verify in the same CLI call.

Example of what would be a verify command:

ERC20 verify --api-url api.rpc.com --api-key $API_KEY --contract TOKEN_ADDRESS --name Token --symbol Symbol --decimals 18

Example of what would be a --verify flag:

ERC20 deploy --rpc rpc.com --keyfile ~/.secrets/keyfile.json --name Token --symbol Symbol --decimals 18 --verify --api-url api.rpc.com --api-key $API_KEY
@zomglings
Copy link
Contributor

Each explorer API has a different format in which they accept verification data. e.g. I believe that Etherscan differs from Blockscout.

We should make a list of different APIs we need to support for verification - we can look at the Foundry or the Hardhat code to do this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants