Skip to content

Commit

Permalink
docs(verify-bytecode): updating forge verify-bytecode docs. (#1262)
Browse files Browse the repository at this point in the history
  • Loading branch information
blmalone committed Aug 22, 2024
1 parent 2fdeede commit 160700e
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions src/reference/cli/forge/verify-bytecode.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ Verify the deployed bytecode against its source

```bash
$ forge verify-bytecode --help
Usage: forge verify-bytecode [OPTIONS] <ADDRESS> <CONTRACT> [ROOT]
Verify the deployed bytecode against its source on Etherscan

Usage: forge verify-bytecode [OPTIONS] <ADDRESS> <CONTRACT>

Arguments:
<ADDRESS>
Expand All @@ -13,9 +15,6 @@ Arguments:
<CONTRACT>
The contract identifier in the form `<path>:<contractname>`

[ROOT]
The path to the project's root directory
Options:
--block <BLOCK>
The block at which the bytecode should be verified
Expand All @@ -31,27 +30,44 @@ Options:

-r, --rpc-url <RPC_URL>
The rpc url to use for verification

[env: ETH_RPC_URL=]

-e, --etherscan-api-key <KEY>
The Etherscan (or equivalent) API key

[env: ETHERSCAN_API_KEY=]

-c, --chain <CHAIN>
The chain name or EIP-155 chain ID
[env: CHAIN=]

--skip <SKIP>...
Skip building files whose names contain the given filter.
`test` and `script` are aliases for `.t.sol` and `.s.sol`.
[env: CHAIN=]

--json
Suppress logs and emit json results to stdout

--root <PATH>
The project's root path.
By default root of the Git repository, if in one, or the current working directory.
--ignore <BYTECODE_TYPE>
Ignore verification for creation or runtime bytecode
[possible values: creation, runtime]
-h, --help
Print help (see a summary with '-h')
Verifier options:
--verifier <VERIFIER>
The contract verification provider to use
[default: etherscan]
[possible values: etherscan, sourcify, blockscout, oklink]
--verifier-url <VERIFIER_URL>
The verifier URL, if using a custom provider
[env: VERIFIER_URL=]
```

0 comments on commit 160700e

Please sign in to comment.