Skip to content

Commit

Permalink
fix: added op config
Browse files Browse the repository at this point in the history
  • Loading branch information
web3rover committed Oct 1, 2024
1 parent 67a628a commit d012a2a
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,18 @@ const config: HardhatUserConfig = {
live: true,
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
},
opsepolia: {
url: process.env.ARCHIVE_NODE_opsepolia || "https://sepolia.optimism.io",
chainId: 11155420,
live: true,
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
},
opmainnet: {
url: process.env.ARCHIVE_NODE_opmainnet || "https://mainnet.optimism.io",
chainId: 10,
live: true,
accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
},
},
gasReporter: {
enabled: process.env.REPORT_GAS !== undefined,
Expand Down Expand Up @@ -354,6 +366,22 @@ const config: HardhatUserConfig = {
browserURL: "https://arbiscan.io/",
},
},
{
network: "opsepolia",
chainId: 11155420,
urls: {
apiURL: "https://api-sepolia-optimistic.etherscan.io/api/",
browserURL: "https://sepolia-optimistic.etherscan.io/",
},
},
{
network: "opmainnet",
chainId: 10,
urls: {
apiURL: "https://api-optimistic.etherscan.io/api",
browserURL: "https://optimistic.etherscan.io/",
},
},
],
apiKey: {
bscmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
Expand All @@ -364,6 +392,8 @@ const config: HardhatUserConfig = {
opbnbtestnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
arbitrumone: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
arbitrumsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
opsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
opmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
},
},
paths: {
Expand Down

0 comments on commit d012a2a

Please sign in to comment.