-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathhardhat.config.js
76 lines (75 loc) · 2.02 KB
/
hardhat.config.js
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-verify");
require("solidity-coverage");
module.exports = {
solidity: {
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
// hardhat: {
// forking: {
// url: process.env.MAINNET_NODE_URL || "",
// accounts: process.env.PRIVATE_KEY !== undefined ? [process.env.PRIVATE_KEY] : [],
// enabled: true,
// },
// },
tenderly: {
url: process.env.TENDERLY_NODE_URL || "",
accounts: process.env.PRIVATE_KEY ? [`0x${process.env.PRIVATE_KEY}`] : [],
chainId: process.env.TENDERLY_CHAIN_ID
? parseInt(process.env.TENDERLY_CHAIN_ID)
: 1,
},
arbitrum: {
url: process.env.ARBITRUM_NODE_URL || "",
accounts: process.env.PRIVATE_KEY ? [`0x${process.env.PRIVATE_KEY}`] : [],
},
baseSepolia: {
url: process.env.BASE_SEPOLIA_NODE_URL || "https://sepolia.basescan.org",
accounts: process.env.PRIVATE_KEY ? [`0x${process.env.PRIVATE_KEY}`] : [],
},
base: {
url: process.env.BASE_NODE_URL || "",
accounts: process.env.PRIVATE_KEY ? [`0x${process.env.PRIVATE_KEY}`] : [],
},
},
etherscan: {
apiKey: {
arbitrum: process.env.ARBISCAN_API_KEY,
base: process.env.BASESCAN_API_KEY,
"base-sepolia": process.env.BASESCAN_API_KEY,
},
customChains: [
{
network: "arbitrum",
chainId: 42161,
urls: {
apiURL: "https://api.arbiscan.io/api",
browserURL: "https://arbiscan.io",
},
},
{
network: "base-sepolia",
chainId: 84532,
urls: {
apiURL: "https://api-sepolia.basescan.org/api",
browserURL: "https://sepolia.basescan.org",
},
},
{
network: "base",
chainId: 8453,
urls: {
apiURL: "https://api.basescan.org/api",
browserURL: "https://basescan.org",
},
},
],
},
};