-
Notifications
You must be signed in to change notification settings - Fork 113
/
hardhat.config.8.10.forking.ts
57 lines (55 loc) · 1.21 KB
/
hardhat.config.8.10.forking.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
import { config as dotEnvConfig } from "dotenv";
dotEnvConfig();
import "@openzeppelin/hardhat-upgrades";
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "solidity-coverage";
import "hardhat-deploy";
module.exports = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 31337,
gas: 12000000,
blockGasLimit: 0x1fffffffffffff,
allowUnlimitedContractSize: true,
timeout: 18000000000,
accounts: { mnemonic: "test test test test test test test test test test test junk" },
forking: {
url: process.env.BSC_MAINNET_FORK_RPC,
blockNumber: 14901371,
},
},
mainnetfork: {
url: process.env.MAINNET_FORK_URL,
accounts: [process.env.BSC_MAINNET_PRIVATE_KEY],
},
},
namedAccounts: {
deployer: {
default: 0,
},
},
solidity: {
version: "0.8.10",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
paths: {
sources: "./solidity/contracts/8.10",
tests: "./tests/integration",
cache: "./cache",
artifacts: "./artifacts",
},
typechain: {
outDir: "./typechain",
target: "ethers-v5",
},
mocha: {
timeout: 100000,
},
};