mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 16:51:02 +00:00
1 line
5.8 KiB
Plaintext
1 line
5.8 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":162},"end":{"line":5,"column":30,"index":177}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":19,"index":198},"end":{"line":6,"column":46,"index":225}}],"key":"H94lp+EitftSFqDHaenrSs5zKB0=","exportNames":["*"],"imports":1}},{"name":"./util.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":18,"index":245},"end":{"line":7,"column":38,"index":265}}],"key":"RHtkf1pyimtRfZWAvWBZ833kE8E=","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.stakerPoints = void 0;\n exports._stakerPoints = _stakerPoints;\n const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const index_js_1 = require(_dependencyMap[1], \"../util/index.js\");\n const util_js_1 = require(_dependencyMap[2], \"./util.js\");\n function _stakerPoints(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, (accountId, eras, withActive) => {\n const stakerId = api.registry.createType('AccountId', accountId).toString();\n return api.derive.staking._erasPoints(eras, withActive).pipe((0, rxjs_1.map)(points => points.map(({\n era,\n eraPoints,\n validators\n }) => ({\n era,\n eraPoints,\n points: validators[stakerId] || api.registry.createType('RewardPoint')\n }))));\n });\n }\n /**\n * @name stakerPoints\n * @param { Uint8Array | string } accountId The stakers AccountId.\n * @param { boolean } withActive Whether to include the active era.\n * @description Retrieves the era reward points earned by a given staker across all eras.\n * @example\n * ```javascript\n * const points = await api.derive.staking.stakerPoints(\n * ALICE, //Alice accountId\n * false\n * );\n * console.log(\n * 'Validator Era Points:',\n * points.map(({ era, points }) => `Era ${era}: ${points.toString()} points`)\n * );\n * ```\n */\n exports.stakerPoints = (0, util_js_1.erasHistoricApplyAccount)('_stakerPoints');\n});","lineCount":44,"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,"stakerPoints"],[7,22,3,20],[7,25,3,23],[7,30,3,28],[7,31,3,29],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"_stakerPoints"],[8,23,4,21],[8,26,4,24,"_stakerPoints"],[8,39,4,37],[9,2,5,0],[9,8,5,6,"rxjs_1"],[9,14,5,12],[9,17,5,15,"require"],[9,24,5,22],[9,25,5,22,"_dependencyMap"],[9,39,5,22],[9,50,5,29],[9,51,5,30],[10,2,6,0],[10,8,6,6,"index_js_1"],[10,18,6,16],[10,21,6,19,"require"],[10,28,6,26],[10,29,6,26,"_dependencyMap"],[10,43,6,26],[10,66,6,45],[10,67,6,46],[11,2,7,0],[11,8,7,6,"util_js_1"],[11,17,7,15],[11,20,7,18,"require"],[11,27,7,25],[11,28,7,25,"_dependencyMap"],[11,42,7,25],[11,58,7,37],[11,59,7,38],[12,2,8,0],[12,11,8,9,"_stakerPoints"],[12,24,8,22,"_stakerPoints"],[12,25,8,23,"instanceId"],[12,35,8,33],[12,37,8,35,"api"],[12,40,8,38],[12,42,8,40],[13,4,9,4],[13,11,9,11],[13,12,9,12],[13,13,9,13],[13,15,9,15,"index_js_1"],[13,25,9,25],[13,26,9,26,"memo"],[13,30,9,30],[13,32,9,32,"instanceId"],[13,42,9,42],[13,44,9,44],[13,45,9,45,"accountId"],[13,54,9,54],[13,56,9,56,"eras"],[13,60,9,60],[13,62,9,62,"withActive"],[13,72,9,72],[13,77,9,77],[14,6,10,8],[14,12,10,14,"stakerId"],[14,20,10,22],[14,23,10,25,"api"],[14,26,10,28],[14,27,10,29,"registry"],[14,35,10,37],[14,36,10,38,"createType"],[14,46,10,48],[14,47,10,49],[14,58,10,60],[14,60,10,62,"accountId"],[14,69,10,71],[14,70,10,72],[14,71,10,73,"toString"],[14,79,10,81],[14,80,10,82],[14,81,10,83],[15,6,11,8],[15,13,11,15,"api"],[15,16,11,18],[15,17,11,19,"derive"],[15,23,11,25],[15,24,11,26,"staking"],[15,31,11,33],[15,32,11,34,"_erasPoints"],[15,43,11,45],[15,44,11,46,"eras"],[15,48,11,50],[15,50,11,52,"withActive"],[15,60,11,62],[15,61,11,63],[15,62,11,64,"pipe"],[15,66,11,68],[15,67,11,69],[15,68,11,70],[15,69,11,71],[15,71,11,73,"rxjs_1"],[15,77,11,79],[15,78,11,80,"map"],[15,81,11,83],[15,83,11,86,"points"],[15,89,11,92],[15,93,11,97,"points"],[15,99,11,103],[15,100,11,104,"map"],[15,103,11,107],[15,104,11,108],[15,105,11,109],[16,8,11,111,"era"],[16,11,11,114],[17,8,11,116,"eraPoints"],[17,17,11,125],[18,8,11,127,"validators"],[19,6,11,138],[19,7,11,139],[19,13,11,145],[20,8,12,12,"era"],[20,11,12,15],[21,8,13,12,"eraPoints"],[21,17,13,21],[22,8,14,12,"points"],[22,14,14,18],[22,16,14,20,"validators"],[22,26,14,30],[22,27,14,31,"stakerId"],[22,35,14,39],[22,36,14,40],[22,40,14,44,"api"],[22,43,14,47],[22,44,14,48,"registry"],[22,52,14,56],[22,53,14,57,"createType"],[22,63,14,67],[22,64,14,68],[22,77,14,81],[23,6,15,8],[23,7,15,9],[23,8,15,10],[23,9,15,11],[23,10,15,12],[23,11,15,13],[24,4,16,4],[24,5,16,5],[24,6,16,6],[25,2,17,0],[26,2,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,0,28,0],[37,0,29,0],[38,0,30,0],[39,0,31,0],[40,0,32,0],[41,0,33,0],[42,0,34,0],[43,2,35,0,"exports"],[43,9,35,7],[43,10,35,8,"stakerPoints"],[43,22,35,20],[43,25,35,23],[43,26,35,24],[43,27,35,25],[43,29,35,27,"util_js_1"],[43,38,35,36],[43,39,35,37,"erasHistoricApplyAccount"],[43,63,35,61],[43,65,35,63],[43,80,35,78],[43,81,35,79],[44,0,35,80],[44,3]],"functionMap":{"names":["<global>","_stakerPoints","<anonymous>","points.map$argument_0"],"mappings":"AAA;ACO;4CCC;4GCE;UDI;KDC;CDC"},"hasCjsExports":true},"type":"js/module"}]} |