• 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
.changeset Loading commit data...
.circleci Loading commit data...
.github Loading commit data...
.husky Loading commit data...
.vscode Loading commit data...
.yarn/releases Loading commit data...
batch-submitter Loading commit data...
bss-core Loading commit data...
gas-oracle Loading commit data...
indexer Loading commit data...
infra/op-replica Loading commit data...
integration-tests Loading commit data...
l2geth Loading commit data...
l2geth-exporter Loading commit data...
op-batcher Loading commit data...
op-bindings Loading commit data...
op-e2e Loading commit data...
op-exporter Loading commit data...
op-node Loading commit data...
op-proposer Loading commit data...
ops Loading commit data...
ops-bedrock Loading commit data...
packages Loading commit data...
patches Loading commit data...
proxyd Loading commit data...
specs Loading commit data...
state-surgery Loading commit data...
technical-documents Loading commit data...
teleportr Loading commit data...
.dockerignore Loading commit data...
.editorconfig Loading commit data...
.eslintrc.js Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.markdownlint.json Loading commit data...
.nvmrc Loading commit data...
.prettierrc.js Loading commit data...
.semgrepignore Loading commit data...
.yarnrc Loading commit data...
CONTRIBUTING.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
SECURITY.md Loading commit data...
cloudbuild.yaml Loading commit data...
go.work Loading commit data...
go.work.sum Loading commit data...
lerna.json Loading commit data...
package.json Loading commit data...
tsconfig.json Loading commit data...
yarn.lock Loading commit data...