mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 13:31:00 +00:00
1 line
15 KiB
Plaintext
1 line
15 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":184},"end":{"line":5,"column":30,"index":199}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":19,"index":220},"end":{"line":6,"column":46,"index":247}}],"key":"H94lp+EitftSFqDHaenrSs5zKB0=","exportNames":["*"],"imports":1}},{"name":"./util.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":18,"index":267},"end":{"line":7,"column":38,"index":287}}],"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.ownExposures = exports.ownExposure = void 0;\n exports._ownExposures = _ownExposures;\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 _ownExposures(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, function (accountId, eras, _withActive, page) {\n var emptyStakingExposure = api.registry.createType('Exposure');\n // The reason we don't explicitly make the actual types is for compatibility. If the chain doesn't have the noted type it will fail\n // on construction. Therefore we just make an empty option.\n var emptyOptionPage = api.registry.createType('Option<Null>');\n var emptyOptionMeta = api.registry.createType('Option<Null>');\n return eras.length ? (0, rxjs_1.combineLatest)([\n // Backwards and forward compat for historical integrity when using `erasHistoricApplyAccount`\n api.query.staking.erasStakersClipped ? (0, rxjs_1.combineLatest)(eras.map(function (e) {\n return api.query.staking.erasStakersClipped(e, accountId);\n })) : (0, rxjs_1.of)(eras.map(function (_) {\n return emptyStakingExposure;\n })), api.query.staking.erasStakers ? (0, rxjs_1.combineLatest)(eras.map(function (e) {\n return api.query.staking.erasStakers(e, accountId);\n })) : (0, rxjs_1.of)(eras.map(function (_) {\n return emptyStakingExposure;\n })), api.query.staking.erasStakersPaged ? (0, rxjs_1.combineLatest)(eras.map(function (e) {\n return api.query.staking.erasStakersPaged(e, accountId, page);\n })) : (0, rxjs_1.of)(eras.map(function (_) {\n return emptyOptionPage;\n })), api.query.staking.erasStakersOverview ? (0, rxjs_1.combineLatest)(eras.map(function (e) {\n return api.query.staking.erasStakersOverview(e, accountId);\n })) : (0, rxjs_1.of)(eras.map(function (_) {\n return emptyOptionMeta;\n }))]).pipe((0, rxjs_1.map)(function (_ref) {\n var _ref2 = _slicedToArray(_ref, 4),\n clp = _ref2[0],\n exp = _ref2[1],\n paged = _ref2[2],\n expMeta = _ref2[3];\n return eras.map(function (era, index) {\n return {\n clipped: clp[index],\n era: era,\n exposure: exp[index],\n exposureMeta: expMeta[index],\n exposurePaged: paged[index]\n };\n });\n })) : (0, rxjs_1.of)([]);\n });\n }\n /**\n * @name ownExposure\n * @description Retrieves the staking exposure of a validator for a specific era, including their own stake.\n * @param { Uint8Array | string } accountId The validator stash account.\n * @param {EraIndex} era The staking era to query.\n * @param { u32 | AnyNumber } page? (Optional) The pagination index.\n * @example\n * ```javascript\n * const era = api.createType(\"EraIndex\", 1000);\n * const exposure = await api.derive.staking.ownExposure(\n * \"11VR4pF6c7kfBhfmuwwjWY3FodeYBKWx7ix2rsRCU2q6hqJ\",\n * era\n * );\n * console.log(JSON.stringify(exposure));\n * ```\n */\n exports.ownExposure = (0, index_js_1.firstMemo)(function (api, accountId, era, page) {\n return api.derive.staking._ownExposures(accountId, [era], true, page || 0);\n });\n /**\n * @name ownExposures\n * @description Retrieves staking exposures for a validator across multiple historical 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 exposures = await api.derive.staking.ownExposures(\n * ALICE,\n * true\n * );\n * ```\n */\n exports.ownExposures = (0, util_js_1.erasHistoricApplyAccount)('_ownExposures');\n});","lineCount":89,"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,"ownExposures"],[8,22,3,20],[8,25,3,23,"exports"],[8,32,3,30],[8,33,3,31,"ownExposure"],[8,44,3,42],[8,47,3,45],[8,52,3,50],[8,53,3,51],[9,2,4,0,"exports"],[9,9,4,7],[9,10,4,8,"_ownExposures"],[9,23,4,21],[9,26,4,24,"_ownExposures"],[9,39,4,37],[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,"_ownExposures"],[13,24,8,22,"_ownExposures"],[13,25,8,23,"instanceId"],[13,35,8,33],[13,37,8,35,"api"],[13,40,8,38],[13,42,8,40],[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],[14,84,9,75,"page"],[14,88,9,79],[14,90,9,84],[15,6,10,8],[15,10,10,14,"emptyStakingExposure"],[15,30,10,34],[15,33,10,37,"api"],[15,36,10,40],[15,37,10,41,"registry"],[15,45,10,49],[15,46,10,50,"createType"],[15,56,10,60],[15,57,10,61],[15,67,10,71],[15,68,10,72],[16,6,11,8],[17,6,12,8],[18,6,13,8],[18,10,13,14,"emptyOptionPage"],[18,25,13,29],[18,28,13,32,"api"],[18,31,13,35],[18,32,13,36,"registry"],[18,40,13,44],[18,41,13,45,"createType"],[18,51,13,55],[18,52,13,56],[18,66,13,70],[18,67,13,71],[19,6,14,8],[19,10,14,14,"emptyOptionMeta"],[19,25,14,29],[19,28,14,32,"api"],[19,31,14,35],[19,32,14,36,"registry"],[19,40,14,44],[19,41,14,45,"createType"],[19,51,14,55],[19,52,14,56],[19,66,14,70],[19,67,14,71],[20,6,15,8],[20,13,15,15,"eras"],[20,17,15,19],[20,18,15,20,"length"],[20,24,15,26],[20,27,16,14],[20,28,16,15],[20,29,16,16],[20,31,16,18,"rxjs_1"],[20,37,16,24],[20,38,16,25,"combineLatest"],[20,51,16,38],[20,53,16,40],[21,6,17,16],[22,6,18,16,"api"],[22,9,18,19],[22,10,18,20,"query"],[22,15,18,25],[22,16,18,26,"staking"],[22,23,18,33],[22,24,18,34,"erasStakersClipped"],[22,42,18,52],[22,45,19,22],[22,46,19,23],[22,47,19,24],[22,49,19,26,"rxjs_1"],[22,55,19,32],[22,56,19,33,"combineLatest"],[22,69,19,46],[22,71,19,48,"eras"],[22,75,19,52],[22,76,19,53,"map"],[22,79,19,56],[22,80,19,57],[22,90,19,58,"e"],[22,91,19,59],[23,8,19,59],[23,15,19,64,"api"],[23,18,19,67],[23,19,19,68,"query"],[23,24,19,73],[23,25,19,74,"staking"],[23,32,19,81],[23,33,19,82,"erasStakersClipped"],[23,51,19,100],[23,52,19,101,"e"],[23,53,19,102],[23,55,19,104,"accountId"],[23,64,19,113],[23,65,19,114],[24,6,19,114],[24,8,19,115],[24,9,19,116],[24,12,20,22],[24,13,20,23],[24,14,20,24],[24,16,20,26,"rxjs_1"],[24,22,20,32],[24,23,20,33,"of"],[24,25,20,35],[24,27,20,37,"eras"],[24,31,20,41],[24,32,20,42,"map"],[24,35,20,45],[24,36,20,46],[24,46,20,47,"_"],[24,47,20,48],[25,8,20,48],[25,15,20,53,"emptyStakingExposure"],[25,35,20,73],[26,6,20,73],[26,8,20,74],[26,9,20,75],[26,11,21,16,"api"],[26,14,21,19],[26,15,21,20,"query"],[26,20,21,25],[26,21,21,26,"staking"],[26,28,21,33],[26,29,21,34,"erasStakers"],[26,40,21,45],[26,43,22,22],[26,44,22,23],[26,45,22,24],[26,47,22,26,"rxjs_1"],[26,53,22,32],[26,54,22,33,"combineLatest"],[26,67,22,46],[26,69,22,48,"eras"],[26,73,22,52],[26,74,22,53,"map"],[26,77,22,56],[26,78,22,57],[26,88,22,58,"e"],[26,89,22,59],[27,8,22,59],[27,15,22,64,"api"],[27,18,22,67],[27,19,22,68,"query"],[27,24,22,73],[27,25,22,74,"staking"],[27,32,22,81],[27,33,22,82,"erasStakers"],[27,44,22,93],[27,45,22,94,"e"],[27,46,22,95],[27,48,22,97,"accountId"],[27,57,22,106],[27,58,22,107],[28,6,22,107],[28,8,22,108],[28,9,22,109],[28,12,23,22],[28,13,23,23],[28,14,23,24],[28,16,23,26,"rxjs_1"],[28,22,23,32],[28,23,23,33,"of"],[28,25,23,35],[28,27,23,37,"eras"],[28,31,23,41],[28,32,23,42,"map"],[28,35,23,45],[28,36,23,46],[28,46,23,47,"_"],[28,47,23,48],[29,8,23,48],[29,15,23,53,"emptyStakingExposure"],[29,35,23,73],[30,6,23,73],[30,8,23,74],[30,9,23,75],[30,11,24,16,"api"],[30,14,24,19],[30,15,24,20,"query"],[30,20,24,25],[30,21,24,26,"staking"],[30,28,24,33],[30,29,24,34,"erasStakersPaged"],[30,45,24,50],[30,48,25,22],[30,49,25,23],[30,50,25,24],[30,52,25,26,"rxjs_1"],[30,58,25,32],[30,59,25,33,"combineLatest"],[30,72,25,46],[30,74,25,48,"eras"],[30,78,25,52],[30,79,25,53,"map"],[30,82,25,56],[30,83,25,57],[30,93,25,58,"e"],[30,94,25,59],[31,8,25,59],[31,15,25,64,"api"],[31,18,25,67],[31,19,25,68,"query"],[31,24,25,73],[31,25,25,74,"staking"],[31,32,25,81],[31,33,25,82,"erasStakersPaged"],[31,49,25,98],[31,50,25,99,"e"],[31,51,25,100],[31,53,25,102,"accountId"],[31,62,25,111],[31,64,25,113,"page"],[31,68,25,117],[31,69,25,118],[32,6,25,118],[32,8,25,119],[32,9,25,120],[32,12,26,22],[32,13,26,23],[32,14,26,24],[32,16,26,26,"rxjs_1"],[32,22,26,32],[32,23,26,33,"of"],[32,25,26,35],[32,27,26,37,"eras"],[32,31,26,41],[32,32,26,42,"map"],[32,35,26,45],[32,36,26,46],[32,46,26,47,"_"],[32,47,26,48],[33,8,26,48],[33,15,26,53,"emptyOptionPage"],[33,30,26,68],[34,6,26,68],[34,8,26,69],[34,9,26,70],[34,11,27,16,"api"],[34,14,27,19],[34,15,27,20,"query"],[34,20,27,25],[34,21,27,26,"staking"],[34,28,27,33],[34,29,27,34,"erasStakersOverview"],[34,48,27,53],[34,51,28,22],[34,52,28,23],[34,53,28,24],[34,55,28,26,"rxjs_1"],[34,61,28,32],[34,62,28,33,"combineLatest"],[34,75,28,46],[34,77,28,48,"eras"],[34,81,28,52],[34,82,28,53,"map"],[34,85,28,56],[34,86,28,57],[34,96,28,58,"e"],[34,97,28,59],[35,8,28,59],[35,15,28,64,"api"],[35,18,28,67],[35,19,28,68,"query"],[35,24,28,73],[35,25,28,74,"staking"],[35,32,28,81],[35,33,28,82,"erasStakersOverview"],[35,52,28,101],[35,53,28,102,"e"],[35,54,28,103],[35,56,28,105,"accountId"],[35,65,28,114],[35,66,28,115],[36,6,28,115],[36,8,28,116],[36,9,28,117],[36,12,29,22],[36,13,29,23],[36,14,29,24],[36,16,29,26,"rxjs_1"],[36,22,29,32],[36,23,29,33,"of"],[36,25,29,35],[36,27,29,37,"eras"],[36,31,29,41],[36,32,29,42,"map"],[36,35,29,45],[36,36,29,46],[36,46,29,47,"_"],[36,47,29,48],[37,8,29,48],[37,15,29,53,"emptyOptionMeta"],[37,30,29,68],[38,6,29,68],[38,8,29,69],[38,9,29,70],[38,10,30,13],[38,11,30,14],[38,12,30,15,"pipe"],[38,16,30,19],[38,17,30,20],[38,18,30,21],[38,19,30,22],[38,21,30,24,"rxjs_1"],[38,27,30,30],[38,28,30,31,"map"],[38,31,30,34],[38,33,30,36],[38,43,30,36,"_ref"],[38,47,30,36],[39,8,30,36],[39,12,30,36,"_ref2"],[39,17,30,36],[39,20,30,36,"_slicedToArray"],[39,34,30,36],[39,35,30,36,"_ref"],[39,39,30,36],[40,10,30,38,"clp"],[40,13,30,41],[40,16,30,41,"_ref2"],[40,21,30,41],[41,10,30,43,"exp"],[41,13,30,46],[41,16,30,46,"_ref2"],[41,21,30,46],[42,10,30,48,"paged"],[42,15,30,53],[42,18,30,53,"_ref2"],[42,23,30,53],[43,10,30,55,"expMeta"],[43,17,30,62],[43,20,30,62,"_ref2"],[43,25,30,62],[44,8,30,62],[44,15,30,68,"eras"],[44,19,30,72],[44,20,30,73,"map"],[44,23,30,76],[44,24,30,77],[44,34,30,78,"era"],[44,37,30,81],[44,39,30,83,"index"],[44,44,30,88],[45,10,30,88],[45,17,30,94],[46,12,30,96,"clipped"],[46,19,30,103],[46,21,30,105,"clp"],[46,24,30,108],[46,25,30,109,"index"],[46,30,30,114],[46,31,30,115],[47,12,30,117,"era"],[47,15,30,120],[47,17,30,117,"era"],[47,20,30,120],[48,12,30,122,"exposure"],[48,20,30,130],[48,22,30,132,"exp"],[48,25,30,135],[48,26,30,136,"index"],[48,31,30,141],[48,32,30,142],[49,12,30,144,"exposureMeta"],[49,24,30,156],[49,26,30,158,"expMeta"],[49,33,30,165],[49,34,30,166,"index"],[49,39,30,171],[49,40,30,172],[50,12,30,174,"exposurePaged"],[50,25,30,187],[50,27,30,189,"paged"],[50,32,30,194],[50,33,30,195,"index"],[50,38,30,200],[51,10,30,202],[51,11,30,203],[52,8,30,203],[52,9,30,204],[52,10,30,205],[53,6,30,205],[53,8,30,206],[53,9,30,207],[53,12,31,14],[53,13,31,15],[53,14,31,16],[53,16,31,18,"rxjs_1"],[53,22,31,24],[53,23,31,25,"of"],[53,25,31,27],[53,27,31,29],[53,29,31,31],[53,30,31,32],[54,4,32,4],[54,5,32,5],[54,6,32,6],[55,2,33,0],[56,2,34,0],[57,0,35,0],[58,0,36,0],[59,0,37,0],[60,0,38,0],[61,0,39,0],[62,0,40,0],[63,0,41,0],[64,0,42,0],[65,0,43,0],[66,0,44,0],[67,0,45,0],[68,0,46,0],[69,0,47,0],[70,0,48,0],[71,0,49,0],[72,2,50,0,"exports"],[72,9,50,7],[72,10,50,8,"ownExposure"],[72,21,50,19],[72,24,50,22],[72,25,50,23],[72,26,50,24],[72,28,50,26,"index_js_1"],[72,38,50,36],[72,39,50,37,"firstMemo"],[72,48,50,46],[72,50,50,48],[72,60,50,49,"api"],[72,63,50,52],[72,65,50,54,"accountId"],[72,74,50,63],[72,76,50,65,"era"],[72,79,50,68],[72,81,50,70,"page"],[72,85,50,74],[73,4,50,74],[73,11,50,79,"api"],[73,14,50,82],[73,15,50,83,"derive"],[73,21,50,89],[73,22,50,90,"staking"],[73,29,50,97],[73,30,50,98,"_ownExposures"],[73,43,50,111],[73,44,50,112,"accountId"],[73,53,50,121],[73,55,50,123],[73,56,50,124,"era"],[73,59,50,127],[73,60,50,128],[73,62,50,130],[73,66,50,134],[73,68,50,136,"page"],[73,72,50,140],[73,76,50,144],[73,77,50,145],[73,78,50,146],[74,2,50,146],[74,4,50,147],[75,2,51,0],[76,0,52,0],[77,0,53,0],[78,0,54,0],[79,0,55,0],[80,0,56,0],[81,0,57,0],[82,0,58,0],[83,0,59,0],[84,0,60,0],[85,0,61,0],[86,0,62,0],[87,0,63,0],[88,2,64,0,"exports"],[88,9,64,7],[88,10,64,8,"ownExposures"],[88,22,64,20],[88,25,64,23],[88,26,64,24],[88,27,64,25],[88,29,64,27,"util_js_1"],[88,38,64,36],[88,39,64,37,"erasHistoricApplyAccount"],[88,63,64,61],[88,65,64,63],[88,80,64,78],[88,81,64,79],[89,0,64,80],[89,3]],"functionMap":{"names":["<global>","_ownExposures","<anonymous>","eras.map$argument_0"],"mappings":"AAA;ACO;4CCC;yDCU,yDD;8CCC,2BD;yDCE,kDD;8CCC,2BD;yDCE,6DD;8CCC,sBD;yDCE,0DD;8CCC,sBD;6ECC,+HD;KDE;CDC;gDEiB,kGF"},"hasCjsExports":true},"type":"js/module"}]} |