forked from lidofinance/lido-l2
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhardhat.config.ts
93 lines (88 loc) · 2.02 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import * as dotenv from "dotenv";
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-verify";
import "@nomiclabs/hardhat-waffle";
import "@typechain/hardhat";
import "hardhat-gas-reporter";
import "solidity-coverage";
import "./tasks/fork-node";
import env from "./utils/env";
dotenv.config();
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.10",
settings: {
optimizer: {
enabled: true,
runs: 100_000,
},
},
},
],
},
networks: {
hardhat: {
gasPrice: 0,
initialBaseFeePerGas: 0,
chains: {
11155420: {
hardforkHistory: {
london: 13983909
}
}
}
},
l1: {
url: env.string("L1_PRC_URL", "")
},
l2: {
url: env.string("L2_PRC_URL", "")
},
l1_fork: {
url: "http://localhost:8545"
},
l2_fork: {
url: "http://localhost:9545"
}
},
gasReporter: {
enabled: env.string("REPORT_GAS", "false") !== "false",
currency: "USD",
},
etherscan: {
apiKey: {
"l1": env.string("L1_BLOCK_EXPLORER_API_KEY", ""),
"l2": env.string("L2_BLOCK_EXPLORER_API_KEY", ""),
},
customChains: [
{
network: 'l1',
chainId: env.number("L1_CHAIN_ID", ""),
urls: {
apiURL: env.string("L1_BLOCK_EXPLORER_API_URL", ""),
browserURL: env.string("L1_BLOCK_EXPLORER_BROWSER_URL", ""),
},
},
{
network: 'l2',
chainId: env.number("L2_CHAIN_ID", ""),
urls: {
apiURL: env.string("L2_BLOCK_EXPLORER_API_URL", ""),
browserURL: env.string("L2_BLOCK_EXPLORER_BROWSER_URL", ""),
},
},
],
},
typechain: {
externalArtifacts: [
"./interfaces/**/*.json",
"./utils/optimism/artifacts/*.json",
],
},
mocha: {
timeout: 20 * 60 * 60 * 1000, // 20 minutes for e2e tests
},
};
export default config;