-
Notifications
You must be signed in to change notification settings - Fork 6
/
hardhat.config.js
63 lines (60 loc) · 1.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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require("hardhat-gas-reporter");
require("./tasks/tasks.js");
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
gas: "auto",
blockGasLimit: 90_000_000,
initialBaseFeePerGas: 0,
timeout: 43200000
},
privatenode: {
url: "http://127.0.0.1:8545",
accounts: ["0xb0a587bc9681a7333763f84c3b90a4d58bd01b5fb0635ac16187f6f55e792a57"],
gasPrice: "auto",
gas: "auto",
timeout: 43200000
},
rinkeby: {
url: "RINKEBY_RPC_URL_GOES_HERE",
gasPrice: "auto",
gas: "auto",
gasMultiplier: 1,
timeout: 43200000
},
mainnet: {
url: "MAINNET_RPC_URL_GOES_HERE",
gasPrice: "auto",
gas: "auto",
gasMultiplier: 1,
timeout: 43200000
}
},
etherscan: {
apiKey: "ETHERSCAN_API_KEY_GOES_HERE"
},
solidity: {
version: "0.8.13",
settings: {
optimizer: {
enabled: true,
runs: 1
}
}
},
mocha: {
timeout: 2000000000
},
gasReporter: {
currency: 'ETH',
gasPriceApi: 'https://api.etherscan.io/api?module=proxy&action=eth_gasPrice'
}
};