Skip to content

Commit

Permalink
Base op mainnet (#220)
Browse files Browse the repository at this point in the history
* Add Base & OP mainnet

* Added to hardhat config

* fix
  • Loading branch information
KuphJr authored Sep 3, 2024
1 parent f35f7ed commit dbb46f0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
19 changes: 18 additions & 1 deletion hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ module.exports = {
avalanche: networks.avalanche.verifyApiKey,
polygon: networks.polygon.verifyApiKey,
sepolia: networks.ethereumSepolia.verifyApiKey,
polygonMumbai: networks.polygonMumbai.verifyApiKey,
polygonAmoy: networks.polygonAmoy.verifyApiKey,
avalancheFujiTestnet: networks.avalancheFuji.verifyApiKey,
arbitrum: networks.arbitrum.verifyApiKey,
arbitrumSepolia: networks.arbitrumSepolia.verifyApiKey,
baseSepolia: networks.baseSepolia.verifyApiKey,
optimismSepolia: networks.optimismSepolia.verifyApiKey,
base: networks.base.verifyApiKey,
optimism: networks.optimism.verifyApiKey,
},
customChains: [
{
Expand Down Expand Up @@ -90,6 +91,22 @@ module.exports = {
browserURL: "https://amoy.polygonscan.com",
},
},
{
network: "base",
chainId: 8453,
urls: {
apiURL: "https://api.basescan.org/api",
browserURL: "https://basescan.org",
},
},
{
network: "optimism",
chainId: 10,
urls: {
apiUrl: "https://api-optimistic.etherscan.io/api",
browserURL: "https://optimistic.etherscan.io/",
},
},
],
},
gasReporter: {
Expand Down
3 changes: 2 additions & 1 deletion tasks/utils/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ const BASE_URLS = {
1: "https://etherscan.io/",
137: "https://polygonscan.com/",
43114: "https://snowtrace.io/",
80001: "https://mumbai.polygonscan.com/",
80002: "https://api-amoy.polygonscan.com/api",
11155111: "https://sepolia.etherscan.io/",
43113: "https://testnet.snowtrace.io/",
421614: "https://sepolia.arbiscan.io/",
42161: "https://arbiscan.io/",
84532: "https://sepolia.basescan.org/",
11155420: "https://sepolia-optimistic.etherscan.io/",
8453: "https://basescan.org/",
10: "https://optimistic.etherscan.io/",
}

/**
Expand Down

0 comments on commit dbb46f0

Please sign in to comment.