-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
134 lines (133 loc) · 3.8 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-web3");
require("dotenv").config();
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-chai-matchers");
require("solidity-coverage");
require("hardhat-gas-reporter");
require("hardhat-contract-sizer");
module.exports = {
solidity: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
networks: {
hardhat: {},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
goerli: {
url: `https://goerli.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
arbitrum_goerli: {
url: `https://arbitrum-goerli.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
scroll_sepolia: {
url: `https://sepolia-rpc.scroll.io`,
accounts: [process.env.PRIVATE_KEY],
},
bnb: {
url: `https://bscrpc.com`,
accounts: [process.env.PRIVATE_KEY],
},
bnb_testnet: {
url: `https://bsc-testnet.publicnode.com`,
accounts: [process.env.PRIVATE_KEY],
},
avalanche: {
url: `https://avalanche-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
fuji: {
url: `https://avalanche-fuji.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
polygon: {
url: `https://polygon-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
mumbai: {
url: `https://polygon-mumbai.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
fantom: {
url: `https://rpc.ftm.tools`,
accounts: [process.env.PRIVATE_KEY],
},
fantom_testnet: {
url: `https://fantom-testnet.publicnode.com`,
accounts: [process.env.PRIVATE_KEY],
},
celo: {
url: `https://celo-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
celo_testnet: {
url: `https://celo-alfajores.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.PRIVATE_KEY],
},
gnosis: {
url: `https://gnosis.public-rpc.com`,
accounts: [process.env.PRIVATE_KEY],
},
gnosis_testnet: {
url: `https://rpc.chiadochain.net`,
accounts: [process.env.PRIVATE_KEY],
},
core: {
url: `https://rpc.coredao.org`,
accounts: [process.env.PRIVATE_KEY],
},
core_testnet: {
url: `https://rpc.test.btcs.network`,
accounts: [process.env.PRIVATE_KEY],
},
},
etherscan: {
apiKey: {
goerli: process.env.ETHERSCAN_API_KEY,
sepolia: process.env.ETHERSCAN_API_KEY,
bscTestnet: process.env.BSCSCAN_API_KEY,
arbitrumGoerli: process.env.ARBISCAN_API_KEY,
scroll_sepolia: process.env.SCROLLSCAN_API_KEY,
},
customChains: [
{
network: "scroll_sepolia",
chainId: 534351,
urls: {
apiURL: "https://api-sepolia.scrollscan.com/api",
browserURL: "https://sepolia.scrollscan.dev",
},
},
],
},
gasReporter: {
enabled: process.env.REPORT_GAS ? true : false,
currency: "USD",
token: "ETH",
// gasPrice: 20, // in gwei
gasPriceApi:
"https://api.etherscan.io/api?module=gastracker&action=gasoracle",
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
},
contractSizer: {
alphaSort: false,
runOnCompile: true,
disambiguatePaths: false,
strict: true,
only: [],
except: [],
},
};