-
Notifications
You must be signed in to change notification settings - Fork 18
/
hardhat.config.ts
55 lines (51 loc) · 1.16 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
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-etherscan";
import "@typechain/hardhat";
import "hardhat-gas-reporter";
import "solidity-coverage";
import "@tenderly/hardhat-tenderly";
import * as dotenv from "dotenv";
import { HardhatUserConfig } from "hardhat/config";
import "./tasks/clean";
dotenv.config();
const ALCHEMY_MAINNET: string = "https://eth-mainnet.alchemyapi.io/v2/" + process.env.ALCHEMY_API_KEY;
const COINMARKETCAP: string | undefined = process.env.COINMARKETCAP;
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
networks: {
hardhat: {
forking: {
url: ALCHEMY_MAINNET,
blockNumber: 12088078,
},
chainId: 1337,
},
},
solidity: {
version: "0.7.5",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
mocha: {
timeout: 600000,
},
gasReporter: {
currency: "USD",
gasPrice: 100,
coinmarketcap: COINMARKETCAP,
},
typechain: {
outDir: "typechain",
target: "ethers-v5",
},
tenderly: {
username: "gg2001",
project: "flashloans",
},
};
export default config;