"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.names = void 0;
const util_1 = require("@polkadot/api-derive/util");
const operators_1 = require("rxjs/operators");
const util_2 = require("../../util");
const names = (instanceId, api) => 
// @ts-ignore
(0, util_1.memo)(instanceId, () => 
// @ts-ignore
api.query.eqAssets.assets().pipe(
// @ts-ignore
(0, operators_1.map)((raw) => raw.unwrap().map((asset) => (0, util_2.currencyFromU64)(asset.id)))));
exports.names = names;
