@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
15 lines • 551 B
JavaScript
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