-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
49 lines (45 loc) · 1.39 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
require('ts-node/register')
// OPTIONAL: Allows the use of tsconfig path mappings with ts-node
//require('tsconfig-paths/register')
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: 60000000000, // 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 )
},
kovan: {
provider: function() {
return new HDWalletProvider(process.env.KEY, process.env.KOVANPROVIDER);
},
network_id: 42,
networkCheckTimeout: 100000000
},
coverage: {
host: '127.0.0.1',
port: 8555,
network_id: "*",
}
},
plugins: ["solidity-coverage"],
compilers: {
solc: {
version: "0.5.16",
//docker: true,
settings: {
optimizer: {
enabled: true,
runs: 200
},
}
}
}
};