forked from walnuthq/op-scan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
process-env.d.ts
40 lines (39 loc) · 1.53 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
declare global {
namespace NodeJS {
interface ProcessEnv {
// system
readonly NODE_ENV: "development" | "production" | "test";
// private
readonly DATABASE_URL: string;
readonly L1_RPC_WSS: string;
readonly L2_RPC_WSS: 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;
// L2 chain config
readonly NEXT_PUBLIC_L2_CHAIN_ID: string;
readonly NEXT_PUBLIC_L2_NAME: string;
readonly NEXT_PUBLIC_L2_RPC_URL: string;
// L1 contract addresses for L2
readonly NEXT_PUBLIC_DISPUTE_GAME_FACTORY_ADDRESS: `0x${string}`;
readonly NEXT_PUBLIC_L2_OUTPUT_ORACLE_ADDRESS: `0x${string}`;
readonly NEXT_PUBLIC_OPTIMISM_PORTAL_ADDRESS: `0x${string}`;
readonly NEXT_PUBLIC_L1_STANDARD_BRIDGE_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;
// 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;
}
}
}
export {};