forked from superdao-inc/dao-blockchain-os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.test.config.ts
40 lines (38 loc) · 1.14 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
import { lensPath, set } from "ramda"
import { HardhatUserConfig } from "hardhat/config"
import { MultiSolcUserConfig, SolcUserConfig } from "hardhat/types"
import "@nomiclabs/hardhat-ethers"
import "@nomiclabs/hardhat-waffle"
import "solidity-coverage"
import "@typechain/hardhat"
import "hardhat-gas-reporter"
import mainConfig from "./hardhat.config"
const config: HardhatUserConfig = {
...mainConfig,
networks: {
...mainConfig.networks,
hardhat: {
...(mainConfig.networks?.hardhat || {}),
initialBaseFeePerGas: 0,
allowUnlimitedContractSize: true,
},
},
solidity: {
compilers: (mainConfig.solidity as MultiSolcUserConfig).compilers.map((x: SolcUserConfig) =>
set(
lensPath(["settings", "optimizer"]),
{
enabled: false,
details: {
yul: true,
yulDetails: {
stackAllocation: true,
},
},
},
x
)
),
},
}
export default config