-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathhardhat.config.ts
45 lines (40 loc) · 1.01 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
44
45
import './tasks/rename_entity';
import '@nomicfoundation/hardhat-chai-matchers';
import '@nomicfoundation/hardhat-ethers';
import '@solidstate/hardhat-4byte-uploader';
import '@typechain/hardhat';
import 'hardhat-abi-exporter';
import 'hardhat-contract-sizer';
import 'hardhat-exposed';
import 'hardhat-gas-reporter';
import 'hardhat-linearization';
import 'hardhat-spdx-license-identifier';
import { HardhatUserConfig } from 'hardhat/types';
import 'solidity-coverage';
const config: HardhatUserConfig = {
solidity: {
version: '0.8.28',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
abiExporter: {
runOnCompile: true,
clear: true,
flat: true,
// do not export internal or test ABIs, including those generated by hardhat-exposed
except: ['_.*', '.*Test$', '[$].*'],
},
gasReporter: {
enabled: true,
reportPureAndViewMethods: true,
},
spdxLicenseIdentifier: {
overwrite: false,
runOnCompile: true,
},
};
export default config;