From 6cc453d9039770a3cee00745b18a35882c45fff6 Mon Sep 17 00:00:00 2001 From: Zaryab Date: Wed, 3 Jan 2024 17:42:37 +0530 Subject: [PATCH 1/4] added fuse_api --- .env.sample | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.sample b/.env.sample index 25b45f65..f4d30018 100644 --- a/.env.sample +++ b/.env.sample @@ -7,7 +7,8 @@ POLYGONSCAN_API = your_polygonscan_api OPTIMISM_API = your_optimism_api ARBISCAN_API = your_arbitrum_api BNBSCAN_API = your_bnbscan_api - +FUSE_API = your_fuse_api + # FILE SYSTEM PATHS FS_ARTIFCATS=artifacts FS_DEPLOYMENT_INFO=deployment_info From 26d288f0db479a37ec3c6d3e37cb629efdc7202d Mon Sep 17 00:00:00 2001 From: Zaryab Date: Wed, 3 Jan 2024 17:44:12 +0530 Subject: [PATCH 2/4] added fuse network --- hardhat.config.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/hardhat.config.js b/hardhat.config.js index 6edb891a..e95df588 100644 --- a/hardhat.config.js +++ b/hardhat.config.js @@ -152,7 +152,13 @@ module.exports = { } }, - //Fuse testnet + //Fuse Mainnet + fuse:{ + url:"https://rpc.fuse.io", + accounts: [process.env.PRIVATE], + }, + + //Fuse Testnet fuseSpark:{ url:"https://rpc.fusespark.io", accounts: [process.env.PRIVATE], @@ -165,6 +171,7 @@ module.exports = { polygon: process.env.POLYGONSCAN_API, sepolia:process.env.ETHERSCAN_API, goerli:process.env.ETHERSCAN_API, + fuse: process.env.FUSE_API, fuseSpark: process.env.FUSE_API }, customChains: [ @@ -177,6 +184,15 @@ module.exports = { }, }, + { + network: "fuse", + chainId: 122, + urls:{ + apiURL: "https://explorer.fuse.io/api", + browserURL: "https://explorer.fuse.io/", + } + }, + { network: "fuseSpark", chainId: 123, From f0bbfcef422f5b81477257bddf8b91647a21dc1a Mon Sep 17 00:00:00 2001 From: Zaryab Date: Wed, 3 Jan 2024 17:45:04 +0530 Subject: [PATCH 3/4] added fuse network --- .../2_deployEPNSCommV1.config.js | 33 ++++++++++--------- .../4_deployEPNSCommV2.config.js | 3 ++ .../6_deployEPNSCommV3.config.js | 3 ++ 3 files changed, 24 insertions(+), 15 deletions(-) diff --git a/scripts/versioncontrol/2_deployEPNSCommV1.config.js b/scripts/versioncontrol/2_deployEPNSCommV1.config.js index aacd9776..eaec0e5b 100644 --- a/scripts/versioncontrol/2_deployEPNSCommV1.config.js +++ b/scripts/versioncontrol/2_deployEPNSCommV1.config.js @@ -1,46 +1,49 @@ const deploy = { network: { mainnet: { - version: 1, + version: 1 }, goerli: { - version: 1, + version: 1 }, polygon: { - version: 1, + version: 1 }, polygonMumbai: { - version: 1, + version: 1 }, bnbTestnet: { - version: 1, + version: 1 }, bnbMainnet: { - version: 1, + version: 1 }, arbitrumTestnet: { - version: 1, + version: 1 }, arbitrumMainnet: { - version: 1, + version: 1 }, optimismGoerli: { - version: 1, + version: 1 }, optimismMainnet: { - version: 1, + version: 1 }, hardhat: { - version: 1, + version: 1 }, localhost: { - version: 1, + version: 1 }, sepolia: { - version: 1, + version: 1 + }, + fuse: { + version: 1 }, fuseSpark: { - version: 1, + version: 1 } }, args: { @@ -48,4 +51,4 @@ const deploy = { } } -exports.deploy = deploy +exports.deploy = deploy \ No newline at end of file diff --git a/scripts/versioncontrol/4_deployEPNSCommV2.config.js b/scripts/versioncontrol/4_deployEPNSCommV2.config.js index ce13725c..46569c94 100644 --- a/scripts/versioncontrol/4_deployEPNSCommV2.config.js +++ b/scripts/versioncontrol/4_deployEPNSCommV2.config.js @@ -57,6 +57,9 @@ const deploy = { sepolia: { version: 1 }, + fuse : { + version: 1 + }, fuseSpark: { version: 1, } diff --git a/scripts/versioncontrol/6_deployEPNSCommV3.config.js b/scripts/versioncontrol/6_deployEPNSCommV3.config.js index ce13725c..46569c94 100644 --- a/scripts/versioncontrol/6_deployEPNSCommV3.config.js +++ b/scripts/versioncontrol/6_deployEPNSCommV3.config.js @@ -57,6 +57,9 @@ const deploy = { sepolia: { version: 1 }, + fuse : { + version: 1 + }, fuseSpark: { version: 1, } From a5704326a5608ed19e06aa363fcedc19a1c0db7b Mon Sep 17 00:00:00 2001 From: Md Zartaj Afser Date: Wed, 3 Jan 2024 18:14:27 +0530 Subject: [PATCH 4/4] removed space from the env sample --- .env.sample | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.env.sample b/.env.sample index f4d30018..e7cf424a 100644 --- a/.env.sample +++ b/.env.sample @@ -1,13 +1,13 @@ # WEB3 CREDENTIALS -ALCHEMY_API = your_alchemy_id -INFURA_PROJECT_ID = your_infura_id -INFURA_PROJECT_SECRET = your_infura_secret -ETHERSCAN_API = your_ETHERSCAN_API -POLYGONSCAN_API = your_polygonscan_api -OPTIMISM_API = your_optimism_api -ARBISCAN_API = your_arbitrum_api -BNBSCAN_API = your_bnbscan_api -FUSE_API = your_fuse_api +ALCHEMY_API=your_alchemy_id +INFURA_PROJECT_ID=your_infura_id +INFURA_PROJECT_SECRET=your_infura_secret +ETHERSCAN_API=your_ETHERSCAN_API +POLYGONSCAN_API=your_polygonscan_api +OPTIMISM_API=your_optimism_api +ARBISCAN_API=your_arbitrum_api +BNBSCAN_API=your_bnbscan_api +FUSE_API=your_fuse_api # FILE SYSTEM PATHS FS_ARTIFCATS=artifacts