mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +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":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 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 _stakerSlashes(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._erasSlashes(eras, withActive).pipe((0, rxjs_1.map)(slashes => slashes.map(({\n era,\n nominators,\n validators\n }) => ({\n era,\n total: nominators[stakerId] || validators[stakerId] || api.registry.createType('Balance')\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":43,"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,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,"_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,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,"_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],[15,108,11,112],[16,8,11,114,"era"],[16,11,11,117],[17,8,11,119,"nominators"],[17,18,11,129],[18,8,11,131,"validators"],[19,6,11,142],[19,7,11,143],[19,13,11,149],[20,8,12,12,"era"],[20,11,12,15],[21,8,13,12,"total"],[21,13,13,17],[21,15,13,19,"nominators"],[21,25,13,29],[21,26,13,30,"stakerId"],[21,34,13,38],[21,35,13,39],[21,39,13,43,"validators"],[21,49,13,53],[21,50,13,54,"stakerId"],[21,58,13,62],[21,59,13,63],[21,63,13,67,"api"],[21,66,13,70],[21,67,13,71,"registry"],[21,75,13,79],[21,76,13,80,"createType"],[21,86,13,90],[21,87,13,91],[21,96,13,100],[22,6,14,8],[22,7,14,9],[22,8,14,10],[22,9,14,11],[22,10,14,12],[22,11,14,13],[23,4,15,4],[23,5,15,5],[23,6,15,6],[24,2,16,0],[25,2,17,0],[26,0,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,2,34,0,"exports"],[42,9,34,7],[42,10,34,8,"stakerSlashes"],[42,23,34,21],[42,26,34,24],[42,27,34,25],[42,28,34,26],[42,30,34,28,"util_js_1"],[42,39,34,37],[42,40,34,38,"erasHistoricApplyAccount"],[42,64,34,62],[42,66,34,64],[42,82,34,80],[42,83,34,81],[43,0,34,82],[43,3]],"functionMap":{"names":["<global>","_stakerSlashes","<anonymous>","slashes.map$argument_0"],"mappings":"AAA;ACO;4CCC;+GCE;UDG;KDC;CDC"},"hasCjsExports":true},"type":"js/module"}]} |