forked from dl-solarity/solidity-lib
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
47 lines (42 loc) · 1.01 KB
/
hardhat.config.ts
File metadata and controls
47 lines (42 loc) · 1.01 KB
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
import hardhatToolboxMochaEthers from "@nomicfoundation/hardhat-toolbox-mocha-ethers";
import hardhatMarkup from "@solarity/hardhat-markup";
import type { HardhatUserConfig } from "hardhat/config";
import hardhatContractSizer from "@solidstate/hardhat-contract-sizer";
const config: HardhatUserConfig = {
plugins: [hardhatToolboxMochaEthers, hardhatMarkup, hardhatContractSizer],
solidity: {
compilers: [
{
version: "0.8.22",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
evmVersion: "paris",
},
},
{
version: "0.8.28",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
evmVersion: "cancun",
},
},
],
},
typechain: {
outDir: "generated-types/ethers",
discriminateTypes: true,
},
contractSizer: {
alphaSort: false,
runOnCompile: true,
strict: false,
flat: true,
},
};
export default config;