-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
executable file
·68 lines (66 loc) · 1.58 KB
/
truffle-config.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
let HDWalletProvider = require('truffle-hdwallet-provider');
let infuraKey = '2dcdc64520ac497481d2fd701b1c9641';
let mnemonic =
'uphold picnic age aunt sheriff embody dune gauge merit hero purse innocent';
module.exports = {
networks: {
development: {
host: '127.0.0.1',
port: 8545,
network_id: '*' // Match any network id
},
rinkeby: {
provider: function() {
return new HDWalletProvider(
mnemonic,
'https://rinkeby.infura.io/v3/' + infuraKey
);
},
// from: '0x66178bd1f010b4bF530203f90f889b599874fF84',
network_id: 4,
gas: 4500000,
gasPrice: 10000000000
}
} /* ,
compilers: {
solc: {
version: '0.4.24',
settings: {
optimizer: {
enabled: false,
runs: 200
}
}
}
} */
};
// const HDWalletProvider = require('truffle-hdwallet-provider');
// module.exports = {
// compilers: {
// solc: {
// optimizer: {
// enabled: true,
// runs: 200
// }
// }
// },
// networks: {
// development: {
// host: '127.0.0.1',
// port: 8545,
// network_id: '*' // Match any network id
// },
// rinkeby: {
// provider: () => {
// //replace string parameters
// return new HDWalletProvider(
// 'vacuum stuff swap chaos bulb design suit mask ticket october note private',
// 'rinkeby.infura.io/v3/5f756d9eb86749e1ad58bd0a563e4b9b'
// );
// },
// network_id: 4,
// gas: 6700000,
// gasPrice: 10000000000
// }
// }
// };