Skip to content

Commit

Permalink
Merge pull request #306 from ethereum-push-notification-service/Add-L…
Browse files Browse the repository at this point in the history
…inea-Mainnet

Add linea mainnet
  • Loading branch information
zaryab2000 authored Mar 26, 2024
2 parents 05d82e6 + fa62bac commit 9fd5a78
Show file tree
Hide file tree
Showing 8 changed files with 1,095 additions and 1,363 deletions.
29 changes: 22 additions & 7 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]

},
Expand Down Expand Up @@ -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,
Expand All @@ -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/",
},
},

Expand Down
2,401 changes: 1,056 additions & 1,345 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"dependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.2",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@nomiclabs/hardhat-waffle": "^2.0.6",
"@openzeppelin/contracts": "3.4.0",
"@openzeppelin/contracts-upgradeable": "3.4.0",
"bip39": "3.0.3",
Expand Down
10 changes: 8 additions & 2 deletions scripts/versioncontrol/2_deployEPNSCommV1.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,16 @@ const deploy = {
},
X1:{
version: 1
}
},
lineaMainnet: {
version: 1
},
lineaSepolia: {
version: 1
},
},
args: {
chainName: null
chainName: "Linea-Sepolia"
}
}

Expand Down
3 changes: 0 additions & 3 deletions scripts/versioncontrol/3_deployEPNSCoreV2.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ const deploy = {
polygon: {
version: 1
},
linea: {
version: 1
},
bscMainnet: {
version: 1
},
Expand Down
5 changes: 4 additions & 1 deletion scripts/versioncontrol/4_deployEPNSCommV2.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ const deploy = {
polygon: {
version: 1
},
linea: {
lineaMainnet: {
version: 1
},
lineaSepolia: {
version: 1
},
bscMainnet: {
Expand Down
3 changes: 0 additions & 3 deletions scripts/versioncontrol/5_deployEPNSCoreV3.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,6 @@ const deploy = {
polygon: {
version: 1
},
linea: {
version: 1
},
bscMainnet: {
version: 1
},
Expand Down
5 changes: 4 additions & 1 deletion scripts/versioncontrol/6_deployEPNSCommV3.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ const deploy = {
polygon: {
version: 1
},
linea: {
lineaMainnet: {
version: 1
},
lineaSepolia: {
version: 1
},
bscMainnet: {
Expand Down

0 comments on commit 9fd5a78

Please sign in to comment.