mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-31 04:11:01 +00:00
1 line
6.2 KiB
Plaintext
1 line
6.2 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":165},"end":{"line":5,"column":30,"index":180}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":19,"index":201},"end":{"line":6,"column":46,"index":228}}],"key":"H94lp+EitftSFqDHaenrSs5zKB0=","exportNames":["*"],"imports":1}},{"name":"./util.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":18,"index":248},"end":{"line":7,"column":38,"index":268}}],"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.stakerSlashes = void 0;\n exports._stakerSlashes = _stakerSlashes;\n var rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n var index_js_1 = require(_dependencyMap[1], \"../util/index.js\");\n var util_js_1 = require(_dependencyMap[2], \"./util.js\");\n function _stakerSlashes(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, (accountId, eras, withActive) => {\n var stakerId = api.registry.createType('AccountId', accountId).toString();\n return api.derive.staking._erasSlashes(eras, withActive).pipe((0, rxjs_1.map)(slashes => slashes.map(_ref => {\n var era = _ref.era,\n nominators = _ref.nominators,\n validators = _ref.validators;\n return {\n era,\n total: nominators[stakerId] || validators[stakerId] || api.registry.createType('Balance')\n };\n })));\n });\n }\n /**\n * @name stakerSlashes\n * @param { Uint8Array | string } accountId The stakers AccountId.\n * @param { boolean } withActive Whether to include the active era.\n * @description Retrieve the historical slashes (penalties) for a given staker.\n * @example\n * ```javascript\n * const stakerSlashes = await api.derive.staking.stakerSlashes(\n * ALICE, //Alice accountId\n * true\n * );\n * console.log(\n * 'Staker Slashes:',\n * stakerSlashes.map(({ era, total }) => `Era ${era}: Slashed ${total.toString()}`)\n * );\n * ```\n */\n exports.stakerSlashes = (0, util_js_1.erasHistoricApplyAccount)('_stakerSlashes');\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,"stakerSlashes"],[7,23,3,21],[7,26,3,24],[7,31,3,29],[7,32,3,30],[8,2,4,0,"exports"],[8,9,4,7],[8,10,4,8,"_stakerSlashes"],[8,24,4,22],[8,27,4,25,"_stakerSlashes"],[8,41,4,39],[9,2,5,0],[9,6,5,6,"rxjs_1"],[9,12,5,12],[9,15,5,15,"require"],[9,22,5,22],[9,23,5,22,"_dependencyMap"],[9,37,5,22],[9,48,5,29],[9,49,5,30],[10,2,6,0],[10,6,6,6,"index_js_1"],[10,16,6,16],[10,19,6,19,"require"],[10,26,6,26],[10,27,6,26,"_dependencyMap"],[10,41,6,26],[10,64,6,45],[10,65,6,46],[11,2,7,0],[11,6,7,6,"util_js_1"],[11,15,7,15],[11,18,7,18,"require"],[11,25,7,25],[11,26,7,25,"_dependencyMap"],[11,40,7,25],[11,56,7,37],[11,57,7,38],[12,2,8,0],[12,11,8,9,"_stakerSlashes"],[12,25,8,23,"_stakerSlashes"],[12,26,8,24,"instanceId"],[12,36,8,34],[12,38,8,36,"api"],[12,41,8,39],[12,43,8,41],[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,10,10,14,"stakerId"],[14,18,10,22],[14,21,10,25,"api"],[14,24,10,28],[14,25,10,29,"registry"],[14,33,10,37],[14,34,10,38,"createType"],[14,44,10,48],[14,45,10,49],[14,56,10,60],[14,58,10,62,"accountId"],[14,67,10,71],[14,68,10,72],[14,69,10,73,"toString"],[14,77,10,81],[14,78,10,82],[14,79,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,"_erasSlashes"],[15,44,11,46],[15,45,11,47,"eras"],[15,49,11,51],[15,51,11,53,"withActive"],[15,61,11,63],[15,62,11,64],[15,63,11,65,"pipe"],[15,67,11,69],[15,68,11,70],[15,69,11,71],[15,70,11,72],[15,72,11,74,"rxjs_1"],[15,78,11,80],[15,79,11,81,"map"],[15,82,11,84],[15,84,11,87,"slashes"],[15,91,11,94],[15,95,11,99,"slashes"],[15,102,11,106],[15,103,11,107,"map"],[15,106,11,110],[15,107,11,111,"_ref"],[15,111,11,111],[16,8,11,111],[16,12,11,114,"era"],[16,15,11,117],[16,18,11,117,"_ref"],[16,22,11,117],[16,23,11,114,"era"],[16,26,11,117],[17,10,11,119,"nominators"],[17,20,11,129],[17,23,11,129,"_ref"],[17,27,11,129],[17,28,11,119,"nominators"],[17,38,11,129],[18,10,11,131,"validators"],[18,20,11,141],[18,23,11,141,"_ref"],[18,27,11,141],[18,28,11,131,"validators"],[18,38,11,141],[19,8,11,141],[19,15,11,149],[20,10,12,12,"era"],[20,13,12,15],[21,10,13,12,"total"],[21,15,13,17],[21,17,13,19,"nominators"],[21,27,13,29],[21,28,13,30,"stakerId"],[21,36,13,38],[21,37,13,39],[21,41,13,43,"validators"],[21,51,13,53],[21,52,13,54,"stakerId"],[21,60,13,62],[21,61,13,63],[21,65,13,67,"api"],[21,68,13,70],[21,69,13,71,"registry"],[21,77,13,79],[21,78,13,80,"createType"],[21,88,13,90],[21,89,13,91],[21,98,13,100],[22,8,14,8],[22,9,14,9],[23,6,14,9],[23,7,14,10],[23,8,14,11],[23,9,14,12],[23,10,14,13],[24,4,15,4],[24,5,15,5],[24,6,15,6],[25,2,16,0],[26,2,17,0],[27,0,18,0],[28,0,19,0],[29,0,20,0],[30,0,21,0],[31,0,22,0],[32,0,23,0],[33,0,24,0],[34,0,25,0],[35,0,26,0],[36,0,27,0],[37,0,28,0],[38,0,29,0],[39,0,30,0],[40,0,31,0],[41,0,32,0],[42,0,33,0],[43,2,34,0,"exports"],[43,9,34,7],[43,10,34,8,"stakerSlashes"],[43,23,34,21],[43,26,34,24],[43,27,34,25],[43,28,34,26],[43,30,34,28,"util_js_1"],[43,39,34,37],[43,40,34,38,"erasHistoricApplyAccount"],[43,64,34,62],[43,66,34,64],[43,82,34,80],[43,83,34,81],[44,0,34,82],[44,3]],"functionMap":{"names":["<global>","_stakerSlashes","<anonymous>","slashes.map$argument_0"],"mappings":"AAA;ACO;4CCC;+GCE;UDG;KDC;CDC"},"hasCjsExports":true},"type":"js/module"}]} |