From 888ff6bc507831e73264ec7a811d17ada8090917 Mon Sep 17 00:00:00 2001 From: Tomi_Ohl Date: Wed, 24 Jul 2024 19:01:52 +0200 Subject: [PATCH] Add mode to hardhat config --- README.md | 1 + hardhat.config.ts | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a367f64..86d7720 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/hardhat.config.ts b/hardhat.config.ts index 802e3a5..b0dae59 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -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: { @@ -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: [ { @@ -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" + } } ] },