import { memo } from "@polkadot/api-derive/util";
import { map } from "rxjs/operators";
import { currencyFromU64 } from "../../util";
export const names = (instanceId, api) => memo(instanceId, () => api.query.eqAssets.assets().pipe(map((raw) => raw.unwrap().map((asset) => currencyFromU64(asset.id[0].toNumber())))));
