-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
61 lines (58 loc) · 1.19 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
59
60
61
// environment variables
import 'dotenv/config';
import '@nomicfoundation/hardhat-toolbox';
import '@openzeppelin/hardhat-upgrades';
import '@symblox/hardhat-abi-gen';
import 'hardhat-contract-sizer';
import 'hardhat-watcher';
// task files
import './tasks/contract';
import './tasks/deploy';
import './tasks/network';
// hardhat
import type { HardhatUserConfig } from 'hardhat/config';
const config: HardhatUserConfig = {
abiExporter: {
clear: true,
flat: true,
only: ['Critter.sol'],
},
contractSizer: {
strict: true,
},
gasReporter: {
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
currency: 'USD',
enabled: !!process.env.REPORT_GAS,
},
mocha: {
timeout: 0,
},
networks: {},
solidity: {
settings: {
optimizer: {
details: {
yul: true,
yulDetails: {
stackAllocation: true,
},
},
enabled: true,
runs: 2 ** 32 - 1,
},
},
version: '0.8.17',
},
watcher: {
compile: {
files: ['contracts/**/*.sol'],
tasks: ['compile'],
},
ci: {
files: ['contracts/**/*.sol', 'test/**/*.ts'],
tasks: ['test'],
},
},
};
export default config;