-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathtruffle-config.js
52 lines (49 loc) · 1.05 KB
/
truffle-config.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
/* eslint-disable */
require("chai")
.use(require("chai-as-promised"))
//.use(require("chai-bn")(require("bn.js")))
//.use(require("chai-string"))
//.use(require("dirty-chai"))
.expect();
const Decimal = require("decimal.js");
Decimal.set({ precision: 100, rounding: Decimal.ROUND_DOWN, toExpPos: 40 });
const ganache = require("ganache-core");
/* eslint-enable */
module.exports = {
contracts_directory: "./contracts",
contracts_build_directory: "./build/contracts",
test_directory: "./tests",
networks: {
development: {
host: "localhost",
port: 7545,
network_id: "*",
gasPrice: 20000000000,
gas: 6800000,
provider: ganache.provider({
gasLimit: 6800000,
gasPrice: 20000000000,
default_balance_ether: 10000000000000000000,
}),
},
},
plugins: ["solidity-coverage"],
compilers: {
solc: {
version: "0.5.17",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
},
mocha: {
enableTimeouts: false,
before_timeout: 3600000,
timeout: 1800000,
useColors: true,
reporter: "list",
},
};