-
Notifications
You must be signed in to change notification settings - Fork 0
/
truffle-config.js
76 lines (75 loc) · 2.2 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
require('dotenv').config();
const path = require('path');
const HDWalletProvider = require('@truffle/hdwallet-provider');
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
contracts_build_directory: path.join(__dirname, 'client/src/contracts/internal'),
networks: {
development: {
host: '127.0.0.1', // Localhost (default: none)
port: 7545, // Standard Ethereum port (default: none)
network_id: '*', // Any network (default: none)
},
coverage: {
host: '127.0.0.1', // Localhost (default: none)
port: 8555, // Standard Ethereum port (default: none)
network_id: '*', // Any network (default: none)
disableConfirmationListener: true,
},
ropsten: {
provider: function () {
return new HDWalletProvider(
[process.env.PRIVATE_KEYS],
`wss://ropsten.infura.io/ws/v3/${process.env.INFURA_KEY}`
);
},
network_id: 3,
gas: 5000000,
gasPrice: 45000000000,
confirmations: 2,
skipDryRun: false,
websocket: true,
timeoutBlocks: 50000,
networkCheckTimeout: 1000000,
},
mainnet: {
provider: function () {
return new HDWalletProvider(
[process.env.PRIVATE_KEYS],
`wss://mainnet.infura.io/ws/v3/${process.env.INFURA_KEY}`
);
},
network_id: 1,
gas: 5000000,
gasPrice: 45000000000,
confirmations: 2,
skipDryRun: false,
websocket: true,
timeoutBlocks: 50000,
networkCheckTimeout: 1000000,
},
},
mocha: {
reporter: 'eth-gas-reporter',
reporterOptions: {
excludeContracts: ['Migrations'],
},
enableTimeouts: false,
},
compilers: {
solc: {
version: '0.8.6', // Fetch exact version from solc-bin (default: truffle's version)
// docker: true, // Use "0.5.1" you've installed locally with docker (default: false)
settings: {
// See the solidity docs for advice about optimization and evmVersion
optimizer: {
enabled: true,
runs: 200,
},
// evmVersion: "byzantium"
},
},
},
plugins: ['solidity-coverage'],
};