-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle.js
46 lines (45 loc) · 1.12 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
var HDWalletProvider = require("truffle-hdwallet-provider");
var secrets = require('./secret.js')
module.exports = {
networks: {
truffle: {
provider: function() {
return new HDWalletProvider(secrets.truffle, "http://localhost:9545", 0)
},
network_id: 666
},
ganache: {
provider: function() {
return new HDWalletProvider(secrets.truffle, "http://localhost:7545", 0)
},
network_id: 5777
},
rinkeby: {
provider: function() {
return new HDWalletProvider(secrets.mnemonic, "https://rinkeby.infura.io/" + secrets.infura, 0)
},
network_id: 4
},
ropsten: {
provider: function() {
return new HDWalletProvider(secrets.mnemonic, "https://ropsten.infura.io/" + secrets.infura, 0)
},
gas: 4700000,
network_id: 3
},
kovan: {
provider: function() {
let id = new HDWalletProvider(secrets.mnemonic, "https://kovan.infura.io/" + secrets.infura, 1)
return id
},
network_id: 42,
gas:4700000
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
}