-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.js
74 lines (73 loc) · 1.64 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
const environments = require('./environments');
require("@nomiclabs/hardhat-etherscan");
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-web3");
require("hardhat-contract-sizer");
require("hardhat-gas-reporter");
require("solidity-coverage");
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
/*
forking: {
url: environments.rinkeby.forkNode,
blockNumber: environments.rinkeby.forkBlock
}
*/
},
rinkeby: {
url: environments.rinkeby.txNode,
accounts:[`${environments.rinkeby.privateKey}`],
gas: environments.gasLimit
},
goerli: {
url: environments.goerli.txNode,
accounts:[`${environments.goerli.privateKey}`],
gas: environments.gasLimit,
gasPrice: 40000000000
},
mainnet: {
url: environments.mainnet.txNode,
accounts: [`${environments.mainnet.privateKey}`],
gas: environments.gasLimit,
gasPrice: 35000000000,
timeout: 240000,
}
},
etherscan: {
apiKey: environments.etherscan.apiKey
},
solidity: {
version: "0.8.2",
settings: {
optimizer: {
enabled: true,
runs: 200,
details: {
yul: true
}
}
}
},
gasReporter: {
currency: 'USD',
enabled: true,
gasPrice: 300,
coinmarketcap: environments.coinmarketcap.apiKey,
showTimeSpent: true,
showMethodSig: true
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: true,
}
};