-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtruffle-config.js
81 lines (73 loc) · 2.07 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
const HDWalletProvider = require('@truffle/hdwallet-provider');
require("dotenv").config({
path: __dirname + '/.env'
});
module.exports = {
networks: {
// development: {
// host: "127.0.0.1",
// port: 8545,
// network_id: "*",
// },
kovan: {
provider: () => new HDWalletProvider(
process.env.PRIVATEKEY,
`https://kovan.infura.io/v3/${process.env.INFURA_ID}`,
0, //address_index
10, // num_addresses
true // shareNonce
),
network_id: 42, // Kovan's id
gas: 3000000,
//confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 50, // # of blocks before a deployment times out (minimum/default: 50)
// skipDryRun: false // Skip dry run before migrations? (default: false for public nets )
},
ropsten: {
provider: () => new HDWalletProvider(
process.env.PRIVATEKEY,
`https://ropsten.infura.io/v3/${process.env.INFURA_ID}`,
0,
10,
true
),
network_id: 3,
gas: 3000000,
timeoutBlocks: 50,
},
mainnet: {
provider: () => new HDWalletProvider(
process.env.PRIVATEKEY,
`https://mainnet.infura.io/v3/${process.env.INFURA_ID}`,
0, //address_index
10, // num_addresses
true // shareNonce
),
network_id: 1, // mainnet's id
gas: 3000000, // max gaslimit
// gasPrice: +process.env.MAINNET_GAS_PRICE || 1000*1000*1000, // default 1 gwei
//confirmations: 2, // # of confs to wait between deployments. (default: 0)
timeoutBlocks: 50, // # of blocks before a deployment times out (minimum/default: 50)
skipDryRun: false // Skip dry run before migrations? (default: false for public nets )
}
},
mocha: {
// timeout: 100000
},
compilers: {
solc: {
version: "0.6.12",
// docker: true,
settings: {
optimizer: {
enabled: true,
runs: 200
},
// evmVersion: "byzantium"
}
}
},
plugins: [
"solidity-coverage",
],
}