"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFamilyByCurrencyId = exports.isUTXOCompliant = exports.isTokenCurrency = exports.isCryptoCurrency = void 0;
const cryptoassets_1 = require("@ledgerhq/cryptoassets");
function isCryptoCurrency(currency) {
    return currency.type === "CryptoCurrency";
}
exports.isCryptoCurrency = isCryptoCurrency;
function isTokenCurrency(currency) {
    return currency.type === "TokenCurrency";
}
exports.isTokenCurrency = isTokenCurrency;
function isUTXOCompliant(currencyFamily) {
    return currencyFamily === "bitcoin" || currencyFamily === "cardano";
}
exports.isUTXOCompliant = isUTXOCompliant;
function getFamilyByCurrencyId(currencyId) {
    const currency = (0, cryptoassets_1.findCryptoCurrencyById)(currencyId);
    return currency?.family;
}
exports.getFamilyByCurrencyId = getFamilyByCurrencyId;
//# sourceMappingURL=helpers.js.map