-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathtruffle-config.js
49 lines (44 loc) · 1.14 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
const HDWalletProvider = require('truffle-hdwallet-provider');
const fs = require('fs');
const infuraKey = 'your-key';
const mnemonic = ''; // fs.readFileSync('.secret').toString().trim();
module.exports = {
networks: {
development: {
host: '127.0.0.1',
port: 8545,
gas: 6721975,
gasPrice: 20000000000,
network_id: '*',
},
ropsten: {
provider: () => new HDWalletProvider(mnemonic, `https://ropsten.infura.io/${infuraKey}`),
network_id: 3,
gas: 5500000,
confirmations: 2,
timeoutBlocks: 200,
skipDryRun: true,
},
},
mocha: {
// see more here: https://www.npmjs.com/package/eth-gas-reporter
// reporter: 'eth-gas-reporter',
},
solc: {
optimizer: {
enabled: true,
runs: 200,
},
},
compilers: {
solc: {
version: '0.5.2',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
},
};