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 faa0da5 commit 888ff6b
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 @@ -64,6 +64,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 @@ -123,6 +123,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 @@ -151,9 +155,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 @@ -217,6 +222,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 888ff6b

Please sign in to comment.