mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 10:01:02 +00:00
1 line
6.1 KiB
Plaintext
1 line
6.1 KiB
Plaintext
{"dependencies":[{"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 Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.indexes = indexes;\n const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const index_js_1 = require(_dependencyMap[1], \"../util/index.js\");\n let indicesCache = null;\n function queryAccounts(api) {\n return api.query.indices.accounts.entries().pipe((0, rxjs_1.map)(entries => entries.reduce((indexes, [key, idOpt]) => {\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 * @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, () => 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)(indices => {\n indicesCache = indices;\n return indices;\n })));\n }\n});","lineCount":38,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"indexes"],[7,17,3,15],[7,20,3,18,"indexes"],[7,27,3,25],[8,2,4,0],[8,8,4,6,"rxjs_1"],[8,14,4,12],[8,17,4,15,"require"],[8,24,4,22],[8,25,4,22,"_dependencyMap"],[8,39,4,22],[8,50,4,29],[8,51,4,30],[9,2,5,0],[9,8,5,6,"index_js_1"],[9,18,5,16],[9,21,5,19,"require"],[9,28,5,26],[9,29,5,26,"_dependencyMap"],[9,43,5,26],[9,66,5,45],[9,67,5,46],[10,2,6,0],[10,6,6,4,"indicesCache"],[10,18,6,16],[10,21,6,19],[10,25,6,23],[11,2,7,0],[11,11,7,9,"queryAccounts"],[11,24,7,22,"queryAccounts"],[11,25,7,23,"api"],[11,28,7,26],[11,30,7,28],[12,4,8,4],[12,11,8,11,"api"],[12,14,8,14],[12,15,8,15,"query"],[12,20,8,20],[12,21,8,21,"indices"],[12,28,8,28],[12,29,8,29,"accounts"],[12,37,8,37],[12,38,8,38,"entries"],[12,45,8,45],[12,46,8,46],[12,47,8,47],[12,48,8,48,"pipe"],[12,52,8,52],[12,53,8,53],[12,54,8,54],[12,55,8,55],[12,57,8,57,"rxjs_1"],[12,63,8,63],[12,64,8,64,"map"],[12,67,8,67],[12,69,8,70,"entries"],[12,76,8,77],[12,80,8,82,"entries"],[12,87,8,89],[12,88,8,90,"reduce"],[12,94,8,96],[12,95,8,97],[12,96,8,98,"indexes"],[12,103,8,105],[12,105,8,107],[12,106,8,108,"key"],[12,109,8,111],[12,111,8,113,"idOpt"],[12,116,8,118],[12,117,8,119],[12,122,8,124],[13,6,9,8],[13,10,9,12,"idOpt"],[13,15,9,17],[13,16,9,18,"isSome"],[13,22,9,24],[13,24,9,26],[14,8,10,12,"indexes"],[14,15,10,19],[14,16,10,20,"idOpt"],[14,21,10,25],[14,22,10,26,"unwrap"],[14,28,10,32],[14,29,10,33],[14,30,10,34],[14,31,10,35],[14,32,10,36],[14,33,10,37],[14,34,10,38,"toString"],[14,42,10,46],[14,43,10,47],[14,44,10,48],[14,45,10,49],[14,48,10,52,"api"],[14,51,10,55],[14,52,10,56,"registry"],[14,60,10,64],[14,61,10,65,"createType"],[14,71,10,75],[14,72,10,76],[14,86,10,90],[14,88,10,92,"key"],[14,91,10,95],[14,92,10,96,"args"],[14,96,10,100],[14,97,10,101],[14,98,10,102],[14,99,10,103],[14,100,10,104],[15,6,11,8],[16,6,12,8],[16,13,12,15,"indexes"],[16,20,12,22],[17,4,13,4],[17,5,13,5],[17,7,13,7],[17,8,13,8],[17,9,13,9],[17,10,13,10],[17,11,13,11],[17,12,13,12],[18,2,14,0],[19,2,15,0],[20,0,16,0],[21,0,17,0],[22,0,18,0],[23,0,19,0],[24,0,20,0],[25,0,21,0],[26,0,22,0],[27,0,23,0],[28,0,24,0],[29,0,25,0],[30,0,26,0],[31,0,27,0],[32,2,28,0],[32,11,28,9,"indexes"],[32,18,28,16,"indexes"],[32,19,28,17,"instanceId"],[32,29,28,27],[32,31,28,29,"api"],[32,34,28,32],[32,36,28,34],[33,4,29,4],[33,11,29,11],[33,12,29,12],[33,13,29,13],[33,15,29,15,"index_js_1"],[33,25,29,25],[33,26,29,26,"memo"],[33,30,29,30],[33,32,29,32,"instanceId"],[33,42,29,42],[33,44,29,44],[33,50,29,50,"indicesCache"],[33,62,29,62],[33,65,30,10],[33,66,30,11],[33,67,30,12],[33,69,30,14,"rxjs_1"],[33,75,30,20],[33,76,30,21,"of"],[33,78,30,23],[33,80,30,25,"indicesCache"],[33,92,30,37],[33,93,30,38],[33,96,31,10],[33,97,31,11,"api"],[33,100,31,14],[33,101,31,15,"query"],[33,106,31,20],[33,107,31,21,"indices"],[33,114,31,28],[33,117,32,14,"queryAccounts"],[33,130,32,27],[33,131,32,28,"api"],[33,134,32,31],[33,135,32,32],[33,136,32,33,"pipe"],[33,140,32,37],[33,141,32,38],[33,142,32,39],[33,143,32,40],[33,145,32,42,"rxjs_1"],[33,151,32,48],[33,152,32,49,"startWith"],[33,161,32,58],[33,163,32,60],[33,164,32,61],[33,165,32,62],[33,166,32,63],[33,167,32,64],[33,170,33,14],[33,171,33,15],[33,172,33,16],[33,174,33,18,"rxjs_1"],[33,180,33,24],[33,181,33,25,"of"],[33,183,33,27],[33,185,33,29],[33,186,33,30],[33,187,33,31],[33,188,33,32],[33,190,33,34,"pipe"],[33,194,33,38],[33,195,33,39],[33,196,33,40],[33,197,33,41],[33,199,33,43,"rxjs_1"],[33,205,33,49],[33,206,33,50,"map"],[33,209,33,53],[33,211,33,56,"indices"],[33,218,33,63],[33,222,33,68],[34,6,34,12,"indicesCache"],[34,18,34,24],[34,21,34,27,"indices"],[34,28,34,34],[35,6,35,12],[35,13,35,19,"indices"],[35,20,35,26],[36,4,36,8],[36,5,36,9],[36,6,36,10],[36,7,36,11],[36,8,36,12],[37,2,37,0],[38,0,37,1],[38,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"}]} |