Skip to content

Commit

Permalink
Add mode to hardhat config
Browse files Browse the repository at this point in the history
  • Loading branch information
TomiOhl committed Jul 24, 2024
1 parent 793a251 commit 8aeada2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ Networks can be configured in _[hardhat.config.ts](hardhat.config.ts)_. We've pr
- `scroll` (Scroll)
- `zeta` (ZetaChain Mainnet)
- `mint` (Mint Blockchain Mainnet)
- `mode` (Mode Network Mainnet)

## Verification

Expand Down
15 changes: 14 additions & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ const config: HardhatUserConfig = {
mint: {
url: "https://rpc.mintchain.io",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : []
},
mode: {
url: "https://mode.drpc.org",
accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : []
}
},
gasReporter: {
Expand Down Expand Up @@ -159,9 +163,10 @@ const config: HardhatUserConfig = {
metis: "metis",
neon: "neon",
polygonZkEVM: process.env.ZKEVM_POLYGONSCAN_API_KEY || "",
scroll: process.env.SCROLLSCAN_API_KEY || ""
scroll: process.env.SCROLLSCAN_API_KEY || "",
// zeta: "", // no etherscan
// mint: "", // no etherscan
mode: "mode"
},
customChains: [
{
Expand Down Expand Up @@ -225,6 +230,14 @@ const config: HardhatUserConfig = {
apiURL: "https://api.scrollscan.com/api",
browserURL: "https://scrollscan.com"
}
},
{
network: "mode",
chainId: 34443,
urls: {
apiURL: "https://api.routescan.io/v2/network/mainnet/evm/34443/etherscan",
browserURL: "https://modescan.io"
}
}
]
},
Expand Down

0 comments on commit 8aeada2

Please sign in to comment.