UNPKG

@ledgerhq/live-common

Version:
15 lines 551 B
import { findCryptoCurrencyById } from "@ledgerhq/cryptoassets"; export function isCryptoCurrency(currency) { return currency.type === "CryptoCurrency"; } export function isTokenCurrency(currency) { return currency.type === "TokenCurrency"; } export function isUTXOCompliant(currencyFamily) { return currencyFamily === "bitcoin" || currencyFamily === "cardano"; } export function getFamilyByCurrencyId(currencyId) { const currency = findCryptoCurrencyById(currencyId); return currency?.family; } //# sourceMappingURL=helpers.js.map