Skip to content

Commit f753f74

Browse files
committed
Add @nomicfoundation/hardhat-verify
1 parent cbd08f8 commit f753f74

3 files changed

Lines changed: 65 additions & 3 deletions

File tree

hardhat.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const { FORKED_XDAI_CHAINID } = require("./helpers/constants");
1313

1414
require("@nomiclabs/hardhat-ethers");
1515
require("@nomiclabs/hardhat-truffle5");
16+
require("@nomicfoundation/hardhat-verify");
1617
require("@solidstate/hardhat-4byte-uploader");
1718
require("hardhat-contract-sizer");
1819
require("hardhat-storage-layout-changes");
@@ -135,6 +136,24 @@ module.exports = {
135136
storageLayoutChanges: {
136137
contracts: [],
137138
},
139+
sourcify: {
140+
enabled: false,
141+
},
142+
etherscan: {
143+
apiKey: {
144+
development: "any-string-can-go-here",
145+
},
146+
customChains: [
147+
{
148+
network: "development",
149+
chainId: Number(process.env.CHAIN_ID) || FORKED_XDAI_CHAINID,
150+
urls: {
151+
apiURL: "http://localhost:80/api",
152+
browserURL: "http://localhost:80",
153+
},
154+
},
155+
],
156+
},
138157
networks: {
139158
arbitrum: {
140159
chainId: 42161,

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
"@grpc/proto-loader": "^0.7.13",
8686
"@nomicfoundation/hardhat-ethers": "^3.0.8",
8787
"@nomicfoundation/hardhat-network-helpers": "^1.0.12",
88+
"@nomicfoundation/hardhat-verify": "^2.0.12",
8889
"@nomiclabs/hardhat-ethers": "^2.2.3",
8990
"@nomiclabs/hardhat-truffle5": "^2.0.7",
9091
"@openzeppelin/contracts": "^4.9.6",

pnpm-lock.yaml

Lines changed: 45 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)