mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 05:21:02 +00:00
1 line
5.6 KiB
Plaintext
1 line
5.6 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}}],"key":"PnOMrhZAPWoeW3ygrvUJ7ff768Y=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":28},"end":{"line":2,"column":40,"index":68}}],"key":"GRJlO1cmIj14nBxcasNpiq30og4=","exportNames":["*"],"imports":1}},{"name":"./util.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":69},"end":{"line":3,"column":53,"index":122}}],"key":"+UpHPazG/Yk8JnTjB6d2Eo+vUl4=","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 = _stakerPoints;\n Object.defineProperty(exports, \"stakerPoints\", {\n enumerable: true,\n get: function () {\n return stakerPoints;\n }\n });\n var _rxjs = require(_dependencyMap[0], \"rxjs\");\n var _utilIndexJs = require(_dependencyMap[1], \"../util/index.js\");\n var _utilJs = require(_dependencyMap[2], \"./util.js\");\n function _stakerPoints(instanceId, api) {\n return (0, _utilIndexJs.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.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 const stakerPoints = /*#__PURE__*/(0, _utilJs.erasHistoricApplyAccount)('_stakerPoints');\n});","lineCount":49,"map":[[7,2,4,0,"exports"],[7,9,4,0],[7,10,4,0,"_stakerPoints"],[7,23,4,0],[7,26,4,0,"_stakerPoints"],[7,39,4,0],[8,2,31,0,"Object"],[8,8,31,0],[8,9,31,0,"defineProperty"],[8,23,31,0],[8,24,31,0,"exports"],[8,31,31,0],[9,4,31,0,"enumerable"],[9,14,31,0],[10,4,31,0,"get"],[10,7,31,0],[10,18,31,0,"get"],[10,19,31,0],[11,6,31,0],[11,13,31,0,"stakerPoints"],[11,25,31,0],[12,4,31,0],[13,2,31,0],[14,2,1,0],[14,6,1,0,"_rxjs"],[14,11,1,0],[14,14,1,0,"require"],[14,21,1,0],[14,22,1,0,"_dependencyMap"],[14,36,1,0],[15,2,2,0],[15,6,2,0,"_utilIndexJs"],[15,18,2,0],[15,21,2,0,"require"],[15,28,2,0],[15,29,2,0,"_dependencyMap"],[15,43,2,0],[16,2,3,0],[16,6,3,0,"_utilJs"],[16,13,3,0],[16,16,3,0,"require"],[16,23,3,0],[16,24,3,0,"_dependencyMap"],[16,38,3,0],[17,2,4,7],[17,11,4,16,"_stakerPoints"],[17,24,4,29,"_stakerPoints"],[17,25,4,30,"instanceId"],[17,35,4,40],[17,37,4,42,"api"],[17,40,4,45],[17,42,4,47],[18,4,5,4],[18,11,5,11],[18,15,5,11,"memo"],[18,27,5,15],[18,28,5,15,"memo"],[18,32,5,15],[18,34,5,16,"instanceId"],[18,44,5,26],[18,46,5,28],[18,47,5,29,"accountId"],[18,56,5,38],[18,58,5,40,"eras"],[18,62,5,44],[18,64,5,46,"withActive"],[18,74,5,56],[18,79,5,61],[19,6,6,8],[19,12,6,14,"stakerId"],[19,20,6,22],[19,23,6,25,"api"],[19,26,6,28],[19,27,6,29,"registry"],[19,35,6,37],[19,36,6,38,"createType"],[19,46,6,48],[19,47,6,49],[19,58,6,60],[19,60,6,62,"accountId"],[19,69,6,71],[19,70,6,72],[19,71,6,73,"toString"],[19,79,6,81],[19,80,6,82],[19,81,6,83],[20,6,7,8],[20,13,7,15,"api"],[20,16,7,18],[20,17,7,19,"derive"],[20,23,7,25],[20,24,7,26,"staking"],[20,31,7,33],[20,32,7,34,"_erasPoints"],[20,43,7,45],[20,44,7,46,"eras"],[20,48,7,50],[20,50,7,52,"withActive"],[20,60,7,62],[20,61,7,63],[20,62,7,64,"pipe"],[20,66,7,68],[20,67,7,69],[20,71,7,69,"map"],[20,76,7,72],[20,77,7,72,"map"],[20,80,7,72],[20,82,7,74,"points"],[20,88,7,80],[20,92,7,85,"points"],[20,98,7,91],[20,99,7,92,"map"],[20,102,7,95],[20,103,7,96],[20,104,7,97],[21,8,7,99,"era"],[21,11,7,102],[22,8,7,104,"eraPoints"],[22,17,7,113],[23,8,7,115,"validators"],[24,6,7,126],[24,7,7,127],[24,13,7,133],[25,8,8,12,"era"],[25,11,8,15],[26,8,9,12,"eraPoints"],[26,17,9,21],[27,8,10,12,"points"],[27,14,10,18],[27,16,10,20,"validators"],[27,26,10,30],[27,27,10,31,"stakerId"],[27,35,10,39],[27,36,10,40],[27,40,10,44,"api"],[27,43,10,47],[27,44,10,48,"registry"],[27,52,10,56],[27,53,10,57,"createType"],[27,63,10,67],[27,64,10,68],[27,77,10,81],[28,6,11,8],[28,7,11,9],[28,8,11,10],[28,9,11,11],[28,10,11,12],[28,11,11,13],[29,4,12,4],[29,5,12,5],[29,6,12,6],[30,2,13,0],[31,2,14,0],[32,0,15,0],[33,0,16,0],[34,0,17,0],[35,0,18,0],[36,0,19,0],[37,0,20,0],[38,0,21,0],[39,0,22,0],[40,0,23,0],[41,0,24,0],[42,0,25,0],[43,0,26,0],[44,0,27,0],[45,0,28,0],[46,0,29,0],[47,0,30,0],[48,2,31,7],[48,8,31,13,"stakerPoints"],[48,20,31,25],[48,23,31,28],[48,36,31,42],[48,40,31,42,"erasHistoricApplyAccount"],[48,47,31,66],[48,48,31,66,"erasHistoricApplyAccount"],[48,72,31,66],[48,74,31,67],[48,89,31,82],[48,90,31,83],[49,0,31,84],[49,3]],"functionMap":{"names":["<global>","_stakerPoints","memo$argument_1","map$argument_0","points.map$argument_0"],"mappings":"AAA;OCG;4BCC;yECE,uBC;UDI,CD;KDC;CDC"},"hasCjsExports":false},"type":"js/module"}]} |