-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtruffle.js
41 lines (39 loc) · 1.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
const HDWalletProvider = require("truffle-hdwallet-provider-privkey");
const infuraApiKey = require("./secrets.js").infuraApiKey;
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration> to customize your Truffle configuration!
networks: {
development: {
provider: function() {
const privateKeys = require("./secrets.js").privateKeysPrivateTestnet;
return new HDWalletProvider(privateKeys, "http://127.0.0.1:8545")
},
network_id: "*",
gas: 5000000,
gasPrice: 10000000000
},
ropsten: {
provider: function() {
const privateKeys = require("./secrets.js").privateKeysRopstenTestnet;
return new HDWalletProvider(privateKeys, "https://ropsten.infura.io/v3/" + infuraApiKey)
},
network_id: "3",
gas: 5000000,
gasPrice: 50000000000
},
live: {
provider: function() {
const privateKeys = require("./secrets.js").privateKeysMainnet;
return new HDWalletProvider(privateKeys, "https://mainnet.infura.io/v3/" + infuraApiKey)
},
network_id: "1",
gas: 5000000,
gasPrice: 10000000000
}
},
compilers: {
solc: {
version: "0.4.24"
}
}
};