-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.cjs
45 lines (43 loc) · 1.13 KB
/
hardhat.config.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
require("@nomicfoundation/hardhat-toolbox");
require('dotenv').config();
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.24",
networks: {
arbitrumSepolia: {
url: process.env.VITE_INFURA_TESTNET_RPC,
accounts: [process.env.VITE_TESTNET_DEV_ACCOUNT0_KEY],
},
arbitrum: {
url: process.env.VITE_INFURA_ARBITRUM_RPC,
accounts: [process.env.VITE_TESTNET_DEV_ACCOUNT0_KEY],
}
},
etherscan: {
apiKey: {
arbitrumSepolia: process.env.VITE_ARBISCAN_API_KEY,
arbitrumOne: process.env.VITE_ARBISCAN_API_KEY,
},
customChains: [
{
network: "arbitrumSepolia",
chainId: process.env.VITE_TESTNET_CHAINID,
urls: {
apiURL: "https://api-sepolia.arbiscan.io/api",
browserURL: "https://sepolia.arbiscan.io/",
},
},
{
network: "arbitrum",
chainId: process.env.VITE_ARBITRUM_CHAINID,
urls: {
apiURL: "https://api.arbiscan.io/api",
browserURL: "https://arbiscan.io/",
},
},
],
},
sourcify: {
enabled: true,
},
};