• 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
..
check-l2-config.ts Loading commit data...
check-op-node.ts Loading commit data...
deposits.ts Loading commit data...
forge-verify.ts Loading commit data...
genesis-l1.ts Loading commit data...
genesis-l2.ts Loading commit data...
index.ts Loading commit data...
rekey.ts Loading commit data...
rollup-config.ts Loading commit data...
watch.ts Loading commit data...