forked from Sanghren/avalanche-hardhat-fork-tutorial
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
34 lines (30 loc) · 808 Bytes
/
hardhat.config.ts
File metadata and controls
34 lines (30 loc) · 808 Bytes
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
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import { HardhatUserConfig } from "hardhat/types";
import * as dotenv from "dotenv";
dotenv.config();
const AVALANCHE_MAINNET_URL = process.env.AVALANCHE_MAINNET_URL;
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
solidity: "0.8.4",
networks: {
hardhat: {
chainId: 43114,
gasPrice: 225000000000,
throwOnTransactionFailures: false,
loggingEnabled: true,
forking: {
url: AVALANCHE_MAINNET_URL as string,
enabled: true,
blockNumber: 2975762
},
},
},
typechain: {
outDir: "typechain",
target: "ethers-v5",
},
};
export default config;