@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
10 lines • 1.01 kB
TypeScript
import { CryptoOrTokenCurrency, Currency } from "@ledgerhq/types-cryptoassets";
import { PlatformCurrency, PlatformSupportedCurrency, PlatformERC20TokenCurrency, PlatformCryptoCurrency } from "./types";
import { CurrencyFilters } from "./filters";
export declare function isPlatformSupportedCurrency(currency: Currency): currency is PlatformSupportedCurrency;
export declare function isPlatformCryptoCurrency(currency: PlatformCurrency): currency is PlatformCryptoCurrency;
export declare function isPlatformTokenCurrency(currency: PlatformCurrency): currency is PlatformERC20TokenCurrency;
export declare function isPlatformERC20TokenCurrency(currency: PlatformCurrency): currency is PlatformERC20TokenCurrency;
export declare function filterCurrencies(currencies: PlatformSupportedCurrency[], filters: CurrencyFilters): CryptoOrTokenCurrency[];
export declare function listAndFilterCurrencies({ includeTokens, currencies, }: CurrencyFilters): CryptoOrTokenCurrency[];
//# sourceMappingURL=helpers.d.ts.map