-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
110 lines (109 loc) · 2.29 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
require("@nomiclabs/hardhat-waffle")
require("dotenv").config()
require("hardhat-gas-reporter")
require("@nomiclabs/hardhat-web3")
require("@nomiclabs/hardhat-etherscan")
require("hardhat-tracer")
require("@openzeppelin/hardhat-upgrades")
require("hardhat-docgen")
require("solidity-coverage")
module.exports = {
solidity: {
version: "0.8.11",
settings: {
optimizer: {
enabled: true,
runs: 800,
},
},
},
networks: {
hardhat: {
chainId: 127001,
accounts: {
mnemonic: "test test test test test test test test test test test junk",
},
blockGasLimit: 199022552,
gas: 1500000,
gasPrice: 100,
allowUnlimitedContractSize: false,
throwOnTransactionFailures: false,
throwOnCallFailures: true,
initialBaseFeePerGas: 0,
accounts: {
count: 35,
},
},
ganache: {
url: "http://127.0.0.1:7545",
blockGasLimit: 10000000,
},
mainnet: {
url: process.env.MAINNET_RPC,
gas: 4500000,
gasPrice: 56000000000, //56 gwei
timeout: 99000,
accounts: [process.env.PRIVATE_KEY],
},
rinkeby: {
url: process.env.RINKEBY_RPC,
network_id: 4,
gas: 1500000,
gasPrice: 10000000000, //10 gwei
timeout: 15000,
accounts: [process.env.PRIVATE_KEY],
},
polygon: {
url: process.env.MATIC_RPC,
network_id: 137,
gas: 5500000,
gasPrice: 30000000000, //30 gwei
timeout: 25000,
accounts: [process.env.PRIVATE_KEY],
},
polygon_test: {
url: process.env.MATIC_RPC_TEST,
network_id: 80001,
gas: 2500000,
gasPrice: 2000000000, //2 gwei
timeout: 25000,
accounts: [process.env.PRIVATE_KEY],
},
bsc_test: {
url: process.env.BSC_RPC_TEST,
network_id: 97,
accounts: [process.env.PRIVATE_KEY],
},
bsc: {
url: process.env.BSC_RPC,
network_id: 56,
accounts: [process.env.PRIVATE_KEY],
},
arbitrum_test: {
url: process.env.ARBITRUM_TEST,
network_id: 421611,
gas: 2500000,
gasPrice: 30000000, //0.03 gwei
timeout: 25000,
accounts: [process.env.PRIVATE_KEY],
},
},
gasReporter: {
enabled: !!process.env.REPORT_GAS === true,
currency: "USD",
gasPrice: 100,
showTimeSpent: true,
coinmarketcap: process.env.COINMARKETCAP_API,
},
docgen: {
path: "./docs",
clear: true,
runOnCompile: true,
},
mocha: {
timeout: 25000,
},
etherscan: {
apiKey: process.env.ARBISCAN_KEY,
},
}