From 3d030f7709b8816403dd7904456926543197f325 Mon Sep 17 00:00:00 2001 From: Md Zartaj Afser Date: Mon, 18 Mar 2024 19:59:33 +0530 Subject: [PATCH 1/3] Added support for Polygon Amoy --- hardhat.config.js | 16 +++++++++++++++- .../versioncontrol/2_deployEPNSCommV1.config.js | 3 +++ .../versioncontrol/4_deployEPNSCommV2.config.js | 3 +++ .../versioncontrol/6_deployEPNSCommV3.config.js | 3 +++ 4 files changed, 24 insertions(+), 1 deletion(-) diff --git a/hardhat.config.js b/hardhat.config.js index 0401e821..4e3712b2 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -102,6 +102,11 @@ module.exports = { }, }, + polygonAmoy: { + url: `https://rpc-amoy.polygon.technology/`, // <---- YOUR INFURA ID! (or it won't work) + accounts:[process.env.PRIVATE], + }, + // BSC Chain bscTestnet: { url: "https://data-seed-prebsc-1-s1.binance.org:8545/", @@ -198,7 +203,8 @@ module.exports = { fuseSpark: process.env.FUSE_API, arbitrumSepolia:process.env.ARBISCAN_API, optimismSepolia :process.env.OPTIMISM_API, - berachainTestnet: "apiNotRequired" + berachainTestnet: "apiNotRequired", + polygonAmoy:"OKLINK" }, customChains: [ { @@ -253,6 +259,14 @@ module.exports = { "https://api-sepolia-optimistic.etherscan.io/api", browserURL: "https://sepolia-optimistic.etherscan.io/", }, + }, + { + network: "polygonAmoy", + chainId: 80002, + urls: { + apiURL: "https://www.oklink.com/api/explorer/v1/contract/verify/async/api/polygon_amoy", + browserURL: "https://www.oklink.com/amoy" + } } ], }, diff --git a/scripts/versioncontrol/2_deployEPNSCommV1.config.js b/scripts/versioncontrol/2_deployEPNSCommV1.config.js index 76d43675..313c2925 100644 --- a/scripts/versioncontrol/2_deployEPNSCommV1.config.js +++ b/scripts/versioncontrol/2_deployEPNSCommV1.config.js @@ -56,6 +56,9 @@ const deploy = { }, optimismSepolia:{ version: 1, + }, + polygonAmoy:{ + version: 1 } }, args: { diff --git a/scripts/versioncontrol/4_deployEPNSCommV2.config.js b/scripts/versioncontrol/4_deployEPNSCommV2.config.js index 46569c94..926171c4 100644 --- a/scripts/versioncontrol/4_deployEPNSCommV2.config.js +++ b/scripts/versioncontrol/4_deployEPNSCommV2.config.js @@ -62,6 +62,9 @@ const deploy = { }, fuseSpark: { version: 1, + }, + polygonAmoy:{ + version: 1 } }, args: { diff --git a/scripts/versioncontrol/6_deployEPNSCommV3.config.js b/scripts/versioncontrol/6_deployEPNSCommV3.config.js index 46569c94..926171c4 100644 --- a/scripts/versioncontrol/6_deployEPNSCommV3.config.js +++ b/scripts/versioncontrol/6_deployEPNSCommV3.config.js @@ -62,6 +62,9 @@ const deploy = { }, fuseSpark: { version: 1, + }, + polygonAmoy:{ + version: 1 } }, args: { From c1d15308ab3da82d37cfe0475b88a854ae9be847 Mon Sep 17 00:00:00 2001 From: Md Zartaj Afser Date: Mon, 18 Mar 2024 20:37:41 +0530 Subject: [PATCH 2/3] Add support for OKX testnet --- hardhat.config.js | 16 +++++++++++++++- .../versioncontrol/2_deployEPNSCommV1.config.js | 3 +++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/hardhat.config.js b/hardhat.config.js index 4e3712b2..f0800770 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -190,6 +190,11 @@ module.exports = { arbitrumSepolia :{ url : "https://sepolia-rollup.arbitrum.io/rpc", accounts:[process.env.PRIVATE] + }, + //OKX testnet X1 + X1: { + url: "https://testrpc.x1.tech", + accounts:[process.env.PRIVATE] } }, etherscan: { @@ -204,7 +209,8 @@ module.exports = { arbitrumSepolia:process.env.ARBISCAN_API, optimismSepolia :process.env.OPTIMISM_API, berachainTestnet: "apiNotRequired", - polygonAmoy:"OKLINK" + polygonAmoy:"OKLINK", + X1: "Not required" }, customChains: [ { @@ -267,6 +273,14 @@ module.exports = { apiURL: "https://www.oklink.com/api/explorer/v1/contract/verify/async/api/polygon_amoy", browserURL: "https://www.oklink.com/amoy" } + }, + { + network: "X1", + chainId: 195, + urls: { + apiURL: "https://www.oklink.com/api/explorer/v1/contract/verify/async/api/x1_test", + browserURL: "https://www.oklink.com/x1-test" + } } ], }, diff --git a/scripts/versioncontrol/2_deployEPNSCommV1.config.js b/scripts/versioncontrol/2_deployEPNSCommV1.config.js index 313c2925..7823d30e 100644 --- a/scripts/versioncontrol/2_deployEPNSCommV1.config.js +++ b/scripts/versioncontrol/2_deployEPNSCommV1.config.js @@ -59,6 +59,9 @@ const deploy = { }, polygonAmoy:{ version: 1 + }, + X1:{ + version: 1 } }, args: { From 71a6fdc11847be97c65d0960f040cbf1230a47ff Mon Sep 17 00:00:00 2001 From: Md Zartaj Afser Date: Mon, 18 Mar 2024 20:51:38 +0530 Subject: [PATCH 3/3] Added X1 to config --- scripts/versioncontrol/4_deployEPNSCommV2.config.js | 3 +++ scripts/versioncontrol/6_deployEPNSCommV3.config.js | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scripts/versioncontrol/4_deployEPNSCommV2.config.js b/scripts/versioncontrol/4_deployEPNSCommV2.config.js index ca936eb9..16aa6c62 100644 --- a/scripts/versioncontrol/4_deployEPNSCommV2.config.js +++ b/scripts/versioncontrol/4_deployEPNSCommV2.config.js @@ -68,6 +68,9 @@ const deploy = { }, polygonAmoy:{ version: 1 + }, + X1:{ + version: 1 } }, args: { diff --git a/scripts/versioncontrol/6_deployEPNSCommV3.config.js b/scripts/versioncontrol/6_deployEPNSCommV3.config.js index ca936eb9..16aa6c62 100644 --- a/scripts/versioncontrol/6_deployEPNSCommV3.config.js +++ b/scripts/versioncontrol/6_deployEPNSCommV3.config.js @@ -68,6 +68,9 @@ const deploy = { }, polygonAmoy:{ version: 1 + }, + X1:{ + version: 1 } }, args: {