mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 19:11:02 +00:00
1 line
8.2 KiB
Plaintext
1 line
8.2 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":46,"index":46}}],"key":"PnOMrhZAPWoeW3ygrvUJ7ff768Y=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":47},"end":{"line":2,"column":51,"index":98}}],"key":"GRJlO1cmIj14nBxcasNpiq30og4=","exportNames":["*"],"imports":1}},{"name":"./util.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":99},"end":{"line":3,"column":53,"index":152}}],"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._ownSlashes = _ownSlashes;\n Object.defineProperty(exports, \"ownSlash\", {\n enumerable: true,\n get: function () {\n return ownSlash;\n }\n });\n Object.defineProperty(exports, \"ownSlashes\", {\n enumerable: true,\n get: function () {\n return ownSlashes;\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 _ownSlashes(instanceId, api) {\n return (0, _utilIndexJs.memo)(instanceId, (accountId, eras, _withActive) => eras.length ? (0, _rxjs.combineLatest)([(0, _rxjs.combineLatest)(eras.map(e => api.query.staking.validatorSlashInEra(e, accountId))), (0, _rxjs.combineLatest)(eras.map(e => api.query.staking.nominatorSlashInEra(e, accountId)))]).pipe((0, _rxjs.map)(([vals, noms]) => eras.map((era, index) => ({\n era,\n total: vals[index].isSome ? vals[index].unwrap()[1] : noms[index].unwrapOrDefault()\n })))) : (0, _rxjs.of)([]));\n }\n /**\n * @name ownSlash\n * @description Retrieves the slashes applied to a specific account in a given era.\n * @param { Uint8Array | string } accountId The validator stash account.\n * @param {EraIndex} era The staking era to query.\n * @example\n * ```javascript\n * const era = api.createType(\"EraIndex\", 1000);\n * const slashedAmount = await api.derive.staking.ownSlash(\n * ALICE,\n * era\n * );\n * console.log(`Era: ${slashedAmount.era}, total ${slashedAmount.total}`);\n * ```\n */\n const ownSlash = /*#__PURE__*/(0, _utilIndexJs.firstMemo)((api, accountId, era) => api.derive.staking._ownSlashes(accountId, [era], true));\n /**\n * @name ownSlashes\n * @description Retrieves the slashes for a specific account across all historic eras.\n * @param { Uint8Array | string } accountId The validator stash account.\n * @param { boolean } withActive Whether to include the active era.\n * @example\n * ```javascript\n * const slashes = await api.derive.staking.ownSlashes(\n * ALICE,\n * true\n * );\n * console.log(slashes);\n * ```\n */\n const ownSlashes = /*#__PURE__*/(0, _utilJs.erasHistoricApplyAccount)('_ownSlashes');\n});","lineCount":60,"map":[[7,2,4,0,"exports"],[7,9,4,0],[7,10,4,0,"_ownSlashes"],[7,21,4,0],[7,24,4,0,"_ownSlashes"],[7,35,4,0],[8,2,32,0,"Object"],[8,8,32,0],[8,9,32,0,"defineProperty"],[8,23,32,0],[8,24,32,0,"exports"],[8,31,32,0],[9,4,32,0,"enumerable"],[9,14,32,0],[10,4,32,0,"get"],[10,7,32,0],[10,18,32,0,"get"],[10,19,32,0],[11,6,32,0],[11,13,32,0,"ownSlash"],[11,21,32,0],[12,4,32,0],[13,2,32,0],[14,2,47,0,"Object"],[14,8,47,0],[14,9,47,0,"defineProperty"],[14,23,47,0],[14,24,47,0,"exports"],[14,31,47,0],[15,4,47,0,"enumerable"],[15,14,47,0],[16,4,47,0,"get"],[16,7,47,0],[16,18,47,0,"get"],[16,19,47,0],[17,6,47,0],[17,13,47,0,"ownSlashes"],[17,23,47,0],[18,4,47,0],[19,2,47,0],[20,2,1,0],[20,6,1,0,"_rxjs"],[20,11,1,0],[20,14,1,0,"require"],[20,21,1,0],[20,22,1,0,"_dependencyMap"],[20,36,1,0],[21,2,2,0],[21,6,2,0,"_utilIndexJs"],[21,18,2,0],[21,21,2,0,"require"],[21,28,2,0],[21,29,2,0,"_dependencyMap"],[21,43,2,0],[22,2,3,0],[22,6,3,0,"_utilJs"],[22,13,3,0],[22,16,3,0,"require"],[22,23,3,0],[22,24,3,0,"_dependencyMap"],[22,38,3,0],[23,2,4,7],[23,11,4,16,"_ownSlashes"],[23,22,4,27,"_ownSlashes"],[23,23,4,28,"instanceId"],[23,33,4,38],[23,35,4,40,"api"],[23,38,4,43],[23,40,4,45],[24,4,5,4],[24,11,5,11],[24,15,5,11,"memo"],[24,27,5,15],[24,28,5,15,"memo"],[24,32,5,15],[24,34,5,16,"instanceId"],[24,44,5,26],[24,46,5,28],[24,47,5,29,"accountId"],[24,56,5,38],[24,58,5,40,"eras"],[24,62,5,44],[24,64,5,46,"_withActive"],[24,75,5,57],[24,80,5,62,"eras"],[24,84,5,66],[24,85,5,67,"length"],[24,91,5,73],[24,94,6,10],[24,98,6,10,"combineLatest"],[24,103,6,23],[24,104,6,23,"combineLatest"],[24,117,6,23],[24,119,6,24],[24,120,7,12],[24,124,7,12,"combineLatest"],[24,129,7,25],[24,130,7,25,"combineLatest"],[24,143,7,25],[24,145,7,26,"eras"],[24,149,7,30],[24,150,7,31,"map"],[24,153,7,34],[24,154,7,36,"e"],[24,155,7,37],[24,159,7,42,"api"],[24,162,7,45],[24,163,7,46,"query"],[24,168,7,51],[24,169,7,52,"staking"],[24,176,7,59],[24,177,7,60,"validatorSlashInEra"],[24,196,7,79],[24,197,7,80,"e"],[24,198,7,81],[24,200,7,83,"accountId"],[24,209,7,92],[24,210,7,93],[24,211,7,94],[24,212,7,95],[24,214,8,12],[24,218,8,12,"combineLatest"],[24,223,8,25],[24,224,8,25,"combineLatest"],[24,237,8,25],[24,239,8,26,"eras"],[24,243,8,30],[24,244,8,31,"map"],[24,247,8,34],[24,248,8,36,"e"],[24,249,8,37],[24,253,8,42,"api"],[24,256,8,45],[24,257,8,46,"query"],[24,262,8,51],[24,263,8,52,"staking"],[24,270,8,59],[24,271,8,60,"nominatorSlashInEra"],[24,290,8,79],[24,291,8,80,"e"],[24,292,8,81],[24,294,8,83,"accountId"],[24,303,8,92],[24,304,8,93],[24,305,8,94],[24,306,8,95],[24,307,9,9],[24,308,9,10],[24,309,9,11,"pipe"],[24,313,9,15],[24,314,9,16],[24,318,9,16,"map"],[24,323,9,19],[24,324,9,19,"map"],[24,327,9,19],[24,329,9,20],[24,330,9,21],[24,331,9,22,"vals"],[24,335,9,26],[24,337,9,28,"noms"],[24,341,9,32],[24,342,9,33],[24,347,9,38,"eras"],[24,351,9,42],[24,352,9,43,"map"],[24,355,9,46],[24,356,9,47],[24,357,9,48,"era"],[24,360,9,51],[24,362,9,53,"index"],[24,367,9,58],[24,373,9,64],[25,6,10,12,"era"],[25,9,10,15],[26,6,11,12,"total"],[26,11,11,17],[26,13,11,19,"vals"],[26,17,11,23],[26,18,11,24,"index"],[26,23,11,29],[26,24,11,30],[26,25,11,31,"isSome"],[26,31,11,37],[26,34,12,18,"vals"],[26,38,12,22],[26,39,12,23,"index"],[26,44,12,28],[26,45,12,29],[26,46,12,30,"unwrap"],[26,52,12,36],[26,53,12,37],[26,54,12,38],[26,55,12,39],[26,56,12,40],[26,57,12,41],[26,60,13,18,"noms"],[26,64,13,22],[26,65,13,23,"index"],[26,70,13,28],[26,71,13,29],[26,72,13,30,"unwrapOrDefault"],[26,87,13,45],[26,88,13,46],[27,4,14,8],[27,5,14,9],[27,6,14,10],[27,7,14,11],[27,8,14,12],[27,9,14,13],[27,12,15,10],[27,16,15,10,"of"],[27,21,15,12],[27,22,15,12,"of"],[27,24,15,12],[27,26,15,13],[27,28,15,15],[27,29,15,16],[27,30,15,17],[28,2,16,0],[29,2,17,0],[30,0,18,0],[31,0,19,0],[32,0,20,0],[33,0,21,0],[34,0,22,0],[35,0,23,0],[36,0,24,0],[37,0,25,0],[38,0,26,0],[39,0,27,0],[40,0,28,0],[41,0,29,0],[42,0,30,0],[43,0,31,0],[44,2,32,7],[44,8,32,13,"ownSlash"],[44,16,32,21],[44,19,32,24],[44,32,32,38],[44,36,32,38,"firstMemo"],[44,48,32,47],[44,49,32,47,"firstMemo"],[44,58,32,47],[44,60,32,48],[44,61,32,49,"api"],[44,64,32,52],[44,66,32,54,"accountId"],[44,75,32,63],[44,77,32,65,"era"],[44,80,32,68],[44,85,32,73,"api"],[44,88,32,76],[44,89,32,77,"derive"],[44,95,32,83],[44,96,32,84,"staking"],[44,103,32,91],[44,104,32,92,"_ownSlashes"],[44,115,32,103],[44,116,32,104,"accountId"],[44,125,32,113],[44,127,32,115],[44,128,32,116,"era"],[44,131,32,119],[44,132,32,120],[44,134,32,122],[44,138,32,126],[44,139,32,127],[44,140,32,128],[45,2,33,0],[46,0,34,0],[47,0,35,0],[48,0,36,0],[49,0,37,0],[50,0,38,0],[51,0,39,0],[52,0,40,0],[53,0,41,0],[54,0,42,0],[55,0,43,0],[56,0,44,0],[57,0,45,0],[58,0,46,0],[59,2,47,7],[59,8,47,13,"ownSlashes"],[59,18,47,23],[59,21,47,26],[59,34,47,40],[59,38,47,40,"erasHistoricApplyAccount"],[59,45,47,64],[59,46,47,64,"erasHistoricApplyAccount"],[59,70,47,64],[59,72,47,65],[59,85,47,78],[59,86,47,79],[60,0,47,80],[60,3]],"functionMap":{"names":["<global>","_ownSlashes","memo$argument_1","eras.map$argument_0","map$argument_0","firstMemo$argument_0"],"mappings":"AAA;OCG;4BCC;mCCE,0DD;mCCC,0DD;oBEC,2BD;UCK,CF;gBDC;CDC;gDKgB,+EL"},"hasCjsExports":false},"type":"js/module"}]} |