-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathhardhat.config.js
84 lines (76 loc) · 1.52 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
'use strict';
// Configure environment variables.
require('dotenv').config();
// Include Babel so that we may use some newer JavaScript syntax.
require('@babel/register');
// Include Waffle with Ethers as our preferred engine for testing.
require('@nomiclabs/hardhat-waffle');
// Include the detailed gas usage reporter for tests.
require('hardhat-gas-reporter');
// Include the contract size output display.
require('hardhat-contract-sizer');
// Include coverage checking for unit tests.
require('solidity-coverage');
// Include the Etherscan contract verifier.
require('@nomiclabs/hardhat-etherscan');
// Export a configuration for Hardhat to use when working with our contracts.
module.exports = {
solidity: {
compilers: [
{
version: '0.8.11',
settings: {
optimizer: {
enabled: true,
runs: 200,
details: {
yul: true
}
}
}
},
{
version: '0.8.19',
settings: {
optimizer: {
enabled: true,
runs: 200,
details: {
yul: true
}
}
}
}
]
},
gasReporter: {
excludeContracts: [
'ERC20',
'ERC721',
'beckLoot',
'IdentityMint',
'vaultBox',
'VaultMint',
'NTItems',
'NTLandDeploy',
'BYTESContract',
'NTBytesBridge',
'NTCitizenDeploy',
'CitizenMint',
'NTOuterIdentity',
'NTS2Items',
'NTS2LandDeploy',
'NTOuterCitizenDeploy',
'LPToken'
]
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
only: [
'BYTES2',
'NeoTokyoStaker'
],
runOnCompile: true
}
};