-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtruffle-config.js
54 lines (53 loc) · 1.17 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
const HDWalletProvider = require("truffle-hdwallet-provider");
const Keys = require("./keys");
const rinkebyKeys = Keys("rinkeby");
const mainnetKeys = Keys("mainnet");
const ganacheKeys = Keys("ganache");
module.exports = {
networks: {
develop: {
host: "127.0.0.1",
port: 9545,
network_id: "*"
},
rinkeby: {
provider: new HDWalletProvider(
rinkebyKeys.mnemonic,
`https://rinkeby.infura.io/${rinkebyKeys.infuraKey}`
),
network_id: 4,
gas: "7000000",
gasPrice: "4000000000",
skipDryRun: true,
},
mainnet: {
provider: new HDWalletProvider(
mainnetKeys.mnemonic,
`https://mainnet.infura.io/${mainnetKeys.infuraKey}`
),
gas: "7800000",
gasPrice: "20000000000",
network_id: 1,
skipDryRun: true,
},
ganache: {
provider: new HDWalletProvider(
ganacheKeys.mnemonic,
`127.0.0.1:8545`
),
gas: "7000000",
gasPrice: "2000000000",
network_id: "*",
skipDryRun: true,
}
},
compilers: {
solc: {
version: "0.4.18",
optimizer: {
enabled: true,
runs: 200,
}
}
}
};