Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/91/0e1e595ad2d75040c8cd7afc294d1b41f6bab608acb6057dd32c5fae325bfc01e937d5
T
2025-11-08 10:07:13 +00:00

1 line
9.2 KiB
Plaintext

{"dependencies":[{"name":"@babel/runtime/helpers/slicedToArray","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"5y7e5+zC7teYEEC6niD9f5zII1M=","exportNames":["*"],"imports":1}},{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":175},"end":{"line":5,"column":30,"index":190}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":19,"index":211},"end":{"line":6,"column":46,"index":238}}],"key":"H94lp+EitftSFqDHaenrSs5zKB0=","exportNames":["*"],"imports":1}},{"name":"./util.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":18,"index":258},"end":{"line":7,"column":38,"index":278}}],"key":"RHtkf1pyimtRfZWAvWBZ833kE8E=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n var _slicedToArray = require(_dependencyMap[0], \"@babel/runtime/helpers/slicedToArray\").default;\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.ownSlashes = exports.ownSlash = void 0;\n exports._ownSlashes = _ownSlashes;\n var rxjs_1 = require(_dependencyMap[1], \"rxjs\");\n var index_js_1 = require(_dependencyMap[2], \"../util/index.js\");\n var util_js_1 = require(_dependencyMap[3], \"./util.js\");\n function _ownSlashes(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, function (accountId, eras, _withActive) {\n return eras.length ? (0, rxjs_1.combineLatest)([(0, rxjs_1.combineLatest)(eras.map(function (e) {\n return api.query.staking.validatorSlashInEra(e, accountId);\n })), (0, rxjs_1.combineLatest)(eras.map(function (e) {\n return api.query.staking.nominatorSlashInEra(e, accountId);\n }))]).pipe((0, rxjs_1.map)(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 2),\n vals = _ref2[0],\n noms = _ref2[1];\n return eras.map(function (era, index) {\n return {\n era: era,\n total: vals[index].isSome ? vals[index].unwrap()[1] : noms[index].unwrapOrDefault()\n };\n });\n })) : (0, rxjs_1.of)([]);\n });\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 exports.ownSlash = (0, index_js_1.firstMemo)(function (api, accountId, era) {\n return api.derive.staking._ownSlashes(accountId, [era], true);\n });\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 exports.ownSlashes = (0, util_js_1.erasHistoricApplyAccount)('_ownSlashes');\n});","lineCount":65,"map":[[2,2,1,0],[2,14,1,12],[4,2,1,13],[4,6,1,13,"_slicedToArray"],[4,20,1,13],[4,23,1,13,"require"],[4,30,1,13],[4,31,1,13,"_dependencyMap"],[4,45,1,13],[4,90,1,13,"default"],[4,97,1,13],[5,2,2,0,"Object"],[5,8,2,6],[5,9,2,7,"defineProperty"],[5,23,2,21],[5,24,2,22,"exports"],[5,31,2,29],[5,33,2,31],[5,45,2,43],[5,47,2,45],[6,4,2,47,"value"],[6,9,2,52],[6,11,2,54],[7,2,2,59],[7,3,2,60],[7,4,2,61],[8,2,3,0,"exports"],[8,9,3,7],[8,10,3,8,"ownSlashes"],[8,20,3,18],[8,23,3,21,"exports"],[8,30,3,28],[8,31,3,29,"ownSlash"],[8,39,3,37],[8,42,3,40],[8,47,3,45],[8,48,3,46],[9,2,4,0,"exports"],[9,9,4,7],[9,10,4,8,"_ownSlashes"],[9,21,4,19],[9,24,4,22,"_ownSlashes"],[9,35,4,33],[10,2,5,0],[10,6,5,6,"rxjs_1"],[10,12,5,12],[10,15,5,15,"require"],[10,22,5,22],[10,23,5,22,"_dependencyMap"],[10,37,5,22],[10,48,5,29],[10,49,5,30],[11,2,6,0],[11,6,6,6,"index_js_1"],[11,16,6,16],[11,19,6,19,"require"],[11,26,6,26],[11,27,6,26,"_dependencyMap"],[11,41,6,26],[11,64,6,45],[11,65,6,46],[12,2,7,0],[12,6,7,6,"util_js_1"],[12,15,7,15],[12,18,7,18,"require"],[12,25,7,25],[12,26,7,25,"_dependencyMap"],[12,40,7,25],[12,56,7,37],[12,57,7,38],[13,2,8,0],[13,11,8,9,"_ownSlashes"],[13,22,8,20,"_ownSlashes"],[13,23,8,21,"instanceId"],[13,33,8,31],[13,35,8,33,"api"],[13,38,8,36],[13,40,8,38],[14,4,9,4],[14,11,9,11],[14,12,9,12],[14,13,9,13],[14,15,9,15,"index_js_1"],[14,25,9,25],[14,26,9,26,"memo"],[14,30,9,30],[14,32,9,32,"instanceId"],[14,42,9,42],[14,44,9,44],[14,54,9,45,"accountId"],[14,63,9,54],[14,65,9,56,"eras"],[14,69,9,60],[14,71,9,62,"_withActive"],[14,82,9,73],[15,6,9,73],[15,13,9,78,"eras"],[15,17,9,82],[15,18,9,83,"length"],[15,24,9,89],[15,27,10,10],[15,28,10,11],[15,29,10,12],[15,31,10,14,"rxjs_1"],[15,37,10,20],[15,38,10,21,"combineLatest"],[15,51,10,34],[15,53,10,36],[15,54,11,12],[15,55,11,13],[15,56,11,14],[15,58,11,16,"rxjs_1"],[15,64,11,22],[15,65,11,23,"combineLatest"],[15,78,11,36],[15,80,11,38,"eras"],[15,84,11,42],[15,85,11,43,"map"],[15,88,11,46],[15,89,11,47],[15,99,11,48,"e"],[15,100,11,49],[16,8,11,49],[16,15,11,54,"api"],[16,18,11,57],[16,19,11,58,"query"],[16,24,11,63],[16,25,11,64,"staking"],[16,32,11,71],[16,33,11,72,"validatorSlashInEra"],[16,52,11,91],[16,53,11,92,"e"],[16,54,11,93],[16,56,11,95,"accountId"],[16,65,11,104],[16,66,11,105],[17,6,11,105],[17,8,11,106],[17,9,11,107],[17,11,12,12],[17,12,12,13],[17,13,12,14],[17,15,12,16,"rxjs_1"],[17,21,12,22],[17,22,12,23,"combineLatest"],[17,35,12,36],[17,37,12,38,"eras"],[17,41,12,42],[17,42,12,43,"map"],[17,45,12,46],[17,46,12,47],[17,56,12,48,"e"],[17,57,12,49],[18,8,12,49],[18,15,12,54,"api"],[18,18,12,57],[18,19,12,58,"query"],[18,24,12,63],[18,25,12,64,"staking"],[18,32,12,71],[18,33,12,72,"nominatorSlashInEra"],[18,52,12,91],[18,53,12,92,"e"],[18,54,12,93],[18,56,12,95,"accountId"],[18,65,12,104],[18,66,12,105],[19,6,12,105],[19,8,12,106],[19,9,12,107],[19,10,13,9],[19,11,13,10],[19,12,13,11,"pipe"],[19,16,13,15],[19,17,13,16],[19,18,13,17],[19,19,13,18],[19,21,13,20,"rxjs_1"],[19,27,13,26],[19,28,13,27,"map"],[19,31,13,30],[19,33,13,32],[19,43,13,32,"_ref"],[19,47,13,32],[20,8,13,32],[20,12,13,32,"_ref2"],[20,17,13,32],[20,20,13,32,"_slicedToArray"],[20,34,13,32],[20,35,13,32,"_ref"],[20,39,13,32],[21,10,13,34,"vals"],[21,14,13,38],[21,17,13,38,"_ref2"],[21,22,13,38],[22,10,13,40,"noms"],[22,14,13,44],[22,17,13,44,"_ref2"],[22,22,13,44],[23,8,13,44],[23,15,13,50,"eras"],[23,19,13,54],[23,20,13,55,"map"],[23,23,13,58],[23,24,13,59],[23,34,13,60,"era"],[23,37,13,63],[23,39,13,65,"index"],[23,44,13,70],[24,10,13,70],[24,17,13,76],[25,12,14,12,"era"],[25,15,14,15],[25,17,14,12,"era"],[25,20,14,15],[26,12,15,12,"total"],[26,17,15,17],[26,19,15,19,"vals"],[26,23,15,23],[26,24,15,24,"index"],[26,29,15,29],[26,30,15,30],[26,31,15,31,"isSome"],[26,37,15,37],[26,40,16,18,"vals"],[26,44,16,22],[26,45,16,23,"index"],[26,50,16,28],[26,51,16,29],[26,52,16,30,"unwrap"],[26,58,16,36],[26,59,16,37],[26,60,16,38],[26,61,16,39],[26,62,16,40],[26,63,16,41],[26,66,17,18,"noms"],[26,70,17,22],[26,71,17,23,"index"],[26,76,17,28],[26,77,17,29],[26,78,17,30,"unwrapOrDefault"],[26,93,17,45],[26,94,17,46],[27,10,18,8],[27,11,18,9],[28,8,18,9],[28,9,18,10],[28,10,18,11],[29,6,18,11],[29,8,18,12],[29,9,18,13],[29,12,19,10],[29,13,19,11],[29,14,19,12],[29,16,19,14,"rxjs_1"],[29,22,19,20],[29,23,19,21,"of"],[29,25,19,23],[29,27,19,25],[29,29,19,27],[29,30,19,28],[30,4,19,28],[30,6,19,29],[31,2,20,0],[32,2,21,0],[33,0,22,0],[34,0,23,0],[35,0,24,0],[36,0,25,0],[37,0,26,0],[38,0,27,0],[39,0,28,0],[40,0,29,0],[41,0,30,0],[42,0,31,0],[43,0,32,0],[44,0,33,0],[45,0,34,0],[46,0,35,0],[47,2,36,0,"exports"],[47,9,36,7],[47,10,36,8,"ownSlash"],[47,18,36,16],[47,21,36,19],[47,22,36,20],[47,23,36,21],[47,25,36,23,"index_js_1"],[47,35,36,33],[47,36,36,34,"firstMemo"],[47,45,36,43],[47,47,36,45],[47,57,36,46,"api"],[47,60,36,49],[47,62,36,51,"accountId"],[47,71,36,60],[47,73,36,62,"era"],[47,76,36,65],[48,4,36,65],[48,11,36,70,"api"],[48,14,36,73],[48,15,36,74,"derive"],[48,21,36,80],[48,22,36,81,"staking"],[48,29,36,88],[48,30,36,89,"_ownSlashes"],[48,41,36,100],[48,42,36,101,"accountId"],[48,51,36,110],[48,53,36,112],[48,54,36,113,"era"],[48,57,36,116],[48,58,36,117],[48,60,36,119],[48,64,36,123],[48,65,36,124],[49,2,36,124],[49,4,36,125],[50,2,37,0],[51,0,38,0],[52,0,39,0],[53,0,40,0],[54,0,41,0],[55,0,42,0],[56,0,43,0],[57,0,44,0],[58,0,45,0],[59,0,46,0],[60,0,47,0],[61,0,48,0],[62,0,49,0],[63,0,50,0],[64,2,51,0,"exports"],[64,9,51,7],[64,10,51,8,"ownSlashes"],[64,20,51,18],[64,23,51,21],[64,24,51,22],[64,25,51,23],[64,27,51,25,"util_js_1"],[64,36,51,34],[64,37,51,35,"erasHistoricApplyAccount"],[64,61,51,59],[64,63,51,61],[64,76,51,74],[64,77,51,75],[65,0,51,76],[65,3]],"functionMap":{"names":["<global>","_ownSlashes","<anonymous>","eras.map$argument_0"],"mappings":"AAA;ACO;4CCC;+CCE,0DD;+CCC,0DD;2DCC;UDK;4BDC;CDC;6CEgB,+EF"},"hasCjsExports":true},"type":"js/module"}]}