forked from cinnabarhorse/diamond-2-hardhat-v6
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
37 lines (33 loc) · 1.06 KB
/
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
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomiclabs/hardhat-ethers";
import "@nomicfoundation/hardhat-chai-matchers";
import "@typechain/hardhat";
require("./tasks/deployUpgrade.ts");
require("./tasks/generateDiamondABI");
const config: HardhatUserConfig = {
typechain: {
outDir: "src/types",
target: "ethers-v6",
alwaysGenerateOverloads: false, // should overloads with full signatures like deposit(uint256) be generated always, even if there are no overloads?
externalArtifacts: ["externalArtifacts/*.json"], // optional array of glob patterns with external artifacts to process (for example external libs from node_modules)
dontOverrideCompile: false, // defaults to false
},
solidity: {
compilers: [
{
version: "0.8.18",
settings: {
optimizer: { enabled: true, runs: 200 },
},
},
{
version: "0.8.20",
settings: {
optimizer: { enabled: true, runs: 200 },
},
},
],
},
};
export default config;