-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle.js
50 lines (48 loc) · 1.02 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
const HDWalletProvider = require('truffle-hdwallet-provider')
const mnemonic =
process.env.TEST_MNEMONIC ||
'mothership mnemonic mothership mnemonic mothership mnemonic mothership mnemonic mothership mnemonic mothership mnemonic'
const providerRopsten = new HDWalletProvider(
mnemonic,
'https://ropsten.infura.io/',
0,
)
const providerKovan = new HDWalletProvider(
mnemonic,
'https://kovan.infura.io',
0,
)
const providerMain = new HDWalletProvider(
process.env.MAIN_MNEMONIC,
'http://localhost:8545',
0,
)
module.exports = {
networks: {
development: {
network_id: 15,
host: 'localhost',
port: 8545,
gas: 4000000,
gasPrice: 20e9,
},
main: {
network_id: 1,
provider: providerMain,
gas: 4000000,
gasPrice: 20e9,
},
ropsten: {
network_id: 3,
provider: providerRopsten,
gas: 4000000,
gasPrice: 20e9,
},
kovan: {
network_id: 42,
provider: providerKovan,
gas: 4000000,
gasPrice: 20e9,
},
},
}