-
Notifications
You must be signed in to change notification settings - Fork 5
/
hardhat.config.js
62 lines (60 loc) · 1.41 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
require('@matterlabs/hardhat-zksync-deploy');
require('@matterlabs/hardhat-zksync-solc');
require('@matterlabs/hardhat-zksync-verify');
require('@nomiclabs/hardhat-ethers');
require('@nomicfoundation/hardhat-chai-matchers');
require('dotenv').config();
require('hardhat-dependency-compiler');
require('hardhat-deploy');
require('hardhat-tracer');
require('solidity-coverage');
require('solidity-docgen');
const { networks, etherscan } = require('./hardhat.networks');
module.exports = {
etherscan,
networks,
solidity: {
compilers: [
{
version: '0.8.20',
settings: {
optimizer: {
enabled: true,
runs: 1000000,
},
viaIR: true,
},
},
],
},
namedAccounts: {
deployer: {
default: 0,
},
},
mocha: {
timeout: 360000,
},
tracer: {
enableAllOpcodes: true,
},
dependencyCompiler: {
paths: [
'@1inch/solidity-utils/contracts/interfaces/IWETH.sol',
],
},
zksolc: {
version: '1.3.13',
compilerSource: 'binary',
settings: {
optimizer: {
mode: 'z',
},
},
},
docgen: {
outputDir: 'docs',
pages: 'files',
exclude: ['mocks'],
},
};