Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/ce/774f83204ab9ce7e161d2e1e3db581e34f1caad552092ca80c7364177987c7814925b1
T
2025-10-24 02:46:57 +00:00

1 line
13 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._ownExposures = _ownExposures;\n Object.defineProperty(exports, \"ownExposure\", {\n enumerable: true,\n get: function () {\n return ownExposure;\n }\n });\n Object.defineProperty(exports, \"ownExposures\", {\n enumerable: true,\n get: function () {\n return ownExposures;\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 _ownExposures(instanceId, api) {\n return (0, _utilIndexJs.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.combineLatest)([\n // Backwards and forward compat for historical integrity when using `erasHistoricApplyAccount`\n api.query.staking.erasStakersClipped ? (0, _rxjs.combineLatest)(eras.map(e => api.query.staking.erasStakersClipped(e, accountId))) : (0, _rxjs.of)(eras.map(_ => emptyStakingExposure)), api.query.staking.erasStakers ? (0, _rxjs.combineLatest)(eras.map(e => api.query.staking.erasStakers(e, accountId))) : (0, _rxjs.of)(eras.map(_ => emptyStakingExposure)), api.query.staking.erasStakersPaged ? (0, _rxjs.combineLatest)(eras.map(e => api.query.staking.erasStakersPaged(e, accountId, page))) : (0, _rxjs.of)(eras.map(_ => emptyOptionPage)), api.query.staking.erasStakersOverview ? (0, _rxjs.combineLatest)(eras.map(e => api.query.staking.erasStakersOverview(e, accountId))) : (0, _rxjs.of)(eras.map(_ => emptyOptionMeta))]).pipe((0, _rxjs.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.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 const ownExposure = /*#__PURE__*/(0, _utilIndexJs.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 const ownExposures = /*#__PURE__*/(0, _utilJs.erasHistoricApplyAccount)('_ownExposures');\n});","lineCount":72,"map":[[7,2,4,0,"exports"],[7,9,4,0],[7,10,4,0,"_ownExposures"],[7,23,4,0],[7,26,4,0,"_ownExposures"],[7,39,4,0],[8,2,46,0,"Object"],[8,8,46,0],[8,9,46,0,"defineProperty"],[8,23,46,0],[8,24,46,0,"exports"],[8,31,46,0],[9,4,46,0,"enumerable"],[9,14,46,0],[10,4,46,0,"get"],[10,7,46,0],[10,18,46,0,"get"],[10,19,46,0],[11,6,46,0],[11,13,46,0,"ownExposure"],[11,24,46,0],[12,4,46,0],[13,2,46,0],[14,2,60,0,"Object"],[14,8,60,0],[14,9,60,0,"defineProperty"],[14,23,60,0],[14,24,60,0,"exports"],[14,31,60,0],[15,4,60,0,"enumerable"],[15,14,60,0],[16,4,60,0,"get"],[16,7,60,0],[16,18,60,0,"get"],[16,19,60,0],[17,6,60,0],[17,13,60,0,"ownExposures"],[17,25,60,0],[18,4,60,0],[19,2,60,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,"_ownExposures"],[23,24,4,29,"_ownExposures"],[23,25,4,30,"instanceId"],[23,35,4,40],[23,37,4,42,"api"],[23,40,4,45],[23,42,4,47],[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,77,5,59,"page"],[24,81,5,63],[24,86,5,68],[25,6,6,8],[25,12,6,14,"emptyStakingExposure"],[25,32,6,34],[25,35,6,37,"api"],[25,38,6,40],[25,39,6,41,"registry"],[25,47,6,49],[25,48,6,50,"createType"],[25,58,6,60],[25,59,6,61],[25,69,6,71],[25,70,6,72],[26,6,7,8],[27,6,8,8],[28,6,9,8],[28,12,9,14,"emptyOptionPage"],[28,27,9,29],[28,30,9,32,"api"],[28,33,9,35],[28,34,9,36,"registry"],[28,42,9,44],[28,43,9,45,"createType"],[28,53,9,55],[28,54,9,56],[28,68,9,70],[28,69,9,71],[29,6,10,8],[29,12,10,14,"emptyOptionMeta"],[29,27,10,29],[29,30,10,32,"api"],[29,33,10,35],[29,34,10,36,"registry"],[29,42,10,44],[29,43,10,45,"createType"],[29,53,10,55],[29,54,10,56],[29,68,10,70],[29,69,10,71],[30,6,11,8],[30,13,11,15,"eras"],[30,17,11,19],[30,18,11,20,"length"],[30,24,11,26],[30,27,12,14],[30,31,12,14,"combineLatest"],[30,36,12,27],[30,37,12,27,"combineLatest"],[30,50,12,27],[30,52,12,28],[31,6,13,16],[32,6,14,16,"api"],[32,9,14,19],[32,10,14,20,"query"],[32,15,14,25],[32,16,14,26,"staking"],[32,23,14,33],[32,24,14,34,"erasStakersClipped"],[32,42,14,52],[32,45,15,22],[32,49,15,22,"combineLatest"],[32,54,15,35],[32,55,15,35,"combineLatest"],[32,68,15,35],[32,70,15,36,"eras"],[32,74,15,40],[32,75,15,41,"map"],[32,78,15,44],[32,79,15,46,"e"],[32,80,15,47],[32,84,15,52,"api"],[32,87,15,55],[32,88,15,56,"query"],[32,93,15,61],[32,94,15,62,"staking"],[32,101,15,69],[32,102,15,70,"erasStakersClipped"],[32,120,15,88],[32,121,15,89,"e"],[32,122,15,90],[32,124,15,92,"accountId"],[32,133,15,101],[32,134,15,102],[32,135,15,103],[32,136,15,104],[32,139,16,22],[32,143,16,22,"of"],[32,148,16,24],[32,149,16,24,"of"],[32,151,16,24],[32,153,16,25,"eras"],[32,157,16,29],[32,158,16,30,"map"],[32,161,16,33],[32,162,16,35,"_"],[32,163,16,36],[32,167,16,41,"emptyStakingExposure"],[32,187,16,61],[32,188,16,62],[32,189,16,63],[32,191,17,16,"api"],[32,194,17,19],[32,195,17,20,"query"],[32,200,17,25],[32,201,17,26,"staking"],[32,208,17,33],[32,209,17,34,"erasStakers"],[32,220,17,45],[32,223,18,22],[32,227,18,22,"combineLatest"],[32,232,18,35],[32,233,18,35,"combineLatest"],[32,246,18,35],[32,248,18,36,"eras"],[32,252,18,40],[32,253,18,41,"map"],[32,256,18,44],[32,257,18,46,"e"],[32,258,18,47],[32,262,18,52,"api"],[32,265,18,55],[32,266,18,56,"query"],[32,271,18,61],[32,272,18,62,"staking"],[32,279,18,69],[32,280,18,70,"erasStakers"],[32,291,18,81],[32,292,18,82,"e"],[32,293,18,83],[32,295,18,85,"accountId"],[32,304,18,94],[32,305,18,95],[32,306,18,96],[32,307,18,97],[32,310,19,22],[32,314,19,22,"of"],[32,319,19,24],[32,320,19,24,"of"],[32,322,19,24],[32,324,19,25,"eras"],[32,328,19,29],[32,329,19,30,"map"],[32,332,19,33],[32,333,19,35,"_"],[32,334,19,36],[32,338,19,41,"emptyStakingExposure"],[32,358,19,61],[32,359,19,62],[32,360,19,63],[32,362,20,16,"api"],[32,365,20,19],[32,366,20,20,"query"],[32,371,20,25],[32,372,20,26,"staking"],[32,379,20,33],[32,380,20,34,"erasStakersPaged"],[32,396,20,50],[32,399,21,22],[32,403,21,22,"combineLatest"],[32,408,21,35],[32,409,21,35,"combineLatest"],[32,422,21,35],[32,424,21,36,"eras"],[32,428,21,40],[32,429,21,41,"map"],[32,432,21,44],[32,433,21,46,"e"],[32,434,21,47],[32,438,21,52,"api"],[32,441,21,55],[32,442,21,56,"query"],[32,447,21,61],[32,448,21,62,"staking"],[32,455,21,69],[32,456,21,70,"erasStakersPaged"],[32,472,21,86],[32,473,21,87,"e"],[32,474,21,88],[32,476,21,90,"accountId"],[32,485,21,99],[32,487,21,101,"page"],[32,491,21,105],[32,492,21,106],[32,493,21,107],[32,494,21,108],[32,497,22,22],[32,501,22,22,"of"],[32,506,22,24],[32,507,22,24,"of"],[32,509,22,24],[32,511,22,25,"eras"],[32,515,22,29],[32,516,22,30,"map"],[32,519,22,33],[32,520,22,35,"_"],[32,521,22,36],[32,525,22,41,"emptyOptionPage"],[32,540,22,56],[32,541,22,57],[32,542,22,58],[32,544,23,16,"api"],[32,547,23,19],[32,548,23,20,"query"],[32,553,23,25],[32,554,23,26,"staking"],[32,561,23,33],[32,562,23,34,"erasStakersOverview"],[32,581,23,53],[32,584,24,22],[32,588,24,22,"combineLatest"],[32,593,24,35],[32,594,24,35,"combineLatest"],[32,607,24,35],[32,609,24,36,"eras"],[32,613,24,40],[32,614,24,41,"map"],[32,617,24,44],[32,618,24,46,"e"],[32,619,24,47],[32,623,24,52,"api"],[32,626,24,55],[32,627,24,56,"query"],[32,632,24,61],[32,633,24,62,"staking"],[32,640,24,69],[32,641,24,70,"erasStakersOverview"],[32,660,24,89],[32,661,24,90,"e"],[32,662,24,91],[32,664,24,93,"accountId"],[32,673,24,102],[32,674,24,103],[32,675,24,104],[32,676,24,105],[32,679,25,22],[32,683,25,22,"of"],[32,688,25,24],[32,689,25,24,"of"],[32,691,25,24],[32,693,25,25,"eras"],[32,697,25,29],[32,698,25,30,"map"],[32,701,25,33],[32,702,25,35,"_"],[32,703,25,36],[32,707,25,41,"emptyOptionMeta"],[32,722,25,56],[32,723,25,57],[32,724,25,58],[32,725,26,13],[32,726,26,14],[32,727,26,15,"pipe"],[32,731,26,19],[32,732,26,20],[32,736,26,20,"map"],[32,741,26,23],[32,742,26,23,"map"],[32,745,26,23],[32,747,26,24],[32,748,26,25],[32,749,26,26,"clp"],[32,752,26,29],[32,754,26,31,"exp"],[32,757,26,34],[32,759,26,36,"paged"],[32,764,26,41],[32,766,26,43,"expMeta"],[32,773,26,50],[32,774,26,51],[32,779,26,56,"eras"],[32,783,26,60],[32,784,26,61,"map"],[32,787,26,64],[32,788,26,65],[32,789,26,66,"era"],[32,792,26,69],[32,794,26,71,"index"],[32,799,26,76],[32,805,26,82],[33,8,26,84,"clipped"],[33,15,26,91],[33,17,26,93,"clp"],[33,20,26,96],[33,21,26,97,"index"],[33,26,26,102],[33,27,26,103],[34,8,26,105,"era"],[34,11,26,108],[35,8,26,110,"exposure"],[35,16,26,118],[35,18,26,120,"exp"],[35,21,26,123],[35,22,26,124,"index"],[35,27,26,129],[35,28,26,130],[36,8,26,132,"exposureMeta"],[36,20,26,144],[36,22,26,146,"expMeta"],[36,29,26,153],[36,30,26,154,"index"],[36,35,26,159],[36,36,26,160],[37,8,26,162,"exposurePaged"],[37,21,26,175],[37,23,26,177,"paged"],[37,28,26,182],[37,29,26,183,"index"],[37,34,26,188],[38,6,26,190],[38,7,26,191],[38,8,26,192],[38,9,26,193],[38,10,26,194],[38,11,26,195],[38,14,27,14],[38,18,27,14,"of"],[38,23,27,16],[38,24,27,16,"of"],[38,26,27,16],[38,28,27,17],[38,30,27,19],[38,31,27,20],[39,4,28,4],[39,5,28,5],[39,6,28,6],[40,2,29,0],[41,2,30,0],[42,0,31,0],[43,0,32,0],[44,0,33,0],[45,0,34,0],[46,0,35,0],[47,0,36,0],[48,0,37,0],[49,0,38,0],[50,0,39,0],[51,0,40,0],[52,0,41,0],[53,0,42,0],[54,0,43,0],[55,0,44,0],[56,0,45,0],[57,2,46,7],[57,8,46,13,"ownExposure"],[57,19,46,24],[57,22,46,27],[57,35,46,41],[57,39,46,41,"firstMemo"],[57,51,46,50],[57,52,46,50,"firstMemo"],[57,61,46,50],[57,63,46,51],[57,64,46,52,"api"],[57,67,46,55],[57,69,46,57,"accountId"],[57,78,46,66],[57,80,46,68,"era"],[57,83,46,71],[57,85,46,73,"page"],[57,89,46,77],[57,94,46,82,"api"],[57,97,46,85],[57,98,46,86,"derive"],[57,104,46,92],[57,105,46,93,"staking"],[57,112,46,100],[57,113,46,101,"_ownExposures"],[57,126,46,114],[57,127,46,115,"accountId"],[57,136,46,124],[57,138,46,126],[57,139,46,127,"era"],[57,142,46,130],[57,143,46,131],[57,145,46,133],[57,149,46,137],[57,151,46,139,"page"],[57,155,46,143],[57,159,46,147],[57,160,46,148],[57,161,46,149],[57,162,46,150],[58,2,47,0],[59,0,48,0],[60,0,49,0],[61,0,50,0],[62,0,51,0],[63,0,52,0],[64,0,53,0],[65,0,54,0],[66,0,55,0],[67,0,56,0],[68,0,57,0],[69,0,58,0],[70,0,59,0],[71,2,60,7],[71,8,60,13,"ownExposures"],[71,20,60,25],[71,23,60,28],[71,36,60,42],[71,40,60,42,"erasHistoricApplyAccount"],[71,47,60,66],[71,48,60,66,"erasHistoricApplyAccount"],[71,72,60,66],[71,74,60,67],[71,89,60,82],[71,90,60,83],[72,0,60,84],[72,3]],"functionMap":{"names":["<global>","_ownExposures","memo$argument_1","eras.map$argument_0","map$argument_0","firstMemo$argument_0"],"mappings":"AAA;OCG;4BCC;6CCU,yDD;kCCC,2BD;6CCE,kDD;kCCC,2BD;6CCE,6DD;kCCC,sBD;6CCE,0DD;kCCC,sBD;wBEC,yCD,+HC,CF;KDE;CDC;mDKiB,kGL"},"hasCjsExports":false},"type":"js/module"}]}