Skip to content

Commit

Permalink
added linea config
Browse files Browse the repository at this point in the history
  • Loading branch information
Zartaj0 committed Mar 25, 2024
1 parent 71a6fdc commit 08dfefc
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 17 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
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 08dfefc

Please sign in to comment.