-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
76 lines (70 loc) · 2.04 KB
/
hardhat.config.ts
File metadata and controls
76 lines (70 loc) · 2.04 KB
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
import "dotenv/config";
import { extendConfig, HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-deploy";
import "@matterlabs/hardhat-zksync";
import "./tasks/mintHypErc20";
import "./tasks/transfer";
import "./tasks/transferCollateral";
import "./tasks/mintErc20";
import "./tasks/transferErc20";
extendConfig(() => {
require(require.resolve("./tasks/enrollRouter"));
});
if (typeof process.env.PRIVATE_KEY === "undefined") {
throw new Error("PRIVATE KEY REQUIRED");
}
if (typeof process.env.ARBSEP_RPC_URL === "undefined") {
throw new Error("RPC URL required");
}
const config: HardhatUserConfig = {
namedAccounts: {
deployer: {
default: 0,
},
},
solidity: {
version: "0.8.23",
settings: {
optimizer: {
enabled: true,
runs: 800,
},
},
},
networks: {
arbsepolia: {
url: process.env.ARBSEP_RPC_URL,
accounts: [process.env.PRIVATE_KEY],
chainId: 421614,
lzMailbox: "0x598facE78a4302f11E3de0bee1894Da0b2Cb71F8",
},
sepolia: {
url: process.env.SEP_RPC_URL,
accounts: [process.env.PRIVATE_KEY],
chainId: 11155111,
lzMailbox: "0xfFAEF09B3cd11D9b20d1a19bECca54EEC2884766",
},
topaz: {
accounts: [process.env.PRIVATE_KEY],
url: "https://rpc.topaz.treasure.lol",
ethNetwork: "sepolia",
zksync: true,
chainId: 978658,
lzMailbox: "0x28f448885bEaaF662f8A9A6c9aF20fAd17A5a1DC",
},
treasure: {
accounts: [process.env.PRIVATE_KEY],
url: "https://rpc.treasure.lol",
ethNetwork: "ethereum",
zksync: true,
chainId: 61166,
lzMailbox: "0x9BbDf86b272d224323136E15594fdCe487F40ce7",
},
},
typechain: {
outDir: "typechain-types",
target: "ethers-v6",
},
};
export default config;