-
Notifications
You must be signed in to change notification settings - Fork 96
/
truffle.js
77 lines (75 loc) · 2.07 KB
/
truffle.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
const HDWalletProvider = require('truffle-hdwallet-provider');
module.exports = {
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*',
gas: 0xfffffffffff,
gasPrice: 1
},
production: {
provider: () => new HDWalletProvider(process.env.PK, 'https://mainnet.infura.io'),
network_id: 1,
gasPrice: 10000000000,
gas: 4000000
},
ropsten: {
provider: () =>
new HDWalletProvider(
process.env.PK,
'https://ropsten.infura.io/v3/d4470e7b7221494caaaa66d3a353c5dc'
),
network_id: 3,
gas: 8000000,
gasPrice: 10000000000
},
rinkeby: {
provider: () =>
new HDWalletProvider(
process.env.PK,
'https://rinkeby.infura.io/v3/d4470e7b7221494caaaa66d3a353c5dc'
),
network_id: 4,
gas: 7000000,
gasPrice: 10000000000
},
kovan: {
provider: () =>
new HDWalletProvider(
process.env.PK,
'https://kovan.infura.io/v3/d4470e7b7221494caaaa66d3a353c5dc'
),
network_id: 42,
gas: 8000000,
gasPrice: 10000000000
},
coverage: {
host: '127.0.0.1',
port: 6545,
network_id: '*',
gas: 0xfffffffffff,
gasPrice: 1
}
},
compilers: {
solc: {
version: '0.5.8',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
// If you have 0.5.8 solc installed locally, you can use the following config to speed up tests.
//
// solc: {
// version: 'native'
// }
},
mocha: {
enableTimeouts: false,
useColors: true
}
};