@ledgerhq/live-common
Version:
Common ground for the Ledger Live apps
61 lines • 7.22 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.valueFromUnit = exports.OFAC_CURRENCIES = exports.listSupportedFiats = exports.currenciesByMarketcap = exports.sortCurrenciesByIds = exports.formatShort = exports.getCurrencyColor = exports.setSupportedCurrencies = exports.listSupportedCurrencies = exports.isCurrencySupported = exports.toLocaleString = exports.parseCurrencyUnit = exports.formatCurrencyUnit = exports.sanitizeValueString = exports.decodeURIScheme = exports.encodeURIScheme = exports.addTokens = exports.getAbandonSeedAddress = exports.findTokenByAddressInCurrency = exports.findTokenById = exports.listTokenTypesForCryptoCurrency = exports.listTokensForCryptoCurrency = exports.listTokens = exports.findCryptoCurrencyByTicker = exports.findCryptoCurrencyByKeyword = exports.findCryptoCurrencyByScheme = exports.findCryptoCurrencyById = exports.findCryptoCurrency = exports.hasCryptoCurrencyId = exports.getCryptoCurrencyById = exports.listCryptoCurrencies = exports.hasFiatCurrencyTicker = exports.getFiatCurrencyByTicker = exports.findFiatCurrencyByTicker = exports.listFiatCurrencies = void 0;
var cryptoassets_1 = require("@ledgerhq/cryptoassets");
Object.defineProperty(exports, "listFiatCurrencies", { enumerable: true, get: function () { return cryptoassets_1.listFiatCurrencies; } });
Object.defineProperty(exports, "findFiatCurrencyByTicker", { enumerable: true, get: function () { return cryptoassets_1.findFiatCurrencyByTicker; } });
Object.defineProperty(exports, "getFiatCurrencyByTicker", { enumerable: true, get: function () { return cryptoassets_1.getFiatCurrencyByTicker; } });
Object.defineProperty(exports, "hasFiatCurrencyTicker", { enumerable: true, get: function () { return cryptoassets_1.hasFiatCurrencyTicker; } });
Object.defineProperty(exports, "listCryptoCurrencies", { enumerable: true, get: function () { return cryptoassets_1.listCryptoCurrencies; } });
Object.defineProperty(exports, "getCryptoCurrencyById", { enumerable: true, get: function () { return cryptoassets_1.getCryptoCurrencyById; } });
Object.defineProperty(exports, "hasCryptoCurrencyId", { enumerable: true, get: function () { return cryptoassets_1.hasCryptoCurrencyId; } });
Object.defineProperty(exports, "findCryptoCurrency", { enumerable: true, get: function () { return cryptoassets_1.findCryptoCurrency; } });
Object.defineProperty(exports, "findCryptoCurrencyById", { enumerable: true, get: function () { return cryptoassets_1.findCryptoCurrencyById; } });
Object.defineProperty(exports, "findCryptoCurrencyByScheme", { enumerable: true, get: function () { return cryptoassets_1.findCryptoCurrencyByScheme; } });
Object.defineProperty(exports, "findCryptoCurrencyByKeyword", { enumerable: true, get: function () { return cryptoassets_1.findCryptoCurrencyByKeyword; } });
Object.defineProperty(exports, "findCryptoCurrencyByTicker", { enumerable: true, get: function () { return cryptoassets_1.findCryptoCurrencyByTicker; } });
Object.defineProperty(exports, "listTokens", { enumerable: true, get: function () { return cryptoassets_1.listTokens; } });
Object.defineProperty(exports, "listTokensForCryptoCurrency", { enumerable: true, get: function () { return cryptoassets_1.listTokensForCryptoCurrency; } });
Object.defineProperty(exports, "listTokenTypesForCryptoCurrency", { enumerable: true, get: function () { return cryptoassets_1.listTokenTypesForCryptoCurrency; } });
Object.defineProperty(exports, "findTokenById", { enumerable: true, get: function () { return cryptoassets_1.findTokenById; } });
Object.defineProperty(exports, "findTokenByAddressInCurrency", { enumerable: true, get: function () { return cryptoassets_1.findTokenByAddressInCurrency; } });
Object.defineProperty(exports, "getAbandonSeedAddress", { enumerable: true, get: function () { return cryptoassets_1.getAbandonSeedAddress; } });
Object.defineProperty(exports, "addTokens", { enumerable: true, get: function () { return cryptoassets_1.addTokens; } });
var currencies_1 = require("@ledgerhq/coin-framework/currencies");
Object.defineProperty(exports, "encodeURIScheme", { enumerable: true, get: function () { return currencies_1.encodeURIScheme; } });
Object.defineProperty(exports, "decodeURIScheme", { enumerable: true, get: function () { return currencies_1.decodeURIScheme; } });
Object.defineProperty(exports, "sanitizeValueString", { enumerable: true, get: function () { return currencies_1.sanitizeValueString; } });
Object.defineProperty(exports, "formatCurrencyUnit", { enumerable: true, get: function () { return currencies_1.formatCurrencyUnit; } });
Object.defineProperty(exports, "parseCurrencyUnit", { enumerable: true, get: function () { return currencies_1.parseCurrencyUnit; } });
Object.defineProperty(exports, "toLocaleString", { enumerable: true, get: function () { return currencies_1.toLocaleString; } });
Object.defineProperty(exports, "isCurrencySupported", { enumerable: true, get: function () { return currencies_1.isCurrencySupported; } });
Object.defineProperty(exports, "listSupportedCurrencies", { enumerable: true, get: function () { return currencies_1.listSupportedCurrencies; } });
Object.defineProperty(exports, "setSupportedCurrencies", { enumerable: true, get: function () { return currencies_1.setSupportedCurrencies; } });
var color_1 = require("./color");
Object.defineProperty(exports, "getCurrencyColor", { enumerable: true, get: function () { return color_1.getCurrencyColor; } });
var formatShort_1 = require("./formatShort");
Object.defineProperty(exports, "formatShort", { enumerable: true, get: function () { return formatShort_1.formatShort; } });
__exportStar(require("./helpers"), exports);
var sortByMarketcap_1 = require("./sortByMarketcap");
Object.defineProperty(exports, "sortCurrenciesByIds", { enumerable: true, get: function () { return sortByMarketcap_1.sortCurrenciesByIds; } });
Object.defineProperty(exports, "currenciesByMarketcap", { enumerable: true, get: function () { return sortByMarketcap_1.currenciesByMarketcap; } });
var support_1 = require("./support");
Object.defineProperty(exports, "listSupportedFiats", { enumerable: true, get: function () { return support_1.listSupportedFiats; } });
Object.defineProperty(exports, "OFAC_CURRENCIES", { enumerable: true, get: function () { return support_1.OFAC_CURRENCIES; } });
var valueFromUnit_1 = require("./valueFromUnit");
Object.defineProperty(exports, "valueFromUnit", { enumerable: true, get: function () { return valueFromUnit_1.valueFromUnit; } });
//# sourceMappingURL=index.js.map