-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtruffle.js
52 lines (50 loc) · 993 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
const Ganache = require('ganache-core');
const config = {
networks: {
production: {
host: '127.0.0.1',
port: 8545,
network_id: '*'
},
ganache: {
host: '127.0.0.1',
port: 7545,
network_id: '*'
},
development: {
host: '127.0.0.1',
port: 7545,
network_id: '*'
},
local: {
host: '127.0.0.1',
port: 8545,
network_id: '*'
},
test: {
// https://github.com/trufflesuite/ganache-core#usage
provider: Ganache.provider({
unlocked_accounts: [0, 1, 2, 3, 4, 5],
total_accounts: 30,
vmErrorsOnRPCResponse: true,
default_balance_ether: 5000000,
// 7 800 000
gasLimit: 0x7704c0
}),
skipDryRun: true,
network_id: '*'
}
},
compilers: {
solc: {
version: 'native',
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
}
}
};
module.exports = config;