UNPKG

@ledgerhq/live-common

Version:
36 lines 1.92 kB
import Fuse from "fuse.js"; import { AppManifest } from "../wallet-api/types"; export declare const FAMILIES_MAPPING_WAPI_TO_LL: { readonly ethereum: "evm"; readonly ripple: "xrp"; readonly elrond: "multiversx"; }; export declare const FAMILIES_MAPPING_LL_TO_WAPI: Record<"evm" | "xrp" | "multiversx", "ethereum" | "ripple" | "elrond">; /** * FIXME * This is not robust, we should have an explicit adapter between the wallet API currencies (families) and live currencies (families) * For example here, the `ethereum` family on `wallet-api` should be mapped to the `evm` family on LL */ export declare const WALLET_API_FAMILIES: ("bitcoin" | "cardano" | "aptos" | "crypto_org" | "evm" | "ethereum" | "vechain" | "internet_computer" | "ton" | "sui" | "celo" | "casper" | "cosmos" | "near" | "solana" | "stellar" | "tron" | "xrp" | "polkadot" | "tezos" | "algorand" | "multiversx" | "ripple" | "elrond" | "filecoin" | "hedera" | "kaspa" | "neo" | "stacks")[]; export declare const WALLET_API_VERSION = "2.0.0"; export declare const BROWSE_SEARCH_OPTIONS: Fuse.IFuseOptions<AppManifest>; export declare const HTTP_REGEX: RegExp; export declare const INITIAL_PLATFORM_STATE: { recentlyUsed: never[]; currentAccountHist: {}; cacheBustedLiveApps: { init: number; }; localLiveApp: never[]; }; export declare const MAX_RECENTLY_USED_LENGTH = 10; export declare const DAPP_DISCLAIMER_ID = "PlatformAppDisclaimer"; export declare const DISCOVER_STORE_KEY = "discover"; export declare const DISCOVER_INITIAL_CATEGORY = "all"; export declare const DEFAULT_MULTIBUY_APP_ID = "multibuy-v2"; export declare const BUY_SELL_UI_APP_ID = "buy-sell-ui"; export declare const CARD_APP_ID = "card-program"; export declare const WC_ID = "ledger-wallet-connect"; export declare const LEDGER_SHOP_ID = "ledger-shop"; export declare const INTERNAL_APP_IDS: string[]; //# sourceMappingURL=constants.d.ts.map