forked from balancer/balancer-v2-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
36 lines (32 loc) · 911 Bytes
/
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
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-waffle';
import 'hardhat-ignore-warnings';
import { hardhatBaseConfig } from '@balancer-labs/v2-common';
import { name } from './package.json';
import { task } from 'hardhat/config';
import { TASK_COMPILE } from 'hardhat/builtin-tasks/task-names';
import overrideQueryFunctions from '@balancer-labs/v2-helpers/plugins/overrideQueryFunctions';
task(TASK_COMPILE).setAction(overrideQueryFunctions);
export default {
networks: {
hardhat: {
allowUnlimitedContractSize: true,
},
},
solidity: {
// compilers: hardhatBaseConfig.compilers,
compilers: [
{
version: '0.7.1',
settings: {
optimizer: {
enabled: true,
runs: 10,
},
},
},
],
overrides: { ...hardhatBaseConfig.overrides(name) },
},
warnings: hardhatBaseConfig.warnings,
};