-
Notifications
You must be signed in to change notification settings - Fork 41
/
hardhat.config.ts
34 lines (29 loc) · 984 Bytes
/
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
import * as dotenv from "dotenv";
import { HardhatUserConfig, task } from "hardhat/config";
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "solidity-coverage";
import token from "./scripts/token";
import tokenOverride from "./scripts/tokenOverride";
import flashSwap from "./scripts/flashSwap";
dotenv.config();
task("token", "Checks the passed token").addPositionalParam("address", "Address of token").setAction(token);
task("token-override", "Checks the passed token using geth's state override set")
.addPositionalParam("address", "Address of token")
.setAction(tokenOverride);
task("flash", "Checks if a flash swap can be performed").setAction(flashSwap);
const config: HardhatUserConfig = {
solidity: "0.8.10",
networks: {
hardhat: {
forking: {
url: process.env.MAINNET_URL || "",
blockNumber: 13904050,
},
},
mainnet: {
url: process.env.MAINNET_URL || "",
},
},
};
export default config;