-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
100 lines (98 loc) · 2.36 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
require("@nomiclabs/hardhat-waffle");
require("dotenv").config();
require("@openzeppelin/hardhat-upgrades");
require("hardhat-gas-reporter");
require("@nomiclabs/hardhat-etherscan");
module.exports = {
networks: {
base: {
url: process.env.RPC_URL_BASE,
accounts: [process.env.PRIVATE_KEY],
chainId: 8453,
verify: {
etherscan: {
apiUrl: "https://api.basescan.org",
apiKey: process.env.ETHERSCAN_API_KEY ?? "ETHERSCAN_API_KEY",
},
},
},
floorTestnet: {
url: "https://geth.testnet.floor.lol/",
chainId: 356671,
accounts: [process.env.PRIVATE_KEY],
},
baseGoerli: {
url: process.env.RPC_URL_BASE_GOERLI,
accounts: [process.env.PRIVATE_KEY],
chainId: 84531,
verify: {
etherscan: {
apiUrl: "https://api-goerli.basescan.org",
apiKey: process.env.ETHERSCAN_API_KEY ?? "ETHERSCAN_API_KEY",
},
},
},
mumbai: {
url: process.env.RPC_URL_MUMBAI,
accounts: [process.env.PRIVATE_KEY],
},
arbitrum: {
url: process.env.RPC_URL_ARBITRUM,
accounts: [process.env.PRIVATE_KEY],
verify: {
etherscan: {
apiUrl: "https://api.arbscan.io",
apiKey: process.env.ETHERSCAN_API_KEY ?? "ETHERSCAN_API_KEY",
},
},
},
matic: {
url: process.env.RPC_URL_MATIC,
accounts: [process.env.PRIVATE_KEY],
},
mainnet: {
url: process.env.RPC_URL_MAINNET,
accounts: [process.env.PRIVATE_KEY],
},
goerli: {
url: process.env.RPC_URL_GOERLI,
accounts: [process.env.PRIVATE_KEY],
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_KEY,
customChains: [
{
network: "base",
chainId: 8453,
urls: {
apiURL: "https://api.basescan.org/api",
browserURL: "https://basescan.org/",
},
},
{
network: "baseGoerli",
chainId: 84531,
urls: {
apiURL: "https://api-goerli.basescan.org/api",
browserURL: "https://goerli.basescan.org/",
},
},
],
},
solidity: {
version: "0.8.18",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
viaIR: true,
},
},
gasReporter: {
currency: "USD",
gasPrice: 30,
coinmarketcap: process.env.COINMARKETCAP_KEY,
},
};