/
hardhat.config.js
62 lines (61 loc) · 1.71 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
require('@nomiclabs/hardhat-waffle');
require('hardhat-gas-reporter');
require('solidity-coverage');
// const secrets = require('./.secrets.json');
module.exports = {
solidity: {
version: '0.8.18',
settings: {
evmVersion: 'london',
optimizer: {
enabled: true,
runs: 200,
details: {
peephole: true,
inliner: true,
jumpdestRemover: true,
orderLiterals: true,
deduplicate: true,
cse: true,
constantOptimizer: true,
yul: true,
yulDetails: {
stackAllocation: true,
},
},
},
metadata: {
bytecodeHash: 'none',
},
},
},
defaultNetwork: 'hardhat',
networks: {
hardhat: {},
coverage: {
url: 'http://127.0.0.1:8555', // Coverage launches its own ganache-cli client
},
// ropsten: {
// url: secrets.ropsten.rpc,
// accounts: {
// mnemonic: secrets.ropsten.mnemonic,
// path: "m/44'/60'/0'/0",
// initialIndex: 0,
// count: 1,
// },
// },
// ganache: {
// url: secrets.ganache.rpc,
// accounts: {
// mnemonic: secrets.ganache.mnemonic,
// path: "m/44'/60'/0'/0",
// initialIndex: 0,
// count: 1,
// },
// },
},
gasReporter: {
currency: 'USD',
gasPrice: 125,
},
};