mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 07:41:01 +00:00
1 line
5.7 KiB
Plaintext
1 line
5.7 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._stakerSlashes = _stakerSlashes;\n Object.defineProperty(exports, \"stakerSlashes\", {\n enumerable: true,\n get: function () {\n return stakerSlashes;\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 _stakerSlashes(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._erasSlashes(eras, withActive).pipe((0, _rxjs.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 const stakerSlashes = /*#__PURE__*/(0, _utilJs.erasHistoricApplyAccount)('_stakerSlashes');\n});","lineCount":48,"map":[[7,2,4,0,"exports"],[7,9,4,0],[7,10,4,0,"_stakerSlashes"],[7,24,4,0],[7,27,4,0,"_stakerSlashes"],[7,41,4,0],[8,2,30,0,"Object"],[8,8,30,0],[8,9,30,0,"defineProperty"],[8,23,30,0],[8,24,30,0,"exports"],[8,31,30,0],[9,4,30,0,"enumerable"],[9,14,30,0],[10,4,30,0,"get"],[10,7,30,0],[10,18,30,0,"get"],[10,19,30,0],[11,6,30,0],[11,13,30,0,"stakerSlashes"],[11,26,30,0],[12,4,30,0],[13,2,30,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,"_stakerSlashes"],[17,25,4,30,"_stakerSlashes"],[17,26,4,31,"instanceId"],[17,36,4,41],[17,38,4,43,"api"],[17,41,4,46],[17,43,4,48],[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,"_erasSlashes"],[20,44,7,46],[20,45,7,47,"eras"],[20,49,7,51],[20,51,7,53,"withActive"],[20,61,7,63],[20,62,7,64],[20,63,7,65,"pipe"],[20,67,7,69],[20,68,7,70],[20,72,7,70,"map"],[20,77,7,73],[20,78,7,73,"map"],[20,81,7,73],[20,83,7,75,"slashes"],[20,90,7,82],[20,94,7,87,"slashes"],[20,101,7,94],[20,102,7,95,"map"],[20,105,7,98],[20,106,7,99],[20,107,7,100],[21,8,7,102,"era"],[21,11,7,105],[22,8,7,107,"nominators"],[22,18,7,117],[23,8,7,119,"validators"],[24,6,7,130],[24,7,7,131],[24,13,7,137],[25,8,8,12,"era"],[25,11,8,15],[26,8,9,12,"total"],[26,13,9,17],[26,15,9,19,"nominators"],[26,25,9,29],[26,26,9,30,"stakerId"],[26,34,9,38],[26,35,9,39],[26,39,9,43,"validators"],[26,49,9,53],[26,50,9,54,"stakerId"],[26,58,9,62],[26,59,9,63],[26,63,9,67,"api"],[26,66,9,70],[26,67,9,71,"registry"],[26,75,9,79],[26,76,9,80,"createType"],[26,86,9,90],[26,87,9,91],[26,96,9,100],[27,6,10,8],[27,7,10,9],[27,8,10,10],[27,9,10,11],[27,10,10,12],[27,11,10,13],[28,4,11,4],[28,5,11,5],[28,6,11,6],[29,2,12,0],[30,2,13,0],[31,0,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,2,30,7],[47,8,30,13,"stakerSlashes"],[47,21,30,26],[47,24,30,29],[47,37,30,43],[47,41,30,43,"erasHistoricApplyAccount"],[47,48,30,67],[47,49,30,67,"erasHistoricApplyAccount"],[47,73,30,67],[47,75,30,68],[47,91,30,84],[47,92,30,85],[48,0,30,86],[48,3]],"functionMap":{"names":["<global>","_stakerSlashes","memo$argument_1","map$argument_0","slashes.map$argument_0"],"mappings":"AAA;OCG;4BCC;0ECE,yBC;UDG,CD;KDC;CDC"},"hasCjsExports":false},"type":"js/module"}]} |