-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtruffle-config.js
More file actions
102 lines (90 loc) · 2.1 KB
/
Copy pathtruffle-config.js
File metadata and controls
102 lines (90 loc) · 2.1 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
'use strict';
var HDWalletProvider = require("@truffle/hdwallet-provider")
const isCoverage = process.env.COVERAGE === 'true'
module.exports = {
networks: {
// development: {
// host: 'localhost',
// port: 7545,
// gas: 12000000,
// gasPrice: 1 * 1000000000,
// network_id: '5777'
// },
local: {
host: 'localhost',
port: 8545,
gas: 6999999,
gasPrice: 1 * 1000000000,
network_id: '*'
},
rinkeby: {
provider: function() {
const mnemonic = 'lumber choice thing skull allow favorite light horse gun media treat peasant'
return new HDWalletProvider(mnemonic, 'https://rinkeby.infura.io/v3/0865b420656e4d70bcbbcc76e265fd57')
},
network_id: 4,
skipDryRun: true,
networkCheckTimeout: 10000,
gas: 7000000 , // Gas limit used for deploys
gasPrice: 100 * 1000000000,
},
mainnet: {
provider: () => new HDWalletProvider(
process.env.HDWALLET_MNEMONIC,
process.env.INFURA_PROVIDER_URL_MAINNET,
0,
3
),
skipDryRun: true,
network_id: 1,
gas: 7000000,
gasPrice: 3.01 * 1000000000
},
kovan: {
provider: () => new HDWalletProvider(
process.env.HDWALLET_MNEMONIC,
process.env.INFURA_PROVIDER_URL_KOVAN,
0,
3
),
skipDryRun: true,
network_id: 42
},
mainnet_fork: {
provider: () => new HDWalletProvider(
process.env.HDWALLET_MNEMONIC,
process.env.LOCALHOST_URL,
0,
3
),
gas: 7000000,
network_id: 999
// gasPrice: 11.101 * 1000000000
}
},
plugins: ["solidity-coverage"],
compilers: {
solc: {
version: "0.6.12",
settings: {
evmVersion: 'constantinpole'
}
}
},
// optimization breaks code coverage
solc: {
optimizer: {
enabled: !isCoverage,
runs: 200
}
},
mocha: isCoverage ? {
reporter: 'mocha-junit-reporter',
} : {
reporter: 'eth-gas-reporter',
reporterOptions : {
currency: 'USD',
gasPrice: 10
}
}
};