-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathtruffle.js
46 lines (44 loc) · 1.27 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
const HDWalletProvider = require("truffle-hdwallet-provider");
const mnemonic = 'your self 12 chars';
module.exports = {
networks: {
development: {
host: "127.0.0.1",
port: 8545,
gas: 7500000,
network_id: "*" // Match any network id
},
kovan: {
gasPrice: 5000000000,
provider: function() {
return new HDWalletProvider(mnemonic,
"https://kovan.infura.io/v3/09c30ad18ed145c3997b0621e1816909")
},
network_id: 3
},
ropsten: {
// gas: 8000000,
gasPrice: 8000000000,
provider: function() {
return new HDWalletProvider(mnemonic,
"https://ropsten.infura.io/v3/09c30ad18ed145c3997b0621e1816909")
},
network_id: 2
},
mainnet: {
gas: 7500000,
gasPrice: 6000000000,
provider: function() {
return new HDWalletProvider(mnemonic,
"https://mainnet.infura.io/v3/09c30ad18ed145c3997b0621e1816909")
},
network_id: 1
}
},
solc: {
optimizer: {
enabled: true,
runs: 200
}
}
};