-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuidler.config.js
57 lines (53 loc) · 1.09 KB
/
buidler.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
53
54
55
56
57
const { usePlugin } = require('@nomiclabs/buidler/config');
usePlugin('@nomiclabs/buidler-truffle5');
usePlugin('solidity-coverage');
usePlugin('buidler-contract-sizer');
usePlugin('buidler-gas-reporter');
const config = {
analytics: {
enabled: false,
},
contractSizer: {
alphaSort: false,
runOnCompile: false,
},
defaultNetwork: 'buidlerevm',
gasReporter: {
currency: 'USD',
enabled: !!(process.env.REPORT_GAS)
},
mocha: {},
networks: {
buidlerevm: {
chainId: 31337,
},
local: {
url: 'http://127.0.0.1:8545',
},
coverage: {
url: 'http://127.0.0.1:8555',
},
},
paths: {
artifacts: './artifacts',
cache: './cache',
coverage: './coverage',
coverageJson: './coverage.json',
root: './',
sources: './contracts',
tests: './test',
},
solc: {
/* https://buidler.dev/buidler-evm/#solidity-optimizer-support */
optimizer: {
enabled: true,
runs: 200,
},
version: '0.5.16',
},
typechain: {
outDir: 'typechain',
target: 'ethers-v5',
},
};
module.exports = config;