-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathhardhat.config.ts
43 lines (36 loc) · 1.02 KB
/
hardhat.config.ts
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
import { task, HardhatUserConfig } from 'hardhat/config';
import * as config from './config';
import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-etherscan';
import 'hardhat-abi-exporter';
import 'hardhat-typechain';
import 'solidity-coverage';
import 'hardhat-gas-reporter';
task('accounts', 'Prints the list of accounts', async (_, { ethers }) => {
const accounts = await ethers.getSigners()
for (const account of accounts) {
console.log(await account.getAddress())
}
})
const cfg: HardhatUserConfig = {
solidity: {
version: '0.6.12',
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
}
},
defaultNetwork: "hardhat",
networks: config.networks,
etherscan: config.etherscan,
abiExporter: {
only: ['Staking', 'YieldFarm', 'YieldFarmLP', 'YieldFarmBond', 'CommunityVault'],
clear: true,
},
gasReporter: {
enabled: !!(process.env.REPORT_GAS),
},
};
export default cfg;