-
Notifications
You must be signed in to change notification settings - Fork 41
/
hardhat.config.js
41 lines (41 loc) · 1.03 KB
/
hardhat.config.js
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
require('hardhat-gas-reporter');
require('solidity-coverage');
require('@typechain/hardhat');
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: '0.8.9',
settings: {
evmVersion: process.env.EVM_VERSION || 'london',
optimizer: {
enabled: true,
runs: 1000,
details: {
peephole: true,
inliner: true,
jumpdestRemover: true,
orderLiterals: true,
deduplicate: true,
cse: true,
constantOptimizer: true,
yul: true,
yulDetails: {
stackAllocation: true,
},
},
},
},
},
paths: {
sources: './__tests__/contracts',
},
mocha: {
timeout: 200000,
},
typechain: {
outDir: 'src/types',
target: 'ethers-v5',
},
};