-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathconfig.ts
More file actions
34 lines (30 loc) · 1.5 KB
/
config.ts
File metadata and controls
34 lines (30 loc) · 1.5 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
const isDevMode = process?.env?.NODE_ENV === 'development';
const version = process?.env?.NEXT_PUBLIC_VERSION ?? null;
const registryUrl = process?.env?.NEXT_PUBLIC_REGISTRY_URL || undefined;
const registryBranch = process?.env?.NEXT_PUBLIC_REGISTRY_BRANCH || 'main';
const explorerApiKeys = JSON.parse(process?.env?.EXPLORER_API_KEYS || '{}');
const walletConnectProjectId = process?.env?.NEXT_PUBLIC_WALLET_CONNECT_ID || '';
interface Config {
debug: boolean;
version: string | null;
apiUrl: string;
explorerApiKeys: Record<string, string>;
githubProxy?: string;
registryUrl: string | undefined; // Optional URL to use a custom registry instead of the published canonical version
registryBranch?: string | undefined; // Optional customization of the registry branch instead of main
walletConnectProjectId: string; // WalletConnect project ID for wallet connections
}
export const config: Config = Object.freeze({
debug: isDevMode,
version,
apiUrl: 'https://explorer4.hasura.app/v1/graphql',
explorerApiKeys,
githubProxy: 'https://proxy.hyperlane.xyz',
registryBranch,
registryUrl,
walletConnectProjectId,
});
// Based on https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/typescript/infra/config/environments/mainnet3/agent.ts
// Based on https://github.com/hyperlane-xyz/hyperlane-monorepo/blob/main/typescript/infra/config/environments/testnet4/agent.ts
export const unscrapedChainsInDb = ['proteustestnet', 'viction'];
export const debugIgnoredChains = ['treasure', 'treasuretopaz'];