forked from aragon/aragonOS
/
truffle-config.js
56 lines (50 loc) · 1.22 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
var HDWalletProvider = require('truffle-hdwallet-provider')
const mnemonic = 'stumble story behind hurt patient ball whisper art swift tongue ice alien';
let ropstenProvider, kovanProvider, rinkebyProvider = {}
if (process.env.LIVE_NETWORKS) {
ropstenProvider = new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/')
kovanProvider = new HDWalletProvider(mnemonic, 'https://kovan.infura.io')
rinkebyProvider = new HDWalletProvider(mnemonic, 'https://rinkeby.infura.io')
}
const mochaGasSettings = {
reporter: 'eth-gas-reporter',
reporterOptions : {
currency: 'USD',
gasPrice: 21
}
}
const mocha = process.env.GAS_REPORTER ? mochaGasSettings : {}
module.exports = {
networks: {
rpc: {
network_id: 15,
host: 'localhost',
port: 8545,
gas: 50e6,
},
ropsten: {
network_id: 3,
provider: ropstenProvider,
gas: 4.712e6,
},
kovan: {
network_id: 42,
provider: kovanProvider,
gas: 6.9e6,
},
rinkeby: {
network_id: 4,
provider: rinkebyProvider,
gas: 7e6,
},
coverage: {
host: "localhost",
network_id: "*",
port: 8555,
gas: 0xffffffffff,
gasPrice: 0x01
},
},
build: {},
mocha,
}