-
Notifications
You must be signed in to change notification settings - Fork 3
/
truffle.js
84 lines (83 loc) · 1.92 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
const { wsProviderForNetwork } = require('./galtproject-gpc');
module.exports = {
// See <http://truffleframework.com/docs/advanced/configuration>
// to customize your Truffle configuration!
networks: {
soliditycoverage: {
host: '127.0.0.1',
port: 8555,
gasLimit: 9600000,
network_id: '*',
},
ganache: {
host: '127.0.0.1',
port: 8545,
network_id: '*', // Match any network id
},
sokol: {
// 1 gwei
gasPrice: 1000 * 1000 * 1000,
// 10M
gasLimit: 9 * 1000 * 1000,
skipDryRun: true,
websockets: true,
provider: wsProviderForNetwork('sokol'),
network_id: '*',
},
xdai: {
// 1 gwei
gasPrice: 1000 * 1000 * 1000,
// 10M
gasLimit: 9 * 1000 * 1000,
skipDryRun: true,
websockets: true,
provider: wsProviderForNetwork('xdai'),
network_id: '*',
},
kovan: {
// 1 gwei
gasPrice: 9000 * 1000 * 1000,
// 10M
gasLimit: 9 * 1000 * 1000,
skipDryRun: true,
websockets: true,
provider: wsProviderForNetwork('kovan'),
network_id: '*',
},
yalland: {
// 1 gwei
gasPrice: 1000 * 1000 * 1000,
// 10M
gasLimit: 9 * 1000 * 1000,
skipDryRun: true,
provider: wsProviderForNetwork('yalland'),
network_id: '*',
},
test: {
// https://github.com/trufflesuite/ganache-core#usage
provider() {
// eslint-disable-next-line global-require
const { provider } = require('@openzeppelin/test-environment');
return provider;
},
skipDryRun: true,
network_id: '*',
},
},
mocha: {
timeout: 10000,
},
compilers: {
solc: {
version: process.env.SOLC || 'v0.5.17',
settings: {
optimizer: {
enabled: true,
runs: 20000,
},
},
evmVersion: 'istanbul',
},
},
plugins: ['solidity-coverage'],
};