UNPKG

@ledgerhq/live-common

Version:
14 lines 957 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getBaseId = exports.sortAccountsByFiatValue = exports.groupCurrenciesByAsset = void 0; exports.belongsToSameNetwork = belongsToSameNetwork; var groupCurrenciesByAsset_1 = require("./groupCurrenciesByAsset"); Object.defineProperty(exports, "groupCurrenciesByAsset", { enumerable: true, get: function () { return groupCurrenciesByAsset_1.groupCurrenciesByAsset; } }); var sortAccountsByFiatValue_1 = require("./sortAccountsByFiatValue"); Object.defineProperty(exports, "sortAccountsByFiatValue", { enumerable: true, get: function () { return sortAccountsByFiatValue_1.sortAccountsByFiatValue; } }); const getBaseId = (currency) => currency.type === "CryptoCurrency" ? currency.id : currency.parentCurrency.id; exports.getBaseId = getBaseId; function belongsToSameNetwork(elem, network) { return getBaseId(elem) === getBaseId(network); } //# sourceMappingURL=index.js.map