Skip to content

Commit

Permalink
Merge pull request #246 from ethereum-push-notification-service/fuse_…
Browse files Browse the repository at this point in the history
…network_addition

Fuse network addition in deployment scripts
  • Loading branch information
zaryab2000 authored Jan 4, 2024
2 parents 2bdf618 + a570432 commit 47131a6
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 25 deletions.
19 changes: 10 additions & 9 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# 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

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
FS_DEPLOYMENT_INFO=deployment_info
Expand Down
18 changes: 17 additions & 1 deletion hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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: [
Expand All @@ -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,
Expand Down
33 changes: 18 additions & 15 deletions scripts/versioncontrol/2_deployEPNSCommV1.config.js
Original file line number Diff line number Diff line change
@@ -1,51 +1,54 @@
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: {
chainName: null
}
}

exports.deploy = deploy
exports.deploy = deploy
3 changes: 3 additions & 0 deletions scripts/versioncontrol/4_deployEPNSCommV2.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ const deploy = {
sepolia: {
version: 1
},
fuse : {
version: 1
},
fuseSpark: {
version: 1,
}
Expand Down
3 changes: 3 additions & 0 deletions scripts/versioncontrol/6_deployEPNSCommV3.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ const deploy = {
sepolia: {
version: 1
},
fuse : {
version: 1
},
fuseSpark: {
version: 1,
}
Expand Down

0 comments on commit 47131a6

Please sign in to comment.