-
Notifications
You must be signed in to change notification settings - Fork 22
/
process-env.d.ts
48 lines (47 loc) · 1.85 KB
/
process-env.d.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
declare global {
namespace NodeJS {
interface ProcessEnv {
// system
readonly NODE_ENV: "development" | "production" | "test";
// private
readonly DATABASE_URL: string;
readonly L1_RPC_WS: string;
readonly L2_RPC_WS: string;
readonly ETHERSCAN_BASE_URL: string;
readonly ETHERSCAN_API_KEY: string;
// public
// L1 chain config
readonly NEXT_PUBLIC_L1_CHAIN_ID: string;
readonly NEXT_PUBLIC_L1_NAME: string;
readonly NEXT_PUBLIC_L1_RPC_URL: string;
readonly NEXT_PUBLIC_L1_BLOCK_EXPLORER_NAME: string;
readonly NEXT_PUBLIC_L1_BLOCK_EXPLORER_URL: string;
// L2 chain config
readonly NEXT_PUBLIC_L2_CHAIN_ID: string;
readonly NEXT_PUBLIC_L2_NAME: string;
readonly NEXT_PUBLIC_L2_RPC_URL: string;
readonly NEXT_PUBLIC_L2_BLOCK_EXPLORER_NAME: string;
readonly NEXT_PUBLIC_L2_BLOCK_EXPLORER_URL: string;
// L1 contract addresses for L2
readonly NEXT_PUBLIC_OPTIMISM_PORTAL_ADDRESS: `0x${string}`;
readonly NEXT_PUBLIC_L1_CROSS_DOMAIN_MESSENGER_ADDRESS: `0x${string}`;
// constants
readonly NEXT_PUBLIC_L1_BLOCK_TIME: string;
readonly NEXT_PUBLIC_L2_BLOCK_TIME: string;
readonly NEXT_PUBLIC_BLOCKS_PER_PAGE: string;
readonly NEXT_PUBLIC_TXS_PER_PAGE: string;
readonly NEXT_PUBLIC_TXS_ENQUEUED_PER_PAGE: string;
readonly NEXT_PUBLIC_EVENTS_PER_PAGE: string;
// fallback rpc urls
readonly NEXT_PUBLIC_L1_FALLBACK1_RPC_URL: string;
readonly NEXT_PUBLIC_L2_FALLBACK1_RPC_URL: string;
readonly NEXT_PUBLIC_L1_FALLBACK2_RPC_URL: string;
readonly NEXT_PUBLIC_L2_FALLBACK2_RPC_URL: string;
readonly NEXT_PUBLIC_L1_FALLBACK3_RPC_URL: string;
readonly NEXT_PUBLIC_L2_FALLBACK3_RPC_URL: string;
// reown
readonly NEXT_PUBLIC_PROJECT_ID: string;
}
}
}
export {};