-
Notifications
You must be signed in to change notification settings - Fork 1
/
truffle-config.js
58 lines (56 loc) · 1.75 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
require("dotenv").config();
const Web3 = require("web3");
const web3 = new Web3();
let HDWalletProvider = require("@truffle/hdwallet-provider");
module.exports = {
networks: {
mainnet: {
provider: () => new HDWalletProvider(process.env.KEY, process.env.PROVIDER),
network_id: 1, // mainnet
gas: 2000000,
gasPrice: 65000000000, // check https://ethgasstation.info/
confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 200, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: false, // Skip dry run before migrations? (default: false for public nets )
},
rinkeby: {
provider: function() {
return new HDWalletProvider(process.env.MNEMONIC, process.env.PROVIDER);
},
network_id: 4,
gas: 10000000,
networkCheckTimeout: 100000000,
timeoutBlocks: 200
},
kovan: {
provider: function() {
return new HDWalletProvider(process.env.MNEMONIC, process.env.PROVIDER);
},
network_id: 42,
networkCheckTimeout: 100000000,
},
coverage: {
host: "127.0.0.1",
port: 8555,
network_id: "*",
},
ganache: {
host: '127.0.0.1',
port: 7545,
network_id: 5777
}
},
plugins: ["solidity-coverage"],
compilers: {
solc: {
version: "0.5.13",
//docker: true,
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
},
};