-
Notifications
You must be signed in to change notification settings - Fork 10
/
truffle.js
46 lines (44 loc) · 1.29 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
// Allows us to use ES6 in our migrations and tests.
require('babel-register')
module.exports = {
networks: {
// local testing with ganache-cli
ganache: {
host: 'localhost',
port: 8545,
gas: 3141592,
gasPrice: 100000000000,
network_id: '*', // Match any network id
from: '0x48089757dbc23bd8e49436247c9966ff15802978'
},
// local or CI integration testing with a privatenet node
// we need to separate this from the development network due to a bug with ganache-cli
// https://github.com/trufflesuite/ganache-cli/issues/405
// It currently doesn't support unlocking accounts properly
integration: {
host: 'localhost',
port: 8545,
gas: 3141592,
gasPrice: 100000000000,
network_id: '*', // Match any network id
from: '0x48089757dbc23bd8e49436247c9966ff15802978',
password: () => process.env.ACCOUNT_PASSWORD
},
tunnel: {
host: 'localhost',
port: 9545,
gas: 3141592,
network_id: '*', // Match any network id
from: '0x48089757dbc23bd8e49436247c9966ff15802978',
password: () => process.env.ACCOUNT_PASSWORD
},
}
};
if (!!process.env.GAS_USAGE) {
module.exports.mocha = {
reporter: 'eth-gas-reporter',
reporterOptions: {
currency: 'USD'
}
};
}