forked from mstable/mStable-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtruffle-config.js
65 lines (61 loc) · 1.48 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('ts-node/register')
// OPTIONAL: Allows the use of tsconfig path mappings with ts-node
require('tsconfig-paths/register')
const HDWalletProvider = require('@truffle/hdwallet-provider')
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// for more about customizing your Truffle configuration!
migrations_directory: './migrations',
contracts_build_directory: './build/contracts',
plugins: ['solidity-coverage', 'truffle-plugin-verify'],
api_keys: {
etherscan: ''
},
networks: {
development: {
host: '127.0.0.1',
port: 7545,
network_id: '*', // Match any network id
gas: 8000000
},
fork: {
host: '127.0.0.1',
port: 7545,
network_id: '*', // Match any network id
gas: 8000000
},
coverage: {
host: "127.0.0.1",
port: 7546,
network_id: "*",
gas: 0xfffffffffff, // <-- Use this high gas value
gasPrice: 0x01 // <-- Use this low gas price
},
ropsten: {
provider() {
return new HDWalletProvider("", `https://ropsten.infura.io/v3/`, 0, 3)
},
network_id: 3,
gasPrice: 100000000001, // 100 GWei,
skipDryRun: true,
gas: 8000000
}
},
mocha: {
reporter: 'eth-gas-reporter',
reporterOptions: {
currency: 'USD'
}
},
compilers: {
solc: {
version: '0.5.16',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}
}