Closed developerfred closed 1 month ago
I will update and test locally
@charles-cooper @DanielSchiavini
@charles-cooper @DanielSchiavini
Did you just take a screenshot of it passing the mock tests?
yeah, I can make a video too with a contract implemented and verified on the sepolia network
@charles-cooper Do you think we should create a list of pre-networks available for verification, for example optimism, polygon, sepolia or is this implicit for the developer?
superseded by https://github.com/vyperlang/titanoboa/pull/308
ref #267
What I did
I implemented a robust contract verification feature for the Boa framework, enabling seamless verification of deployed smart contracts on both Blockscout and Etherscan explorers. This enhancement significantly augments the developer experience by automating the often cumbersome process of contract verification, thus ensuring transparency and facilitating easier auditing of on-chain code.
How I did it
The implementation was meticulously crafted through the following steps:
ContractVerifier
class that encapsulates the logic for interacting with block explorer APIs, supporting both Blockscout and Etherscan.VyperDeployer
class, allowing for verification to be initiated immediately post-deployment.load
andloads
functions in the Boa framework to accept optionalverify
andexplorer
parameters, providing a user-friendly interface for contract deployment with verification.How to verify it
To verify the efficacy of this new feature:
BLOCKSCOUT_API_KEY
orETHERSCAN_API_KEY
) are set in your development environment.Manually deploy and verify a contract using the new API:
Description for the changelog
Added automated contract verification feature for Blockscout and Etherscan explorers:
Cute Animal Picture