-
Notifications
You must be signed in to change notification settings - Fork 4
/
hardhat.config.linea.ts
55 lines (52 loc) · 1.53 KB
/
hardhat.config.linea.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 "@nomicfoundation/hardhat-foundry";
import "@nomicfoundation/hardhat-toolbox-viem";
import "@nomicfoundation/hardhat-viem";
import "dotenv/config";
import "hardhat-deploy";
import { HardhatUserConfig } from "hardhat/config";
import baseConfig from "./hardhat.config";
import "./tasks";
import {
LINEA_EZETH_182DAY,
LINEA_EZETH_COORDINATOR,
LINEA_FACTORY,
LINEA_RSETH_182DAY,
LINEA_RSETH_COORDINATOR,
} from "./tasks/deploy/config/linea";
const { env } = process;
const config: HardhatUserConfig = {
...baseConfig,
networks: {
linea: {
live: true,
url: env.HYPERDRIVE_ETHEREUM_URL!,
accounts: [env.DEPLOYER_PRIVATE_KEY!, env.PAUSER_PRIVATE_KEY!],
hyperdriveDeploy: {
factories: [LINEA_FACTORY],
coordinators: [
LINEA_EZETH_COORDINATOR,
LINEA_RSETH_COORDINATOR,
],
instances: [LINEA_EZETH_182DAY, LINEA_RSETH_182DAY],
checkpointRewarders: [],
checkpointSubrewarders: [],
},
},
},
etherscan: {
customChains: [
{
network: "linea_mainnet",
chainId: 59144,
urls: {
apiURL: "https://api.lineascan.build/api",
browserURL: "https://lineascan.build/",
},
},
],
apiKey: {
linea_mainnet: env.LINEASCAN_API_KEY ?? "",
},
},
};
export default config;