Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/65/ecee1b98c74e725755cc0d7a660f2fa97b4d1e23b03b9c2e26868699f5e91faa410192
T
2025-11-07 20:14:32 +00:00

1 line
3.4 KiB
Plaintext

{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":131},"end":{"line":4,"column":30,"index":146}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":167},"end":{"line":5,"column":46,"index":194}}],"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.currentPoints = currentPoints;\n var rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n var index_js_1 = require(_dependencyMap[1], \"../util/index.js\");\n /**\n * @name currentPoints\n * @description Retrieve the staking overview, including elected and points earned.\n * @example\n * ```javascript\n * const currentPoints = await api.derive.staking.currentPoints();\n * console.log(currentPoints.toHuman());\n * ```\n */\n function currentPoints(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, () => api.derive.session.indexes().pipe((0, rxjs_1.switchMap)(_ref => {\n var activeEra = _ref.activeEra;\n return api.query.staking.erasRewardPoints(activeEra);\n })));\n }\n});","lineCount":25,"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,"currentPoints"],[7,23,3,21],[7,26,3,24,"currentPoints"],[7,39,3,37],[8,2,4,0],[8,6,4,6,"rxjs_1"],[8,12,4,12],[8,15,4,15,"require"],[8,22,4,22],[8,23,4,22,"_dependencyMap"],[8,37,4,22],[8,48,4,29],[8,49,4,30],[9,2,5,0],[9,6,5,6,"index_js_1"],[9,16,5,16],[9,19,5,19,"require"],[9,26,5,26],[9,27,5,26,"_dependencyMap"],[9,41,5,26],[9,64,5,45],[9,65,5,46],[10,2,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,2,15,0],[19,11,15,9,"currentPoints"],[19,24,15,22,"currentPoints"],[19,25,15,23,"instanceId"],[19,35,15,33],[19,37,15,35,"api"],[19,40,15,38],[19,42,15,40],[20,4,16,4],[20,11,16,11],[20,12,16,12],[20,13,16,13],[20,15,16,15,"index_js_1"],[20,25,16,25],[20,26,16,26,"memo"],[20,30,16,30],[20,32,16,32,"instanceId"],[20,42,16,42],[20,44,16,44],[20,50,16,50,"api"],[20,53,16,53],[20,54,16,54,"derive"],[20,60,16,60],[20,61,16,61,"session"],[20,68,16,68],[20,69,16,69,"indexes"],[20,76,16,76],[20,77,16,77],[20,78,16,78],[20,79,16,79,"pipe"],[20,83,16,83],[20,84,16,84],[20,85,16,85],[20,86,16,86],[20,88,16,88,"rxjs_1"],[20,94,16,94],[20,95,16,95,"switchMap"],[20,104,16,104],[20,106,16,106,"_ref"],[20,110,16,106],[21,6,16,106],[21,10,16,109,"activeEra"],[21,19,16,118],[21,22,16,118,"_ref"],[21,26,16,118],[21,27,16,109,"activeEra"],[21,36,16,118],[22,6,16,118],[22,13,16,125,"api"],[22,16,16,128],[22,17,16,129,"query"],[22,22,16,134],[22,23,16,135,"staking"],[22,30,16,142],[22,31,16,143,"erasRewardPoints"],[22,47,16,159],[22,48,16,160,"activeEra"],[22,57,16,169],[22,58,16,170],[23,4,16,170],[23,6,16,171],[23,7,16,172],[23,8,16,173],[24,2,17,0],[25,0,17,1],[25,3]],"functionMap":{"names":["<global>","currentPoints","<anonymous>"],"mappings":"AAA;ACc;4CCC,gID;CDC"},"hasCjsExports":true},"type":"js/module"}]}