-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle.js
75 lines (72 loc) · 1.58 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
require("babel-register");
require("babel-polyfill");
const HDWalletProvider = require("truffle-hdwallet-provider-privkey");
var test = false;
var rinkeby = false;
var account;
if (test) {
account = "0x01da6f5f5c89f3a83cc6bebb0eafc1f1e1c4a303";
if (rinkeby) {
account = "0x1e8524370b7caf8dc62e3effbca04ccc8e493ffe";
}
}
module.exports = {
networks: {
coverage: {
host: "localhost",
network_id: "*",
port: 9545, // <-- If you change this, also set the port option in .solcover.js.
gas: 0xfffffffffff, // <-- Use this high gas value
gasPrice: 0x01 // <-- Use this low gas price
},
rinkeby: {
provider: () => {
return new HDWalletProvider(
"2940e1526f1b5ae5b5335758b82d4f2627bd522d4d186ec6ce7fe5d12b58074f",
"https://rinkeby.infura.io/nsUEX1RYRhRDJoN89CrK"
);
},
network_id: 4,
gas: 4612388 // Gas limit used for deploys
},
ropsten: {
host: "127.0.0.1",
port: 8545,
network_id: "3",
from: account,
gas: 4700000
},
mainnet: {
host: "127.0.0.1",
port: 8545,
network_id: "1",
gas: 4700000
},
ganache: {
host: "127.0.0.1",
port: 7545,
network_id: "4447",
gas: 4700000
},
truffledev: {
host: "127.0.0.1",
port: 9545,
network_id: "4447",
gas: 4700000
},
development: {
host: "localhost",
port: 8545,
network_id: "*"
}
},
solc: {
optimizer: {
enabled: true,
runs: 500
}
},
mocha: {
enableTimeouts: false
}
};