Skip to content

Commit

Permalink
add contracts:verify
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Nov 29, 2023
1 parent 0009ff8 commit 8b7486e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,26 @@ Then you can deploy your contract
pnpm contracts:deploy <network>
```

And you can verify the contract

- on etherscan:

```bash
pnpm contracts:verify <network> etherscan
```

- using sourcify:

```bash
pnpm contracts:verify <network> sourcify
```

for etherscan if the network is not supported by default (no endpoint), you can provide your own:

```bash
pnpm contracts:verify <network> etherscan --endpoint <api endpoint url>
```

# Initial Setup

You need to have these installed
Expand Down
1 change: 1 addition & 0 deletions contracts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"execute": "ROCKETH_SKIP_ESBUILD=true ldenv -n HARDHAT_NETWORK -m localhost tsx @@",
"deploy": "ldenv hardhat --network @@MODE deploy @@",
"deploy:watch": "as-soon -w generated -w deploy pnpm run deploy",
"verify": "ldenv rocketh-verify -n @@MODE @@",
"test": "vitest",
"coverage:compile": "hardhat compile-for-coverage",
"coverage:watch:compile": "as-soon -w src pnpm coverage:compile",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"contracts:deploy": "ldenv -m localhost pnpm _contracts:deploy @@",
"contracts:deploy:prepare": "ldenv -m localhost ask-env -f contracts/.env.local ETH_NODE_URI_@@MODE MNEMONIC_@@MODE ETHERSCAN_API_KEY:?:ETHERSCAN_API_KEY @@",
"contracts:deploy:watch": "ldenv -m localhost pnpm _contracts:deploy:watch @@",
"contracts:verify": "pnpm --filter ./contracts verify",
"---------------------- RUN FULL LOCAL SETUP ----------------------": "",
"start:wezterm": "wezterm --config-file dev/wezterm.lua start $PWD",
"stop": "zellij kill-session $npm_package_name",
Expand Down

0 comments on commit 8b7486e

Please sign in to comment.