-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathhardhat.config.ts
54 lines (49 loc) · 1.29 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
import dotenv from "dotenv";
dotenv.config(); // load env vars from .env
import { task, HardhatUserConfig } from "hardhat/config";
import "@nomiclabs/hardhat-waffle";
import "@nomiclabs/hardhat-ethers";
import "@tenderly/hardhat-tenderly";
import "./tasks/index";
const { ARCHIVE_URL } = process.env;
if (!ARCHIVE_URL)
throw new Error(
`ARCHIVE_URL env var not set. Copy .env.template to .env and set the env var`
);
const accounts = {
// use default accounts
mnemonic: `test test test test test test test test test test test junk`,
};
// Go to https://hardhat.org/config/ to learn more
const config: HardhatUserConfig = {
solidity: {
compilers: [
// add missing versions here
{ version: "0.4.11" },
{ version: "0.6.2" },
{ version: "0.7.0" },
{ version: "0.8.0" },
],
},
networks: {
hardhat: {
accounts,
loggingEnabled: false,
forking: {
url: ARCHIVE_URL, // https://eth-mainnet.alchemyapi.io/v2/SECRET`,
blockNumber: 11800000, // we will set this in each test
},
},
local: {
url: "http://127.0.0.1:8545",
},
},
mocha: {
timeout: 300 * 1e3,
},
// tenderly: {
// username: process.env.TENDERLY_USERNAME!,
// project: process.env.TENDERLY_PROJECT!,
// },
};
export default config;