Skip to content

Commit dbb46f0

Browse files
authored
Base op mainnet (#220)
* Add Base & OP mainnet * Added to hardhat config * fix
1 parent f35f7ed commit dbb46f0

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

hardhat.config.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,14 @@ module.exports = {
4949
avalanche: networks.avalanche.verifyApiKey,
5050
polygon: networks.polygon.verifyApiKey,
5151
sepolia: networks.ethereumSepolia.verifyApiKey,
52-
polygonMumbai: networks.polygonMumbai.verifyApiKey,
5352
polygonAmoy: networks.polygonAmoy.verifyApiKey,
5453
avalancheFujiTestnet: networks.avalancheFuji.verifyApiKey,
5554
arbitrum: networks.arbitrum.verifyApiKey,
5655
arbitrumSepolia: networks.arbitrumSepolia.verifyApiKey,
5756
baseSepolia: networks.baseSepolia.verifyApiKey,
5857
optimismSepolia: networks.optimismSepolia.verifyApiKey,
58+
base: networks.base.verifyApiKey,
59+
optimism: networks.optimism.verifyApiKey,
5960
},
6061
customChains: [
6162
{
@@ -90,6 +91,22 @@ module.exports = {
9091
browserURL: "https://amoy.polygonscan.com",
9192
},
9293
},
94+
{
95+
network: "base",
96+
chainId: 8453,
97+
urls: {
98+
apiURL: "https://api.basescan.org/api",
99+
browserURL: "https://basescan.org",
100+
},
101+
},
102+
{
103+
network: "optimism",
104+
chainId: 10,
105+
urls: {
106+
apiUrl: "https://api-optimistic.etherscan.io/api",
107+
browserURL: "https://optimistic.etherscan.io/",
108+
},
109+
},
93110
],
94111
},
95112
gasReporter: {

tasks/utils/network.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ const BASE_URLS = {
22
1: "https://etherscan.io/",
33
137: "https://polygonscan.com/",
44
43114: "https://snowtrace.io/",
5-
80001: "https://mumbai.polygonscan.com/",
65
80002: "https://api-amoy.polygonscan.com/api",
76
11155111: "https://sepolia.etherscan.io/",
87
43113: "https://testnet.snowtrace.io/",
98
421614: "https://sepolia.arbiscan.io/",
109
42161: "https://arbiscan.io/",
1110
84532: "https://sepolia.basescan.org/",
1211
11155420: "https://sepolia-optimistic.etherscan.io/",
12+
8453: "https://basescan.org/",
13+
10: "https://optimistic.etherscan.io/",
1314
}
1415

1516
/**

0 commit comments

Comments
 (0)