mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 14:31:02 +00:00
1 line
3.3 KiB
Plaintext
1 line
3.3 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 const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const 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)(({\n activeEra\n }) => api.query.staking.erasRewardPoints(activeEra))));\n }\n});","lineCount":24,"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,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],[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],[20,107,16,107],[21,6,16,109,"activeEra"],[22,4,16,119],[22,5,16,120],[22,10,16,125,"api"],[22,13,16,128],[22,14,16,129,"query"],[22,19,16,134],[22,20,16,135,"staking"],[22,27,16,142],[22,28,16,143,"erasRewardPoints"],[22,44,16,159],[22,45,16,160,"activeEra"],[22,54,16,169],[22,55,16,170],[22,56,16,171],[22,57,16,172],[22,58,16,173],[23,2,17,0],[24,0,17,1],[24,3]],"functionMap":{"names":["<global>","currentPoints","<anonymous>"],"mappings":"AAA;ACc;4CCC,gID;CDC"},"hasCjsExports":true},"type":"js/module"}]} |