-
Notifications
You must be signed in to change notification settings - Fork 3
/
truffle.js
43 lines (40 loc) · 879 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
const Ganache = require('ganache-core');
const config = {
networks: {
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,
debug: true,
vmErrorsOnRPCResponse: true,
default_balance_ether: 5000000,
// 7 800 000
gasLimit: 0x7704c0
}),
skipDryRun: true,
network_id: '*'
}
},
compilers: {
solc: {
version: process.env.SOLC || 'native',
settings: {
optimizer: {
enabled: true,
runs: 200
}
},
evmVersion: 'petersburg'
}
}
};
if (process.env.SOLIDITY_COVERAGE === 'yes') {
delete config.networks.test;
}
module.exports = config;