-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
51 lines (47 loc) · 1.1 KB
/
truffle-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
const HDWalletProvider = require("@truffle/hdwallet-provider");
const { SECRET_MNEMONIC } = process.env;
if (!SECRET_MNEMONIC) { throw new Error('You must export MNEMONIC (see truffle-config.js)'); }
module.exports = {
networks: {
kovan: {
provider: new HDWalletProvider(
SECRET_MNEMONIC,
'https://kovan.infura.io/v3/e6ba587382884a93bbe04b2ab0800085',
0,
20
),
gas: 10000000,
gasPrice: 20 * (10 ** 9),
network_id: '42',
},
mainnet: {
provider: new HDWalletProvider(
SECRET_MNEMONIC,
'https://mainnet.infura.io/v3/cc67a7ce67994f56b884d24179943047',
0,
20
),
gas: 9950000,
gasPrice: 55 * (10 ** 9),
network_id: '1',
},
development: {
host: process.env.DOCKER ? 'ganache' : 'localhost',
port: 8545,
network_id: '*',
gas: 10000000,
}
},
solc: {
optimizer: {
enabled: false,
},
},
mocha: process.env.REPORT_GAS ? {
reporter: 'eth-gas-reporter',
reporterOptions: {
currency: 'USD',
gasPrice: 21,
},
} : {},
};