From bbce9728044ca707c0b00281ac3190722274dc53 Mon Sep 17 00:00:00 2001 From: Pascal Marco Caversaccio Date: Mon, 29 Apr 2024 14:19:05 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9E=95=20Add=20Mode=20Main=20Network=20Deplo?= =?UTF-8?q?yment?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal Marco Caversaccio --- README.md | 1 + deployments/deployments.json | 8 ++++++++ hardhat.config.ts | 16 +++++++++++++++- package.json | 1 + 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1f98d617..472aeed1 100644 --- a/README.md +++ b/README.md @@ -2207,6 +2207,7 @@ To verify a deployed [`CreateX`](./src/CreateX.sol) contract on a block explorer - [Endurance](https://explorer-endurance.fusionist.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed) - [Kava](https://kavascan.com/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed) - [Metis Andromeda](https://andromeda-explorer.metis.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed) +- [Mode](https://explorer.mode.network/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed) #### Ethereum Test Networks diff --git a/deployments/deployments.json b/deployments/deployments.json index 2b6f8b87..c41b96c9 100644 --- a/deployments/deployments.json +++ b/deployments/deployments.json @@ -254,6 +254,14 @@ "https://andromeda-explorer.metis.io/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed" ] }, + { + "name": "Mode", + "chainId": 34443, + "urls": [ + "https://explorer.mode.network/address/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed", + "https://repo.sourcify.dev/contracts/partial_match/34443/0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed/" + ] + }, { "name": "Sepolia", "chainId": 11155111, diff --git a/hardhat.config.ts b/hardhat.config.ts index 9093ab60..80346ffc 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -517,6 +517,11 @@ const config: HardhatUserConfig = { url: vars.get("MODE_TESTNET_URL", "https://sepolia.mode.network"), accounts, }, + modeMain: { + chainId: 34443, + url: vars.get("MODE_MAINNET_URL", "https://mainnet.mode.network"), + accounts, + }, }, contractSizer: { alphaSort: true, @@ -656,7 +661,8 @@ const config: HardhatUserConfig = { // For Metis testnet & mainnet metis: vars.get("METIS_API_KEY", ""), metisTestnet: vars.get("METIS_API_KEY", ""), - // For Mode testnet + // For Mode testnet & mainnet + mode: vars.get("MODE_API_KEY", ""), modeTestnet: vars.get("MODE_API_KEY", ""), }, customChains: [ @@ -1078,6 +1084,14 @@ const config: HardhatUserConfig = { browserURL: "https://sepolia-explorer.metisdevops.link", }, }, + { + network: "mode", + chainId: 34443, + urls: { + apiURL: "https://explorer.mode.network/api", + browserURL: "https://explorer.mode.network", + }, + }, { network: "modeTestnet", chainId: 919, diff --git a/package.json b/package.json index f0609eba..13a3674f 100644 --- a/package.json +++ b/package.json @@ -116,6 +116,7 @@ "deploy:metistestnet": "npx hardhat run --no-compile --network metisTestnet scripts/deploy.ts", "deploy:metismain": "npx hardhat run --no-compile --network metisMain scripts/deploy.ts", "deploy:modetestnet": "npx hardhat run --no-compile --network modeTestnet scripts/deploy.ts", + "deploy:modemain": "npx hardhat run --no-compile --network modeMain scripts/deploy.ts", "prettier:check": "npx prettier -c \"**/*.{js,ts,md,sol,json,yml,yaml}\"", "prettier:check:interface": "cd interface && pnpm prettier:check", "prettier:fix": "npx prettier -w \"**/*.{js,ts,md,sol,json,yml,yaml}\"",