-
Notifications
You must be signed in to change notification settings - Fork 5
/
buidler.config.js
44 lines (36 loc) · 1.05 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
const config = require('./config')
usePlugin('@nomiclabs/buidler-waffle')
usePlugin("@nomiclabs/buidler-etherscan");
usePlugin("buidler-gas-reporter");
usePlugin('solidity-coverage');
usePlugin('buidler-abi-exporter');
// This is a sample Buidler task. To learn how to create your own go to
// https://buidler.dev/guides/create-task.html
task('accounts', 'Prints the list of accounts', async () => {
const accounts = await ethers.getSigners()
for (const account of accounts) {
console.log(await account.getAddress())
}
})
// Some of the settings should be defined in `./config.js`.
// Go to https://buidler.dev/config/ for the syntax.
module.exports = {
solc: {
version: '0.6.12',
optimizer: {
enabled: true,
runs: 1000,
},
},
defaultNetwork: "buidlerevm",
networks: config.networks,
etherscan: config.etherscan,
gasReporter: {
enabled: !!(process.env.REPORT_GAS),
},
abiExporter: {
path: './abi',
only: ['Vesting'],
clear: true,
},
}