Skip to content

Commit c9fef0c

Browse files
committed
Update hardhat config
1 parent c12efc1 commit c9fef0c

File tree

1 file changed

+7
-98
lines changed

1 file changed

+7
-98
lines changed

packages/hardhat/hardhat.config.ts

Lines changed: 7 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ const deployerPrivateKey =
2121
process.env.__RUNTIME_DEPLOYER_PRIVATE_KEY ?? "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80";
2222
// If not set, it uses our block explorers default API keys.
2323
const etherscanApiKey = process.env.ETHERSCAN_MAINNET_API_KEY || "DNXJA8RX2Q3VZ4URQIWP7Z68CJXQZSC6AW";
24-
const etherscanOptimisticApiKey = process.env.ETHERSCAN_OPTIMISTIC_API_KEY || "RM62RDISS1RH448ZY379NX625ASG1N633R";
25-
const basescanApiKey = process.env.BASESCAN_API_KEY || "ZZZEIPMT1MNJ8526VV2Y744CA7TNZR64G6";
2624

2725
const config: HardhatUserConfig = {
2826
solidity: {
@@ -55,106 +53,15 @@ const config: HardhatUserConfig = {
5553
enabled: process.env.MAINNET_FORKING_ENABLED === "true",
5654
},
5755
},
58-
mainnet: {
59-
url: `https://eth-mainnet.alchemyapi.io/v2/${providerApiKey}`,
60-
accounts: [deployerPrivateKey],
61-
},
62-
sepolia: {
63-
url: `https://eth-sepolia.g.alchemy.com/v2/${providerApiKey}`,
64-
accounts: [deployerPrivateKey],
65-
},
66-
arbitrum: {
67-
url: `https://arb-mainnet.g.alchemy.com/v2/${providerApiKey}`,
68-
accounts: [deployerPrivateKey],
69-
},
70-
arbitrumSepolia: {
71-
url: `https://arb-sepolia.g.alchemy.com/v2/${providerApiKey}`,
72-
accounts: [deployerPrivateKey],
73-
},
74-
optimism: {
75-
url: `https://opt-mainnet.g.alchemy.com/v2/${providerApiKey}`,
76-
accounts: [deployerPrivateKey],
77-
verify: {
78-
etherscan: {
79-
apiUrl: "https://api-optimistic.etherscan.io",
80-
apiKey: etherscanOptimisticApiKey,
81-
},
82-
},
83-
},
84-
optimismSepolia: {
85-
url: `https://opt-sepolia.g.alchemy.com/v2/${providerApiKey}`,
86-
accounts: [deployerPrivateKey],
87-
verify: {
88-
etherscan: {
89-
apiUrl: "https://api-sepolia-optimistic.etherscan.io",
90-
apiKey: etherscanOptimisticApiKey,
91-
},
92-
},
93-
},
94-
polygon: {
95-
url: `https://polygon-mainnet.g.alchemy.com/v2/${providerApiKey}`,
96-
accounts: [deployerPrivateKey],
97-
},
98-
polygonAmoy: {
99-
url: `https://polygon-amoy.g.alchemy.com/v2/${providerApiKey}`,
100-
accounts: [deployerPrivateKey],
101-
},
102-
polygonZkEvm: {
103-
url: `https://polygonzkevm-mainnet.g.alchemy.com/v2/${providerApiKey}`,
104-
accounts: [deployerPrivateKey],
105-
},
106-
polygonZkEvmCardona: {
107-
url: `https://polygonzkevm-cardona.g.alchemy.com/v2/${providerApiKey}`,
108-
accounts: [deployerPrivateKey],
109-
},
110-
gnosis: {
111-
url: "https://rpc.gnosischain.com",
112-
accounts: [deployerPrivateKey],
113-
},
114-
chiado: {
115-
url: "https://rpc.chiadochain.net",
116-
accounts: [deployerPrivateKey],
117-
},
118-
base: {
119-
url: "https://mainnet.base.org",
120-
accounts: [deployerPrivateKey],
121-
verify: {
122-
etherscan: {
123-
apiUrl: "https://api.basescan.org",
124-
apiKey: basescanApiKey,
125-
},
126-
},
127-
},
128-
baseSepolia: {
129-
url: "https://sepolia.base.org",
130-
accounts: [deployerPrivateKey],
131-
verify: {
132-
etherscan: {
133-
apiUrl: "https://api-sepolia.basescan.org",
134-
apiKey: basescanApiKey,
135-
},
136-
},
137-
},
138-
scrollSepolia: {
139-
url: "https://sepolia-rpc.scroll.io",
140-
accounts: [deployerPrivateKey],
141-
},
142-
scroll: {
143-
url: "https://rpc.scroll.io",
144-
accounts: [deployerPrivateKey],
145-
},
146-
celo: {
147-
url: "https://forno.celo.org",
148-
accounts: [deployerPrivateKey],
149-
},
150-
celoAlfajores: {
151-
url: "https://alfajores-forno.celo-testnet.org",
56+
monadTestnet: {
57+
url: `https://testnet-rpc.monad.xyz/`,
15258
accounts: [deployerPrivateKey],
59+
chainId: 10143,
15360
},
15461
},
15562
// Configuration for harhdat-verify plugin
15663
etherscan: {
157-
apiKey: `${etherscanApiKey}`,
64+
enabled: false,
15865
},
15966
// Configuration for etherscan-verify from hardhat-deploy plugin
16067
verify: {
@@ -163,7 +70,9 @@ const config: HardhatUserConfig = {
16370
},
16471
},
16572
sourcify: {
166-
enabled: false,
73+
enabled: true,
74+
apiUrl: "https://sourcify-api-monad.blockvision.org",
75+
browserUrl: "https://testnet.monadexplorer.com",
16776
},
16877
};
16978

0 commit comments

Comments
 (0)