mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 12:21:01 +00:00
1 line
14 KiB
Plaintext
1 line
14 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, (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(e => api.query.staking.erasStakersClipped(e, accountId))) : (0, rxjs_1.of)(eras.map(_ => emptyStakingExposure)), api.query.staking.erasStakers ? (0, rxjs_1.combineLatest)(eras.map(e => api.query.staking.erasStakers(e, accountId))) : (0, rxjs_1.of)(eras.map(_ => emptyStakingExposure)), api.query.staking.erasStakersPaged ? (0, rxjs_1.combineLatest)(eras.map(e => api.query.staking.erasStakersPaged(e, accountId, page))) : (0, rxjs_1.of)(eras.map(_ => emptyOptionPage)), api.query.staking.erasStakersOverview ? (0, rxjs_1.combineLatest)(eras.map(e => api.query.staking.erasStakersOverview(e, accountId))) : (0, rxjs_1.of)(eras.map(_ => emptyOptionMeta))]).pipe((0, rxjs_1.map)(_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((era, index) => ({\n clipped: clp[index],\n era,\n exposure: exp[index],\n exposureMeta: expMeta[index],\n exposurePaged: paged[index]\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)((api, accountId, era, page) => api.derive.staking._ownExposures(accountId, [era], true, page || 0));\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":69,"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,45,9,45,"accountId"],[14,54,9,54],[14,56,9,56,"eras"],[14,60,9,60],[14,62,9,62,"_withActive"],[14,73,9,73],[14,75,9,75,"page"],[14,79,9,79],[14,84,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,58,"e"],[22,81,19,59],[22,85,19,64,"api"],[22,88,19,67],[22,89,19,68,"query"],[22,94,19,73],[22,95,19,74,"staking"],[22,102,19,81],[22,103,19,82,"erasStakersClipped"],[22,121,19,100],[22,122,19,101,"e"],[22,123,19,102],[22,125,19,104,"accountId"],[22,134,19,113],[22,135,19,114],[22,136,19,115],[22,137,19,116],[22,140,20,22],[22,141,20,23],[22,142,20,24],[22,144,20,26,"rxjs_1"],[22,150,20,32],[22,151,20,33,"of"],[22,153,20,35],[22,155,20,37,"eras"],[22,159,20,41],[22,160,20,42,"map"],[22,163,20,45],[22,164,20,47,"_"],[22,165,20,48],[22,169,20,53,"emptyStakingExposure"],[22,189,20,73],[22,190,20,74],[22,191,20,75],[22,193,21,16,"api"],[22,196,21,19],[22,197,21,20,"query"],[22,202,21,25],[22,203,21,26,"staking"],[22,210,21,33],[22,211,21,34,"erasStakers"],[22,222,21,45],[22,225,22,22],[22,226,22,23],[22,227,22,24],[22,229,22,26,"rxjs_1"],[22,235,22,32],[22,236,22,33,"combineLatest"],[22,249,22,46],[22,251,22,48,"eras"],[22,255,22,52],[22,256,22,53,"map"],[22,259,22,56],[22,260,22,58,"e"],[22,261,22,59],[22,265,22,64,"api"],[22,268,22,67],[22,269,22,68,"query"],[22,274,22,73],[22,275,22,74,"staking"],[22,282,22,81],[22,283,22,82,"erasStakers"],[22,294,22,93],[22,295,22,94,"e"],[22,296,22,95],[22,298,22,97,"accountId"],[22,307,22,106],[22,308,22,107],[22,309,22,108],[22,310,22,109],[22,313,23,22],[22,314,23,23],[22,315,23,24],[22,317,23,26,"rxjs_1"],[22,323,23,32],[22,324,23,33,"of"],[22,326,23,35],[22,328,23,37,"eras"],[22,332,23,41],[22,333,23,42,"map"],[22,336,23,45],[22,337,23,47,"_"],[22,338,23,48],[22,342,23,53,"emptyStakingExposure"],[22,362,23,73],[22,363,23,74],[22,364,23,75],[22,366,24,16,"api"],[22,369,24,19],[22,370,24,20,"query"],[22,375,24,25],[22,376,24,26,"staking"],[22,383,24,33],[22,384,24,34,"erasStakersPaged"],[22,400,24,50],[22,403,25,22],[22,404,25,23],[22,405,25,24],[22,407,25,26,"rxjs_1"],[22,413,25,32],[22,414,25,33,"combineLatest"],[22,427,25,46],[22,429,25,48,"eras"],[22,433,25,52],[22,434,25,53,"map"],[22,437,25,56],[22,438,25,58,"e"],[22,439,25,59],[22,443,25,64,"api"],[22,446,25,67],[22,447,25,68,"query"],[22,452,25,73],[22,453,25,74,"staking"],[22,460,25,81],[22,461,25,82,"erasStakersPaged"],[22,477,25,98],[22,478,25,99,"e"],[22,479,25,100],[22,481,25,102,"accountId"],[22,490,25,111],[22,492,25,113,"page"],[22,496,25,117],[22,497,25,118],[22,498,25,119],[22,499,25,120],[22,502,26,22],[22,503,26,23],[22,504,26,24],[22,506,26,26,"rxjs_1"],[22,512,26,32],[22,513,26,33,"of"],[22,515,26,35],[22,517,26,37,"eras"],[22,521,26,41],[22,522,26,42,"map"],[22,525,26,45],[22,526,26,47,"_"],[22,527,26,48],[22,531,26,53,"emptyOptionPage"],[22,546,26,68],[22,547,26,69],[22,548,26,70],[22,550,27,16,"api"],[22,553,27,19],[22,554,27,20,"query"],[22,559,27,25],[22,560,27,26,"staking"],[22,567,27,33],[22,568,27,34,"erasStakersOverview"],[22,587,27,53],[22,590,28,22],[22,591,28,23],[22,592,28,24],[22,594,28,26,"rxjs_1"],[22,600,28,32],[22,601,28,33,"combineLatest"],[22,614,28,46],[22,616,28,48,"eras"],[22,620,28,52],[22,621,28,53,"map"],[22,624,28,56],[22,625,28,58,"e"],[22,626,28,59],[22,630,28,64,"api"],[22,633,28,67],[22,634,28,68,"query"],[22,639,28,73],[22,640,28,74,"staking"],[22,647,28,81],[22,648,28,82,"erasStakersOverview"],[22,667,28,101],[22,668,28,102,"e"],[22,669,28,103],[22,671,28,105,"accountId"],[22,680,28,114],[22,681,28,115],[22,682,28,116],[22,683,28,117],[22,686,29,22],[22,687,29,23],[22,688,29,24],[22,690,29,26,"rxjs_1"],[22,696,29,32],[22,697,29,33,"of"],[22,699,29,35],[22,701,29,37,"eras"],[22,705,29,41],[22,706,29,42,"map"],[22,709,29,45],[22,710,29,47,"_"],[22,711,29,48],[22,715,29,53,"emptyOptionMeta"],[22,730,29,68],[22,731,29,69],[22,732,29,70],[22,733,30,13],[22,734,30,14],[22,735,30,15,"pipe"],[22,739,30,19],[22,740,30,20],[22,741,30,21],[22,742,30,22],[22,744,30,24,"rxjs_1"],[22,750,30,30],[22,751,30,31,"map"],[22,754,30,34],[22,756,30,36,"_ref"],[22,760,30,36],[23,8,30,36],[23,12,30,36,"_ref2"],[23,17,30,36],[23,20,30,36,"_slicedToArray"],[23,34,30,36],[23,35,30,36,"_ref"],[23,39,30,36],[24,10,30,38,"clp"],[24,13,30,41],[24,16,30,41,"_ref2"],[24,21,30,41],[25,10,30,43,"exp"],[25,13,30,46],[25,16,30,46,"_ref2"],[25,21,30,46],[26,10,30,48,"paged"],[26,15,30,53],[26,18,30,53,"_ref2"],[26,23,30,53],[27,10,30,55,"expMeta"],[27,17,30,62],[27,20,30,62,"_ref2"],[27,25,30,62],[28,8,30,62],[28,15,30,68,"eras"],[28,19,30,72],[28,20,30,73,"map"],[28,23,30,76],[28,24,30,77],[28,25,30,78,"era"],[28,28,30,81],[28,30,30,83,"index"],[28,35,30,88],[28,41,30,94],[29,10,30,96,"clipped"],[29,17,30,103],[29,19,30,105,"clp"],[29,22,30,108],[29,23,30,109,"index"],[29,28,30,114],[29,29,30,115],[30,10,30,117,"era"],[30,13,30,120],[31,10,30,122,"exposure"],[31,18,30,130],[31,20,30,132,"exp"],[31,23,30,135],[31,24,30,136,"index"],[31,29,30,141],[31,30,30,142],[32,10,30,144,"exposureMeta"],[32,22,30,156],[32,24,30,158,"expMeta"],[32,31,30,165],[32,32,30,166,"index"],[32,37,30,171],[32,38,30,172],[33,10,30,174,"exposurePaged"],[33,23,30,187],[33,25,30,189,"paged"],[33,30,30,194],[33,31,30,195,"index"],[33,36,30,200],[34,8,30,202],[34,9,30,203],[34,10,30,204],[34,11,30,205],[35,6,30,205],[35,8,30,206],[35,9,30,207],[35,12,31,14],[35,13,31,15],[35,14,31,16],[35,16,31,18,"rxjs_1"],[35,22,31,24],[35,23,31,25,"of"],[35,25,31,27],[35,27,31,29],[35,29,31,31],[35,30,31,32],[36,4,32,4],[36,5,32,5],[36,6,32,6],[37,2,33,0],[38,2,34,0],[39,0,35,0],[40,0,36,0],[41,0,37,0],[42,0,38,0],[43,0,39,0],[44,0,40,0],[45,0,41,0],[46,0,42,0],[47,0,43,0],[48,0,44,0],[49,0,45,0],[50,0,46,0],[51,0,47,0],[52,0,48,0],[53,0,49,0],[54,2,50,0,"exports"],[54,9,50,7],[54,10,50,8,"ownExposure"],[54,21,50,19],[54,24,50,22],[54,25,50,23],[54,26,50,24],[54,28,50,26,"index_js_1"],[54,38,50,36],[54,39,50,37,"firstMemo"],[54,48,50,46],[54,50,50,48],[54,51,50,49,"api"],[54,54,50,52],[54,56,50,54,"accountId"],[54,65,50,63],[54,67,50,65,"era"],[54,70,50,68],[54,72,50,70,"page"],[54,76,50,74],[54,81,50,79,"api"],[54,84,50,82],[54,85,50,83,"derive"],[54,91,50,89],[54,92,50,90,"staking"],[54,99,50,97],[54,100,50,98,"_ownExposures"],[54,113,50,111],[54,114,50,112,"accountId"],[54,123,50,121],[54,125,50,123],[54,126,50,124,"era"],[54,129,50,127],[54,130,50,128],[54,132,50,130],[54,136,50,134],[54,138,50,136,"page"],[54,142,50,140],[54,146,50,144],[54,147,50,145],[54,148,50,146],[54,149,50,147],[55,2,51,0],[56,0,52,0],[57,0,53,0],[58,0,54,0],[59,0,55,0],[60,0,56,0],[61,0,57,0],[62,0,58,0],[63,0,59,0],[64,0,60,0],[65,0,61,0],[66,0,62,0],[67,0,63,0],[68,2,64,0,"exports"],[68,9,64,7],[68,10,64,8,"ownExposures"],[68,22,64,20],[68,25,64,23],[68,26,64,24],[68,27,64,25],[68,29,64,27,"util_js_1"],[68,38,64,36],[68,39,64,37,"erasHistoricApplyAccount"],[68,63,64,61],[68,65,64,63],[68,80,64,78],[68,81,64,79],[69,0,64,80],[69,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"}]} |