-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
44 lines (40 loc) · 1.12 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
38
39
40
41
42
43
44
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-waffle';
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 {
solidity: {
compilers: hardhatBaseConfig.compilers,
overrides: { ...hardhatBaseConfig.overrides(name) },
},
networks: {
test: {
allowUnlimitedContractSize: true,
url: 'https://alfajores-forno.celo-testnet.org',
accounts: {
mnemonic: process.env.MNEMONIC,
},
chainId: 44787,
gasPrice: 2000000000,
},
celo: {
allowUnlimitedContractSize: true,
url: 'https://forno.celo.org',
accounts: {
mnemonic: process.env.MNEMONIC,
},
chainId: 42220,
gasPrice: 2000000000,
},
},
paths: {
sources: './contracts',
tests: './test',
cache: './cache',
artifacts: './artifacts',
},
};