-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtruffle.js
81 lines (74 loc) · 2.2 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
76
77
78
79
80
81
var HDWalletProvider = require("truffle-hdwallet-provider");
var mnemonic = "finger safe spike forget club vast pudding betray spice alter poem cream";
module.exports = {
// migrations_directory: "./src/migrations",
// contracts_directory: "./src/contracts/",
networks: {
// default
development: {
host: "localhost",
port: 7545,
network_id: 5777,
},
ropsten: {
host: "127.0.0.1",
port: 8545,
network_id: 3,
gas: 5500000
},
rinkeby: {
host: "localhost",
port: 8545,
network_id: 4, // 1,2, 3, 42, 1337, * (Match any network id)
gas: 5500000, //may be 21000 - 3000000
gasPrice: 20000000000
},
// main net. Specify by --network live
live: {
host: "mainnet.infura.io",
port: 80,
network_id: 1,
},
ropsteninfura: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://ropsten.infura.io/lSJ4YysdSiZidnj2U2oO")
},
network_id: 5,
gas: 4700000,
gasPrice: 20000000000
},
rinkebyinfura: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://rinkeby.infura.io/lSJ4YysdSiZidnj2U2oO")
},
network_id: 6,
gas: 4700000,
gasPrice: 20000000000
},
maininfura: {
provider: function() {
return new HDWalletProvider(mnemonic, "https://mainnet.infura.io/lSJ4YysdSiZidnj2U2oO")
},
network_id: 7,
gas: 4700000
},
// test chains
// ropsten: {
// provider: new HDWalletProvider("candy maple cake sugar pudding cream honey rich smooth crumble sweet treat", "https://ropsten.infura.io/"),
// network_id: 3
// },
// rinkeby: {
// provider: new HDWalletProvider("candy maple cake sugar pudding cream honey rich smooth crumble sweet treat", "https://rinkeby.infura.io/"), // lol someone funded this account!
// network_id: 3
// },
// kovan: {
// provider: new HDWalletProvider("candy maple clay sugar pudding cream honey rich smooth crumble sweet treat", "https://kovan.infura.io/"),
// network_id: 42
// },
},
solc: {
optimizer: {
enabled: false,
}
},
}