-
Notifications
You must be signed in to change notification settings - Fork 3
/
truffle.js
48 lines (47 loc) · 1.6 KB
/
truffle.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
const HDWalletProvider = require('truffle-hdwallet-provider');
const {INFURA_KEY, MNEMONIC} = require('./constants');
module.exports = {
compilers: {
solc: {
version: '0.5.0',
settings: {
optimizer: {
enabled: true, // Default: false
runs: 200 // Default: 200
},
}
}
},
networks: {
development: {
host: '127.0.0.1',
port: 7545,
gas: 6721975, // <-- Use this high gas value
gasPrice: 1000000000, // <-- Use this low gas price
network_id: '*', // Match any network id
},
ganache: {
host: '127.0.0.1',
port: 7545,
gas: 6721975, // <-- Use this high gas value
gasPrice: 1000000000, // <-- Use this low gas price
network_id: '5777', // Match any network id
},
coverage: {
host: "localhost",
network_id: "*",
port: 8555, // <-- If you change this, also set the port option in .solcover.js.
gas: 0xfffffffffff, // <-- Use this high gas value
gasPrice: 0x01 // <-- Use this low gas price
},
ropsten: {
provider: function () {
return new HDWalletProvider(MNEMONIC, `https://ropsten.infura.io/v3/${INFURA_KEY}`);
},
network_id: 3,
gas: 7000000, // default = 4712388
gasPrice: 4000000000, // default = 100 gwei = 100000000000
skipDryRun: true
},
}
};