-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.ts
63 lines (59 loc) · 1.41 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
import '@nomiclabs/hardhat-ethers';
import '@nomiclabs/hardhat-etherscan';
import '@nomiclabs/hardhat-waffle';
import 'hardhat-contract-sizer';
import '@typechain/hardhat';
import { HardhatUserConfig } from "hardhat/config";
import * as dotenv from 'dotenv';
dotenv.config();
const PRIVATE_KEY = process.env.PRIVATE_KEY || '0x1111111111111111111111111111111111111111111111111111111111111111';
const config: HardhatUserConfig = {
networks: {
hardhat: {
chainId: 1,
forking: {
url: 'https://rpc.ankr.com/eth',
},
accounts: [
{
privateKey: PRIVATE_KEY,
balance: '1000000000000000000000000000000000000'
}
],
allowUnlimitedContractSize: false
},
mainnet: {
url: 'https://rpc.ankr.com/eth',
accounts: [PRIVATE_KEY],
chainId: 1
},
arbitrum: {
url: 'https://rpc.ankr.com/arbitrum',
accounts: [PRIVATE_KEY],
chainId: 42161
},
bsc: {
url: 'https://rpc.ankr.com/bsc',
accounts: [PRIVATE_KEY],
chainId: 56
}
},
solidity: {
compilers: [
{
version: '0.8.17',
settings: {
optimizer: {
enabled: true,
runs: 1_000_000,
},
viaIR: true,
},
}
],
},
etherscan: {
apiKey: process.env.ETHERSCAN_KEY,
},
};
export default config;