mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 15:41:01 +00:00
1 line
7.0 KiB
Plaintext
1 line
7.0 KiB
Plaintext
{"dependencies":[{"name":"@babel/runtime/helpers/slicedToArray","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"5y7e5+zC7teYEEC6niD9f5zII1M=","exportNames":["*"],"imports":1}},{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":119},"end":{"line":4,"column":30,"index":134}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":155},"end":{"line":5,"column":46,"index":182}}],"key":"H94lp+EitftSFqDHaenrSs5zKB0=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n var _slicedToArray = require(_dependencyMap[0], \"@babel/runtime/helpers/slicedToArray\").default;\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.indexes = indexes;\n var rxjs_1 = require(_dependencyMap[1], \"rxjs\");\n var index_js_1 = require(_dependencyMap[2], \"../util/index.js\");\n var indicesCache = null;\n function queryAccounts(api) {\n return api.query.indices.accounts.entries().pipe((0, rxjs_1.map)(function (entries) {\n return entries.reduce(function (indexes, _ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n key = _ref2[0],\n idOpt = _ref2[1];\n if (idOpt.isSome) {\n indexes[idOpt.unwrap()[0].toString()] = api.registry.createType('AccountIndex', key.args[0]);\n }\n return indexes;\n }, {});\n }));\n }\n /**\n * @name indexes\n * @returns Returns all the indexes on the system.\n * @description This is an unwieldly query since it loops through\n * all of the enumsets and returns all of the values found. This could be up to 32k depending\n * on the number of active accounts in the system.\n * @example\n * ```javascript\n * api.derive.accounts.indexes((indexes) => {\n * console.log('All existing AccountIndexes', indexes);\n * });\n * ```\n */\n function indexes(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, function () {\n return indicesCache ? (0, rxjs_1.of)(indicesCache) : (api.query.indices ? queryAccounts(api).pipe((0, rxjs_1.startWith)({})) : (0, rxjs_1.of)({})).pipe((0, rxjs_1.map)(function (indices) {\n indicesCache = indices;\n return indices;\n }));\n });\n }\n});","lineCount":46,"map":[[2,2,1,0],[2,14,1,12],[4,2,1,13],[4,6,1,13,"_slicedToArray"],[4,20,1,13],[4,23,1,13,"require"],[4,30,1,13],[4,31,1,13,"_dependencyMap"],[4,45,1,13],[4,90,1,13,"default"],[4,97,1,13],[5,2,2,0,"Object"],[5,8,2,6],[5,9,2,7,"defineProperty"],[5,23,2,21],[5,24,2,22,"exports"],[5,31,2,29],[5,33,2,31],[5,45,2,43],[5,47,2,45],[6,4,2,47,"value"],[6,9,2,52],[6,11,2,54],[7,2,2,59],[7,3,2,60],[7,4,2,61],[8,2,3,0,"exports"],[8,9,3,7],[8,10,3,8,"indexes"],[8,17,3,15],[8,20,3,18,"indexes"],[8,27,3,25],[9,2,4,0],[9,6,4,6,"rxjs_1"],[9,12,4,12],[9,15,4,15,"require"],[9,22,4,22],[9,23,4,22,"_dependencyMap"],[9,37,4,22],[9,48,4,29],[9,49,4,30],[10,2,5,0],[10,6,5,6,"index_js_1"],[10,16,5,16],[10,19,5,19,"require"],[10,26,5,26],[10,27,5,26,"_dependencyMap"],[10,41,5,26],[10,64,5,45],[10,65,5,46],[11,2,6,0],[11,6,6,4,"indicesCache"],[11,18,6,16],[11,21,6,19],[11,25,6,23],[12,2,7,0],[12,11,7,9,"queryAccounts"],[12,24,7,22,"queryAccounts"],[12,25,7,23,"api"],[12,28,7,26],[12,30,7,28],[13,4,8,4],[13,11,8,11,"api"],[13,14,8,14],[13,15,8,15,"query"],[13,20,8,20],[13,21,8,21,"indices"],[13,28,8,28],[13,29,8,29,"accounts"],[13,37,8,37],[13,38,8,38,"entries"],[13,45,8,45],[13,46,8,46],[13,47,8,47],[13,48,8,48,"pipe"],[13,52,8,52],[13,53,8,53],[13,54,8,54],[13,55,8,55],[13,57,8,57,"rxjs_1"],[13,63,8,63],[13,64,8,64,"map"],[13,67,8,67],[13,69,8,69],[13,79,8,70,"entries"],[13,86,8,77],[14,6,8,77],[14,13,8,82,"entries"],[14,20,8,89],[14,21,8,90,"reduce"],[14,27,8,96],[14,28,8,97],[14,38,8,98,"indexes"],[14,45,8,105],[14,47,8,105,"_ref"],[14,51,8,105],[14,53,8,124],[15,8,8,124],[15,12,8,124,"_ref2"],[15,17,8,124],[15,20,8,124,"_slicedToArray"],[15,34,8,124],[15,35,8,124,"_ref"],[15,39,8,124],[16,10,8,108,"key"],[16,13,8,111],[16,16,8,111,"_ref2"],[16,21,8,111],[17,10,8,113,"idOpt"],[17,15,8,118],[17,18,8,118,"_ref2"],[17,23,8,118],[18,8,9,8],[18,12,9,12,"idOpt"],[18,17,9,17],[18,18,9,18,"isSome"],[18,24,9,24],[18,26,9,26],[19,10,10,12,"indexes"],[19,17,10,19],[19,18,10,20,"idOpt"],[19,23,10,25],[19,24,10,26,"unwrap"],[19,30,10,32],[19,31,10,33],[19,32,10,34],[19,33,10,35],[19,34,10,36],[19,35,10,37],[19,36,10,38,"toString"],[19,44,10,46],[19,45,10,47],[19,46,10,48],[19,47,10,49],[19,50,10,52,"api"],[19,53,10,55],[19,54,10,56,"registry"],[19,62,10,64],[19,63,10,65,"createType"],[19,73,10,75],[19,74,10,76],[19,88,10,90],[19,90,10,92,"key"],[19,93,10,95],[19,94,10,96,"args"],[19,98,10,100],[19,99,10,101],[19,100,10,102],[19,101,10,103],[19,102,10,104],[20,8,11,8],[21,8,12,8],[21,15,12,15,"indexes"],[21,22,12,22],[22,6,13,4],[22,7,13,5],[22,9,13,7],[22,10,13,8],[22,11,13,9],[22,12,13,10],[23,4,13,10],[23,6,13,11],[23,7,13,12],[24,2,14,0],[25,2,15,0],[26,0,16,0],[27,0,17,0],[28,0,18,0],[29,0,19,0],[30,0,20,0],[31,0,21,0],[32,0,22,0],[33,0,23,0],[34,0,24,0],[35,0,25,0],[36,0,26,0],[37,0,27,0],[38,2,28,0],[38,11,28,9,"indexes"],[38,18,28,16,"indexes"],[38,19,28,17,"instanceId"],[38,29,28,27],[38,31,28,29,"api"],[38,34,28,32],[38,36,28,34],[39,4,29,4],[39,11,29,11],[39,12,29,12],[39,13,29,13],[39,15,29,15,"index_js_1"],[39,25,29,25],[39,26,29,26,"memo"],[39,30,29,30],[39,32,29,32,"instanceId"],[39,42,29,42],[39,44,29,44],[40,6,29,44],[40,13,29,50,"indicesCache"],[40,25,29,62],[40,28,30,10],[40,29,30,11],[40,30,30,12],[40,32,30,14,"rxjs_1"],[40,38,30,20],[40,39,30,21,"of"],[40,41,30,23],[40,43,30,25,"indicesCache"],[40,55,30,37],[40,56,30,38],[40,59,31,10],[40,60,31,11,"api"],[40,63,31,14],[40,64,31,15,"query"],[40,69,31,20],[40,70,31,21,"indices"],[40,77,31,28],[40,80,32,14,"queryAccounts"],[40,93,32,27],[40,94,32,28,"api"],[40,97,32,31],[40,98,32,32],[40,99,32,33,"pipe"],[40,103,32,37],[40,104,32,38],[40,105,32,39],[40,106,32,40],[40,108,32,42,"rxjs_1"],[40,114,32,48],[40,115,32,49,"startWith"],[40,124,32,58],[40,126,32,60],[40,127,32,61],[40,128,32,62],[40,129,32,63],[40,130,32,64],[40,133,33,14],[40,134,33,15],[40,135,33,16],[40,137,33,18,"rxjs_1"],[40,143,33,24],[40,144,33,25,"of"],[40,146,33,27],[40,148,33,29],[40,149,33,30],[40,150,33,31],[40,151,33,32],[40,153,33,34,"pipe"],[40,157,33,38],[40,158,33,39],[40,159,33,40],[40,160,33,41],[40,162,33,43,"rxjs_1"],[40,168,33,49],[40,169,33,50,"map"],[40,172,33,53],[40,174,33,55],[40,184,33,56,"indices"],[40,191,33,63],[40,193,33,68],[41,8,34,12,"indicesCache"],[41,20,34,24],[41,23,34,27,"indices"],[41,30,34,34],[42,8,35,12],[42,15,35,19,"indices"],[42,22,35,26],[43,6,36,8],[43,7,36,9],[43,8,36,10],[43,9,36,11],[44,4,36,11],[44,6,36,12],[45,2,37,0],[46,0,37,1],[46,3]],"functionMap":{"names":["<global>","queryAccounts","<anonymous>","entries.reduce$argument_0","indexes"],"mappings":"AAA;ACM;qECC,4BC;KDK,KD;CDC;AIc;4CFC;WEO;CJC"},"hasCjsExports":true},"type":"js/module"}]} |