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