UNPKG

@ledgerhq/live-common

Version:
60 lines 2.42 kB
/// <reference types="react" /> import type { CryptoOrTokenCurrency } from "@ledgerhq/types-cryptoassets"; import { UseBalanceDeps, CreateBalanceItem } from "../utils/type"; export type AssetDeps = { useBalanceDeps: UseBalanceDeps; balanceItem: CreateBalanceItem; assetsMap: Map<string, { mainCurrency: CryptoOrTokenCurrency; currencies: CryptoOrTokenCurrency[]; }>; }; export declare function createUseRightBalanceAsset({ useBalanceDeps, balanceItem, assetsMap }: AssetDeps): (assets: CryptoOrTokenCurrency[]) => ({ balanceData: any; rightElement: import("react").ReactNode; name: string; ticker: string; units: import("@ledgerhq/types-cryptoassets").Unit[]; symbol?: string | undefined; disableCountervalue?: boolean | undefined; delisted?: boolean | undefined; keywords?: string[] | undefined; type: "CryptoCurrency"; id: import("@ledgerhq/types-cryptoassets").CryptoCurrencyId | "LBRY" | "groestcoin" | "osmo"; forkedFrom?: string | undefined; managerAppName: string; coinType: import("@ledgerhq/types-cryptoassets").CoinType; scheme: string; color: string; family: string; blockAvgTime?: number | undefined; supportsSegwit?: boolean | undefined; supportsNativeSegwit?: boolean | undefined; isTestnetFor?: string | undefined; bitcoinLikeInfo?: import("@ledgerhq/types-cryptoassets").BitcoinLikeInfo | undefined; ethereumLikeInfo?: import("@ledgerhq/types-cryptoassets").EthereumLikeInfo | undefined; explorerViews: import("@ledgerhq/types-cryptoassets").ExplorerView[]; terminated?: { link: string; } | undefined; deviceTicker?: string | undefined; explorerId?: import("@ledgerhq/types-cryptoassets").LedgerExplorerId | undefined; tokenTypes?: string[] | undefined; } | { balanceData: any; rightElement: import("react").ReactNode; name: string; ticker: string; units: import("@ledgerhq/types-cryptoassets").Unit[]; symbol?: string | undefined; disableCountervalue?: boolean | undefined; delisted?: boolean | undefined; keywords?: string[] | undefined; type: "TokenCurrency"; id: string; ledgerSignature?: string | undefined; contractAddress: string; parentCurrency: import("@ledgerhq/types-cryptoassets").CryptoCurrency; tokenType: string; })[]; //# sourceMappingURL=useRightBalanceAsset.d.ts.map