forked from zeriontech/defi-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
92 lines (90 loc) · 2.51 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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
require('@babel/register');
require('core-js');
require('regenerator-runtime/runtime');
require('dotenv').config();
import { HardhatUserConfig } from 'hardhat/config';
import '@nomiclabs/hardhat-waffle';
import '@nomiclabs/hardhat-etherscan';
import 'hardhat-tracer';
import 'hardhat-docgen';
import 'solidity-coverage';
const config: HardhatUserConfig = {
solidity: {
version: '0.8.12',
settings: {
optimizer: {
enabled: true,
runs: 1000000,
},
},
},
networks: {
hardhat: {
forking: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
},
blockGasLimit: 10000000,
gas: 10000000,
allowUnlimitedContractSize: true,
accounts: [
{
privateKey: '0xbe5d6e330de6c44c137f8fb45fa44dada079fb8bc29d290cadd8f882035dd189',
balance: '10000000000000000000000',
},
{
privateKey: '0x473acc210edb35998de9dc65495bafbf0a3804950482cd2b48af7bba7046d7de',
balance: '10000000000000000000000',
},
]
},
'truffle-dashboard': {
url: 'http://localhost:24012/rpc',
timeout: 400000,
},
mainnet: {
url: 'https://cloudflare-eth.com/',
},
xdai: {
url: 'https://rpc.gnosischain.com/',
},
bsc: {
url: 'https://bsc-dataseed.binance.org/',
},
avalanche: {
url: 'https://api.avax.network/ext/bc/C/rpc',
},
optimisticEthereum: {
url: 'https://mainnet.optimism.io',
},
arbitrumOne: {
url: 'https://arb1.arbitrum.io/rpc',
},
polygon: {
url: 'https://polygon-rpc.com',
},
aurora: {
url: 'https://mainnet.aurora.dev',
},
},
etherscan: {
apiKey: {
'mainnet': process.env.ETHEREUM_API_KEY ? process.env.ETHEREUM_API_KEY.toString() : '',
'polygon': process.env.POLYGON_API_KEY ? process.env.POLYGON_API_KEY.toString() : '',
'optimisticEthereum': process.env.OPTIMISM_API_KEY ? process.env.OPTIMISM_API_KEY.toString() : '',
'arbitrumOne': process.env.ARBITRUM_API_KEY ? process.env.ARBITRUM_API_KEY.toString() : '',
'bsc': process.env.BSC_API_KEY ? process.env.BSC_API_KEY.toString() : '',
'aurora': 'no',
'gnosis': process.env.GNOSIS_API_KEY ? process.env.GNOSIS_API_KEY.toString() : '',
'avalanche': process.env.AVALANCHE_API_KEY ? process.env.AVALANCHE_API_KEY.toString() : '',
},
},
docgen: {
path: './docs',
clear: false,
runOnCompile: false,
},
mocha: {
timeout: '200000',
},
};
export default config;