-
Notifications
You must be signed in to change notification settings - Fork 66
/
Copy pathtruffle-config.js
65 lines (60 loc) · 1.98 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
require('dotenv').config(); // auto parse env variables from '.env' file
const HDWalletProvider = require('@truffle/hdwallet-provider');
module.exports = {
networks: {
loadTest: {
host: '127.0.0.1',
port: 8545,
network_id: '*',
gas: 0xfffffffffff,
},
local: {
host: process.env.ETH_CLIENT_HOST || '127.0.0.1',
port: process.env.ETH_CLIENT_PORT || 8545,
from: process.env.DEPLOYER_ADDRESS,
network_id: '*',
},
// Remote means that the remote client does not possess the private keys.
// Transactions need to be signed locally with the given private keys
// before getting submitted to the remote client.
remote: {
skipDryRun: true,
provider: () => new HDWalletProvider(
[
process.env.DEPLOYER_PRIVATEKEY || '0'.repeat(64),
process.env.MAINTAINER_PRIVATEKEY || '0'.repeat(64),
process.env.AUTHORITY_PRIVATEKEY || '0'.repeat(64),
],
process.env.REMOTE_URL || 'http://127.0.0.1:8545',
0, 3,
),
gasPrice: process.env.GAS_PRICE || 20000000000, // default 20 gwei
network_id: '*',
},
},
// Set default mocha options here, use special reporters etc.
mocha: {
reporter: process.env.MOCHA_REPORTER || '',
reporterOptions: {
currency: 'USD',
showTimeSpent: true,
rst: true,
rstTitle: 'Gas Report',
outputFile: './gasReport.rst',
src: 'contracts/src/',
},
},
// Configure your compilers
compilers: {
solc: {
version: '0.5.11',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
},
plugins: ['solidity-coverage'],
};