-
Notifications
You must be signed in to change notification settings - Fork 32
/
truffle.js
36 lines (34 loc) · 978 Bytes
/
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
const ganache = require('ganache-core');
const BigNumber = require('bignumber.js');
BigNumber.config({ EXPONENTIAL_AT: 100 });
module.exports = {
networks: {
ganache: {
network_id: '*', // eslint-disable-line camelcase
provider: ganache.provider({
total_accounts: 6, // eslint-disable-line camelcase
default_balance_ether: BigNumber(1e+99), // eslint-disable-line camelcase
mnemonic: 'mywish',
time: new Date('2017-10-10T15:00:00Z'),
debug: false,
// ,logger: console
}),
},
localhost: {
host: 'localhost',
port: 8545,
network_id: '*', // eslint-disable-line camelcase
},
},
solc: {
optimizer: {
enabled: true,
runs: 200,
},
},
network: 'ganache',
mocha: {
bail: true,
fullTrace: true,
},
};