-
Notifications
You must be signed in to change notification settings - Fork 0
/
buidler.config.ts
47 lines (42 loc) · 1.08 KB
/
buidler.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
import { BuidlerConfig, usePlugin } from '@nomiclabs/buidler/config';
import * as dotenv from 'dotenv';
usePlugin('@nomiclabs/buidler-waffle');
usePlugin('@nomiclabs/buidler-etherscan');
usePlugin('buidler-typechain');
usePlugin('solidity-coverage');
dotenv.config();
const secret: string = process.env.MNEMONIC_OR_PRIVATE_KEY as string;
const config: BuidlerConfig = {
defaultNetwork: 'buidlerevm',
solc: {
version: '0.6.8',
optimizer: {
enabled: true,
runs: 200,
},
},
networks: {
buidlerevm: {
gas: 99999999,
gasPrice: 20,
blockGasLimit: 999999999,
allowUnlimitedContractSize: true,
},
ropsten: {
url: `https://ropsten.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [secret],
},
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [secret],
},
coverage: {
url: 'http://127.0.0.1:8555', // Coverage launches its own ganache-cli client
},
},
typechain: {
outDir: 'typechain',
target: 'ethers-v4',
},
};
export default config;