forked from 1inch/solidity-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
39 lines (35 loc) · 924 Bytes
/
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
import '@typechain/hardhat';
import '@nomiclabs/hardhat-ethers';
import '@nomicfoundation/hardhat-chai-matchers';
import 'hardhat-gas-reporter';
import 'hardhat-tracer';
require('solidity-coverage'); // require because no TS typings available
import dotenv from 'dotenv';
import { HardhatUserConfig } from 'hardhat/config';
import networks from './hardhat.networks';
dotenv.config();
declare module 'hardhat/types/runtime' {
interface HardhatRuntimeEnvironment {
__SOLIDITY_COVERAGE_RUNNING?: boolean | undefined;
}
}
const config: HardhatUserConfig = {
solidity: {
version: '0.8.15',
settings: {
optimizer: {
enabled: true,
runs: 1000000,
},
viaIR: true,
},
},
networks,
gasReporter: {
enabled: true,
},
typechain: {
target: 'ethers-v5',
},
};
export default config;