forked from aragon/aragonOS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
39 lines (35 loc) · 864 Bytes
/
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
var HDWalletProvider = require('truffle-hdwallet-provider')
const mnemonic = 'stumble story behind hurt patient ball whisper art swift tongue ice alien';
let ropstenProvider, kovanProvider = {}
if (process.env.LIVE_NETWORKS) {
ropstenProvider = new HDWalletProvider(mnemonic, 'https://ropsten.infura.io/')
kovanProvider = new HDWalletProvider(mnemonic, 'https://kovan.infura.io')
}
module.exports = {
networks: {
rpc: {
network_id: 15,
host: 'localhost',
port: 8545,
gas: 7e6,
},
ropsten: {
network_id: 3,
provider: ropstenProvider,
gas: 4.712e6,
},
kovan: {
network_id: 42,
provider: kovanProvider,
gas: 6.9e6,
},
coverage: {
host: "localhost",
network_id: "*",
port: 8555,
gas: 0xffffffffff,
gasPrice: 0x01
},
},
build: {},
}