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