-
Notifications
You must be signed in to change notification settings - Fork 4
/
truffle.js
50 lines (49 loc) · 1.19 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
49
50
require('dotenv').config();
const MNEMONIC = process.env.MNEMONIC_PHRASE;
const INFURA_PROJECT_ID = process.env.INFURA_PROJECT_ID;
const HDWalletProvider = require('truffle-hdwallet-provider');
module.exports = {
networks: {
development: {
host: 'localhost',
port: 8545,
network_id: '*',
gas: 6000000,
},
test: {
host: 'localhost',
port: 8545,
network_id: '1337',
gas: 6000000,
},
coverage: {
host: 'localhost',
network_id: '*',
port: 8545,
gas: 0xfffffffffff, // <-- Use this high gas value
gasPrice: 0x01, // <-- Use this low gas price
},
localBlockchain: {
host: 'localhost',
port: 20010,
network_id: '*', // Match any network id
},
ganachecli: {
host: process.env.GANACHE,
port: process.env.GANACHE_PORT || 8545,
network_id: '*', // Match any network id
},
rinkeby: {
provider: () => new HDWalletProvider(MNEMONIC, `https://rinkeby.infura.io/v3/${INFURA_PROJECT_ID}`, 1),
network_id: 4,
gas: 4700000,
},
},
mocha: {
reporter: 'eth-gas-reporter',
reporterOptions: {
currency: 'USD',
gasPrice: 21,
},
},
};