-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.ts
85 lines (68 loc) · 2.33 KB
/
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
export const requireEnv = (value: string | undefined, identifier: string) => {
if (!value) {
throw new Error(`Required env var ${identifier} does not exist`);
}
return value;
};
export const TRADER_CONTRACT = requireEnv(
process.env.NEXT_PUBLIC_TRADER_CONTRACT,
"NEXT_PUBLIC_TRADER_CONTRACT",
) as `0x${string}`;
export const HYPERCERTS_MARKETPLACE_API_URL = requireEnv(
process.env.NEXT_PUBLIC_HYPERCERTS_MARKETPLACE_API_URL,
"NEXT_PUBLIC_HYPERCERTS_MARKETPLACE_API_URL",
);
export const SUPABASE_URL = requireEnv(
process.env.NEXT_PUBLIC_SUPABASE_URL,
"NEXT_PUBLIC_SUPABASE_URL",
);
export const SUPABASE_ANON_KEY = requireEnv(
process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY,
"NEXT_PUBLIC_SUPABASE_ANON_KEY",
);
export const SUPABASE_SERVICE_ROLE_KEY = requireEnv(
process.env.NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY,
"NEXT_PUBLIC_SUPABASE_SERVICE_ROLE_KEY",
);
export const SUPABASE_HYPERCERTS_URL = requireEnv(
process.env.NEXT_PUBLIC_SUPABASE_HYPERCERTS_URL,
"NEXT_PUBLIC_SUPABASE_HYPERCERTS_URL",
);
export const SUPABASE_HYPERCERTS_ANON_KEY = requireEnv(
process.env.NEXT_PUBLIC_SUPABASE_HYPERCERTS_ANON_KEY,
"NEXT_PUBLIC_SUPABASE_HYPERCERTS_ANON_KEY",
);
export const SUPABASE_HYPERCERTS_SERVICE_ROLE_KEY = requireEnv(
process.env.NEXT_PUBLIC_SUPABASE_HYPERCERTS_SERVICE_ROLE_KEY,
"NEXT_PUBLIC_SUPABASE_HYPERCERTS_SERVICE_ROLE_KEY",
);
export const NFT_STORAGE_TOKEN = requireEnv(
process.env.NEXT_PUBLIC_NFT_STORAGE_TOKEN,
"NEXT_PUBLIC_NFT_STORAGE_TOKEN",
);
export const WEB3_STORAGE_TOKEN = requireEnv(
process.env.NEXT_PUBLIC_WEB3_STORAGE_TOKEN,
"NEXT_PUBLIC_WEB3_STORAGE_TOKEN",
);
export const WALLETCONNECT_ID = requireEnv(
process.env.NEXT_PUBLIC_WALLETCONNECT_ID,
"NEXT_PUBLIC_WALLETCONNECT_ID",
);
export const ALCHEMY_KEY = requireEnv(
process.env.NEXT_PUBLIC_ALCHEMY_KEY,
"NEXT_PUBLIC_ALCHEMY_KEY",
);
export const JWT_SECRET = requireEnv(
process.env.NEXT_PUBLIC_JWT_SECRET,
"NEXT_PUBLIC_JWT_SECRET",
);
export const ZUZALU_DONATION_SAFE_ADDRESS = requireEnv(
process.env.NEXT_PUBLIC_ZUZALU_DONATION_SAFE,
"NEXT_PUBLIC_ZUZALU_DONATION_SAFE",
);
export const EAS_CONTRACT_ADDRESS = requireEnv(
process.env.NEXT_PUBLIC_EAS_CONTRACT_ADDRESS,
"NEXT_PUBLIC_EAS_CONTRACT_ADDRESS",
);
export const DEFAULT_RENDER_METHOD = "full";
export const NUMBER_OF_UNITS_IN_HYPERCERT = 1n * 10n ** 18n;