alby-hub/frontend/src/constants.ts
Adithya Vardhan a2af8fd598
fix: return optional total balance in list apps response for subwallets (#2057)
* fix: return optional total balance in list apps response for subwallets

* chore: add error handling to subwallet balance query

* chore: add METADATA_APPSTORE_APP_ID_KEY constant

* chore: add MAX_FREE_SUBWALLETS constant

* chore: use subwallet query and total count for limit check
2026-02-26 12:25:06 +05:30

27 lines
950 B
TypeScript

export const localStorageKeys = {
returnTo: "returnTo",
setupReturnTo: "setupReturnTo",
channelOrder: "channelOrder",
authToken: "authToken",
supportAlbySidebarHintHiddenUntil: "supportAlbySidebarHintHiddenUntil",
};
export const ONCHAIN_DUST_SATS = 1000;
export const ALBY_HIDE_HOSTED_BALANCE_BELOW = 100;
export const ALBY_MIN_HOSTED_BALANCE_FOR_FIRST_CHANNEL = 10_000;
export const LIST_TRANSACTIONS_LIMIT = 20;
export const LIST_APPS_LIMIT = 20;
export const MAX_FREE_SUBWALLETS = 3;
export const SUPPORT_ALBY_CONNECTION_NAME = `ZapPlanner - Alby Hub`;
export const SUPPORT_ALBY_LIGHTNING_ADDRESS = "hub@getalby.com";
export const SUBWALLET_APPSTORE_APP_ID = "uncle-jim";
export const ALBY_ACCOUNT_APP_NAME = "getalby.com";
export const DEFAULT_APP_BUDGET_SATS = 10_000;
export const DEFAULT_APP_BUDGET_RENEWAL = "monthly";
export const BITCOIN_DISPLAY_FORMAT_BIP177 = "bip177";
export const BITCOIN_DISPLAY_FORMAT_SATS = "sats";