mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 10:01:02 +00:00
1 line
3.5 KiB
Plaintext
1 line
3.5 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, function () {\n return api.derive.session.indexes().pipe((0, rxjs_1.switchMap)(function (_ref) {\n var activeEra = _ref.activeEra;\n return api.query.staking.erasRewardPoints(activeEra);\n }));\n });\n }\n});","lineCount":27,"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],[21,6,16,44],[21,13,16,50,"api"],[21,16,16,53],[21,17,16,54,"derive"],[21,23,16,60],[21,24,16,61,"session"],[21,31,16,68],[21,32,16,69,"indexes"],[21,39,16,76],[21,40,16,77],[21,41,16,78],[21,42,16,79,"pipe"],[21,46,16,83],[21,47,16,84],[21,48,16,85],[21,49,16,86],[21,51,16,88,"rxjs_1"],[21,57,16,94],[21,58,16,95,"switchMap"],[21,67,16,104],[21,69,16,106],[21,79,16,106,"_ref"],[21,83,16,106],[22,8,16,106],[22,12,16,109,"activeEra"],[22,21,16,118],[22,24,16,118,"_ref"],[22,28,16,118],[22,29,16,109,"activeEra"],[22,38,16,118],[23,8,16,118],[23,15,16,125,"api"],[23,18,16,128],[23,19,16,129,"query"],[23,24,16,134],[23,25,16,135,"staking"],[23,32,16,142],[23,33,16,143,"erasRewardPoints"],[23,49,16,159],[23,50,16,160,"activeEra"],[23,59,16,169],[23,60,16,170],[24,6,16,170],[24,8,16,171],[24,9,16,172],[25,4,16,172],[25,6,16,173],[26,2,17,0],[27,0,17,1],[27,3]],"functionMap":{"names":["<global>","currentPoints","<anonymous>"],"mappings":"AAA;ACc;4CCC,gID;CDC"},"hasCjsExports":true},"type":"js/module"}]} |