-
Notifications
You must be signed in to change notification settings - Fork 4
/
hardhat.config.ts
39 lines (36 loc) · 1.04 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
import { config } from "dotenv";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import "@nomicfoundation/hardhat-viem";
import { HardhatUserConfig } from "hardhat/config";
config();
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
const hhConfig: HardhatUserConfig = {
networks: {
hardhat: {
forking: {
url: process?.env?.TEST_POLYGON_RPC ?? "https://rpc.ankr.com/polygon", // avalanche network to run the test on
blockNumber: 56738134,
},
mining: {
auto: true,
interval: 50,
},
gasPrice: "auto",
blockGasLimit: 100000000,
allowUnlimitedContractSize: true,
},
},
mocha: {
// explicit test configuration, just in case
asyncOnly: true,
bail: false,
parallel: false,
timeout: 5000000,
},
paths: {
tests: "./test/e2e",
},
};
export default hhConfig;