-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathtruffle.js
More file actions
41 lines (40 loc) · 766 Bytes
/
truffle.js
File metadata and controls
41 lines (40 loc) · 766 Bytes
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
const HDWalletProvider = require("truffle-hdwallet-provider");
const wallet = require("./wallet-config");
module.exports = {
networks: {
ganache: {
host: "127.0.0.1",
port: 7545,
network_id: "*"
},
ropsten: {
host: "127.0.0.1",
port: 8545,
network_id: 3,
gas: 4700000
},
rinkeby: {
host: "127.0.0.1",
port: 8545,
network_id: 4
},
kovan: {
host: "127.0.0.1",
port: 8545,
network_id: 42,
gas: 4700000
},
"rinkeby-infura": {
provider: () => new HDWalletProvider(
wallet.mnemonic,
"https://rinkeby.infura.io/"
),
network_id: 4,
gas: 4700000
}
},
optimizer: {
enabled: true,
runs: 200
}
};