forked from pooltogether/pooltogether-contracts-mock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
60 lines (53 loc) · 1.11 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
52
53
54
55
56
57
58
59
60
'use strict';
var HDWalletProvider = require("truffle-hdwallet-provider")
module.exports = {
networks: {
local: {
host: 'localhost',
port: 8545,
gas: 8000000,
gasPrice: 5e9,
network_id: '*'
},
rinkeby: {
provider: () => new HDWalletProvider(
process.env.HDWALLET_MNEMONIC,
process.env.INFURA_PROVIDER_URL,
0, // we start with address[0]
8 // notice that we unlock eight: which will be address[0] and address[1]
),
network_id: 4,
gas: 1000000,
gasPrice: 10 * 1000000000
},
mainnet: {
provider: () => new HDWalletProvider(
process.env.HDWALLET_MNEMONIC,
"https://mainnet.infura.io/v3/1d6cb6d8f137423ab26111c61c0760ef",
0,
2
),
network_id: 1,
gas: 7000000,
gasPrice: 10 * 1000000000
}
},
compilers: {
solc: {
version: "0.5.0",
}
},
solc: {
optimizer: {
enabled: true,
runs: 1
}
},
mocha: {
reporter: 'eth-gas-reporter',
reporterOptions : {
currency: 'USD',
gasPrice: 10
}
}
};