• Mark Tyneway's avatar
    contracts-bedrock: add forge contract verification support (#3141) · 28649d64
    Mark Tyneway authored
    * contracts-bedrock: add forge contract verification support
    
    Add etherscan contract verification for the hh/foundry
    compiler toolchain. This will eventually be upstreamed,
    but is implemented here to ensure that it works thoroughly
    first.
    
    To run the task:
    
    ```
    export ETHERSCAN_API_KEY=$(cat api-key.txt)
    $ npx hardhat forge-verify --network goerli
    ```
    
    In the future, other contract verification backends
    will be added to forge and this task will be updated
    to support them.
    
    Example contract that was verified: https://goerli.etherscan.io/address/0x1234662682c85fa6fb375416d14db965eba222ba#code
    
    An individual contract can be targeted instead of all of them
    with the `--contract` flag. If hardhat deploy has configured
    external deployments, forge will not be able to verify them.
    It may be possible to implement that in the future.
    
    * contracts-bedrock: modularize tasks
    28649d64
Name
Last commit
Last update
..
contracts Loading commit data...
deploy Loading commit data...
deploy-config Loading commit data...
deployments/goerli Loading commit data...
scripts Loading commit data...
src Loading commit data...
tasks Loading commit data...
.eslintignore Loading commit data...
.eslintrc.js Loading commit data...
.gas-snapshot Loading commit data...
.gitignore Loading commit data...
.npmignore Loading commit data...
.prettierignore Loading commit data...
.prettierrc.js Loading commit data...
.solhint.json Loading commit data...
.solhintignore Loading commit data...
.storage-layout Loading commit data...
CHANGELOG.md Loading commit data...
LICENSE Loading commit data...
README.md Loading commit data...
foundry.toml Loading commit data...
hardhat.config.ts Loading commit data...
package.json Loading commit data...
slither.config.json Loading commit data...
slither.db.json Loading commit data...
tsconfig.json Loading commit data...