From 08dfefc3a03253f1c9c865f8d49d7cdc92db5d82 Mon Sep 17 00:00:00 2001 From: Md Zartaj Afser Date: Mon, 25 Mar 2024 15:29:23 +0530 Subject: [PATCH] added linea config --- hardhat.config.js | 29 ++++++++++++++----- .../2_deployEPNSCommV1.config.js | 10 +++++-- .../3_deployEPNSCoreV2.config.js | 3 -- .../4_deployEPNSCommV2.config.js | 5 +++- .../5_deployEPNSCoreV3.config.js | 3 -- .../6_deployEPNSCommV3.config.js | 5 +++- 6 files changed, 38 insertions(+), 17 deletions(-) diff --git a/hardhat.config.js b/hardhat.config.js index a2f274dd..889ade2b 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -146,8 +146,14 @@ module.exports = { }, // Linea Chain - linea: { - url: `https://rpc.goerli.linea.build/`, + lineaSepolia: { + url: `https://rpc.sepolia.linea.build`, + accounts: [process.env.PRIVATE] + + }, + + lineaMainnet: { + url: `https://rpc.linea.build`, accounts: [process.env.PRIVATE] }, @@ -190,7 +196,7 @@ module.exports = { }, etherscan: { apiKey: { - linea: process.env.ETHERSCAN_API, + lineaSepolia: process.env.ETHERSCAN_API, mainnet: process.env.ETHERSCAN_API, polygon: process.env.POLYGONSCAN_API, sepolia:process.env.ETHERSCAN_API, @@ -204,11 +210,20 @@ module.exports = { }, customChains: [ { - network: "linea", - chainId: 59140, + network: "lineaSepolia", + chainId: 59141, + urls: { + apiURL: "https://explorer.sepolia.linea.build/api", + browserURL: "https://sepolia.lineascan.build/", + }, + }, + + { + network: "lineaMainnet", + chainId: 59144, urls: { - apiURL: "https://explorer.goerli.linea.build/api", - browserURL: "https://explorer.goerli.linea.build/", + apiURL: "https://api.lineascan.build/api", + browserURL: "https://lineascan.build/", }, }, diff --git a/scripts/versioncontrol/2_deployEPNSCommV1.config.js b/scripts/versioncontrol/2_deployEPNSCommV1.config.js index e060724d..54712602 100644 --- a/scripts/versioncontrol/2_deployEPNSCommV1.config.js +++ b/scripts/versioncontrol/2_deployEPNSCommV1.config.js @@ -53,10 +53,16 @@ const deploy = { }, X1:{ version: 1 - } + }, + lineaMainnet: { + version: 1 + }, + lineaSepolia: { + version: 1 + }, }, args: { - chainName: null + chainName: "Linea-Sepolia" } } diff --git a/scripts/versioncontrol/3_deployEPNSCoreV2.config.js b/scripts/versioncontrol/3_deployEPNSCoreV2.config.js index 15c2b8b0..4d978740 100644 --- a/scripts/versioncontrol/3_deployEPNSCoreV2.config.js +++ b/scripts/versioncontrol/3_deployEPNSCoreV2.config.js @@ -42,9 +42,6 @@ const deploy = { polygon: { version: 1 }, - linea: { - version: 1 - }, bscMainnet: { version: 1 }, diff --git a/scripts/versioncontrol/4_deployEPNSCommV2.config.js b/scripts/versioncontrol/4_deployEPNSCommV2.config.js index 16aa6c62..f289ef9c 100644 --- a/scripts/versioncontrol/4_deployEPNSCommV2.config.js +++ b/scripts/versioncontrol/4_deployEPNSCommV2.config.js @@ -42,7 +42,10 @@ const deploy = { polygon: { version: 1 }, - linea: { + lineaMainnet: { + version: 1 + }, + lineaSepolia: { version: 1 }, bscMainnet: { diff --git a/scripts/versioncontrol/5_deployEPNSCoreV3.config.js b/scripts/versioncontrol/5_deployEPNSCoreV3.config.js index 15c2b8b0..4d978740 100644 --- a/scripts/versioncontrol/5_deployEPNSCoreV3.config.js +++ b/scripts/versioncontrol/5_deployEPNSCoreV3.config.js @@ -42,9 +42,6 @@ const deploy = { polygon: { version: 1 }, - linea: { - version: 1 - }, bscMainnet: { version: 1 }, diff --git a/scripts/versioncontrol/6_deployEPNSCommV3.config.js b/scripts/versioncontrol/6_deployEPNSCommV3.config.js index 16aa6c62..f289ef9c 100644 --- a/scripts/versioncontrol/6_deployEPNSCommV3.config.js +++ b/scripts/versioncontrol/6_deployEPNSCommV3.config.js @@ -42,7 +42,10 @@ const deploy = { polygon: { version: 1 }, - linea: { + lineaMainnet: { + version: 1 + }, + lineaSepolia: { version: 1 }, bscMainnet: {