-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathhardhat.config.ts
58 lines (52 loc) · 1.33 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
46
47
48
49
50
51
52
53
54
55
56
57
58
import './tasks/compile';
import './tasks/generate_bytes32_builder';
import './tasks/generate_eip_712';
import './tasks/organize_test_files';
import './tasks/rename_entity';
import './tasks/scaffold_contract';
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 = {
networks: {
hardhat: {
allowUnlimitedContractSize: true,
},
},
solidity: {
version: '0.8.29',
settings: {
evmVersion: 'cancun',
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,
outputFile: './gasreport.txt',
},
spdxLicenseIdentifier: {
overwrite: false,
runOnCompile: true,
},
};
export default config;