Skip to content

Commit

Permalink
Add @nomicfoundation/hardhat-verify
Browse files Browse the repository at this point in the history
  • Loading branch information
kronosapiens committed Dec 10, 2024
1 parent 3f8df23 commit 1daef28
Show file tree
Hide file tree
Showing 3 changed files with 105 additions and 294 deletions.
19 changes: 19 additions & 0 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const { FORKED_XDAI_CHAINID } = require("./helpers/constants");

require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-truffle5");
require("@nomicfoundation/hardhat-verify");
require("@solidstate/hardhat-4byte-uploader");
require("hardhat-contract-sizer");
require("hardhat-storage-layout-changes");
Expand Down Expand Up @@ -109,6 +110,24 @@ module.exports = {
storageLayoutChanges: {
contracts: [],
},
sourcify: {
enabled: false,
},
etherscan: {
apiKey: {
development: "any-string-can-go-here",
},
customChains: [
{
network: "development",
chainId: Number(process.env.CHAIN_ID) || FORKED_XDAI_CHAINID,
urls: {
apiURL: "http://localhost:80/api",
browserURL: "http://localhost:80",
},
},
],
},
networks: {
development: {
url: "http://localhost:8545",
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
"@grpc/proto-loader": "^0.7.13",
"@nomicfoundation/hardhat-ethers": "^3.0.8",
"@nomicfoundation/hardhat-network-helpers": "^1.0.12",
"@nomicfoundation/hardhat-verify": "^2.0.12",
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@nomiclabs/hardhat-truffle5": "^2.0.7",
"@openzeppelin/contracts": "^4.9.6",
Expand Down
Loading

0 comments on commit 1daef28

Please sign in to comment.