forked from mellow-finance/mellow-vaults
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.test.config.ts
76 lines (74 loc) · 1.94 KB
/
hardhat.test.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
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
import { HardhatUserConfig } from "hardhat/config";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-etherscan";
import "solidity-coverage";
import "hardhat-contract-sizer";
import "hardhat-deploy";
import "@typechain/hardhat";
import "./plugins/contracts";
import defaultConfig from "./hardhat.config";
import { lensPath, set } from "ramda";
import { MultiSolcUserConfig, SolcUserConfig } from "hardhat/types";
const config: HardhatUserConfig = {
...defaultConfig,
networks: {
...defaultConfig.networks,
hardhat: {
...(defaultConfig.networks?.hardhat || {}),
initialBaseFeePerGas: 0,
allowUnlimitedContractSize: true,
},
},
namedAccounts: {
...defaultConfig.namedAccounts,
stranger: {
default: 5,
},
treasury: {
default: 6,
},
stranger1: {
default: 8,
},
stranger2: {
default: 9,
},
wbtcRichGuy: {
default: "0x000af223187a63f3b0bf6fe5a76ddc79e03ccb55",
},
},
solidity: {
compilers: (
defaultConfig.solidity as MultiSolcUserConfig
).compilers.map((x: SolcUserConfig) =>
set(
lensPath(["settings", "optimizer"]),
{
enabled: false,
details: {
yul: true,
yulDetails: {
stackAllocation: true,
},
},
},
x
)
),
},
paths: {
tests: "./test/",
sources: "./src/",
},
typechain: {
outDir: "test/types",
target: "ethers-v5",
alwaysGenerateOverloads: false,
},
mocha: {
timeout: 800000,
reporter: process.env["REPORTER"],
},
};
export default config;