Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/b9/d2282c6db9dff2043bd58757abad1252dce193ed015bd326a5133b7453bf6dc3049f93
T
2025-10-24 02:48:32 +00:00

1 line
15 KiB
Plaintext

{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":31,"index":31}}],"key":"PnOMrhZAPWoeW3ygrvUJ7ff768Y=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":32},"end":{"line":2,"column":40,"index":72}}],"key":"GRJlO1cmIj14nBxcasNpiq30og4=","exportNames":["*"],"imports":1}},{"name":"./cache.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":73},"end":{"line":3,"column":54,"index":127}}],"key":"dZLm35UbXvEUvIJApU9WuH7CEfg=","exportNames":["*"],"imports":1}},{"name":"./util.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":4,"column":0,"index":128},"end":{"line":4,"column":70,"index":198}}],"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._eraExposure = _eraExposure;\n Object.defineProperty(exports, \"eraExposure\", {\n enumerable: true,\n get: function () {\n return eraExposure;\n }\n });\n Object.defineProperty(exports, \"_erasExposure\", {\n enumerable: true,\n get: function () {\n return _erasExposure;\n }\n });\n Object.defineProperty(exports, \"erasExposure\", {\n enumerable: true,\n get: function () {\n return erasExposure;\n }\n });\n var _rxjs = require(_dependencyMap[0], \"rxjs\");\n var _utilIndexJs = require(_dependencyMap[1], \"../util/index.js\");\n var _cacheJs = require(_dependencyMap[2], \"./cache.js\");\n var _utilJs = require(_dependencyMap[3], \"./util.js\");\n const CACHE_KEY = 'eraExposure';\n function mapStakersClipped(era, stakers) {\n const nominators = {};\n const validators = {};\n stakers.forEach(([key, exposure]) => {\n const validatorId = key.args[1].toString();\n validators[validatorId] = exposure;\n exposure.others.forEach(({\n who\n }, validatorIndex) => {\n const nominatorId = who.toString();\n nominators[nominatorId] = nominators[nominatorId] || [];\n nominators[nominatorId].push({\n validatorId,\n validatorIndex\n });\n });\n });\n return {\n era,\n nominators,\n validators\n };\n }\n function mapStakersPaged(era, stakers) {\n const nominators = {};\n const validators = {};\n stakers.forEach(([key, exposureOpt]) => {\n if (exposureOpt.isSome) {\n const validatorId = key.args[1].toString();\n const exposure = exposureOpt.unwrap();\n validators[validatorId] = exposure;\n exposure.others.forEach(({\n who\n }, validatorIndex) => {\n const nominatorId = who.toString();\n nominators[nominatorId] = nominators[nominatorId] || [];\n nominators[nominatorId].push({\n validatorId,\n validatorIndex\n });\n });\n }\n });\n return {\n era,\n nominators,\n validators\n };\n }\n /**\n * erasStakersClipped will be deprecated and replaced with erasStakersPaged. Therefore support is given for both\n * storage queries until erasStakersClipped has been completely out of use.\n */\n function _eraExposure(instanceId, api) {\n return (0, _utilIndexJs.memo)(instanceId, (era, withActive = false) => {\n const [cacheKey, cached] = (0, _cacheJs.getEraCache)(CACHE_KEY, era, withActive);\n return cached ? (0, _rxjs.of)(cached) : api.query.staking.erasStakersPaged ? api.query.staking.erasStakersPaged.entries(era).pipe((0, _rxjs.map)(r => (0, _cacheJs.setEraCache)(cacheKey, withActive, mapStakersPaged(era, r)))) : api.query.staking.erasStakersClipped.entries(era).pipe((0, _rxjs.map)(r => (0, _cacheJs.setEraCache)(cacheKey, withActive, mapStakersClipped(era, r))));\n });\n }\n /**\n * @name eraExposure\n * @description Retrieves the staking exposure (nominators and total stake) for a specific era.\n * @param {EraIndex} eras The staking era to query.\n * @example\n * ```javascript\n * const era = api.createType(\"EraIndex\", 1000);\n * const exposure = await api.derive.staking.eraExposure(era);\n * ```\n */\n const eraExposure = /*#__PURE__*/(0, _utilJs.singleEra)('_eraExposure');\n const _erasExposure = /*#__PURE__*/(0, _utilJs.combineEras)('_eraExposure');\n /**\n * @name erasExposure\n * @description Retrieves staking exposure details for multiple past eras.\n * @param {boolean} withActive? (Optional) Whether to include the active era in the result.\n * @example\n * ```javascript\n * const exposure = await api.derive.staking.erasExposure(true);\n * ```\n */\n const erasExposure = /*#__PURE__*/(0, _utilJs.erasHistoricApply)('_erasExposure');\n});","lineCount":112,"map":[[7,2,41,0,"exports"],[7,9,41,0],[7,10,41,0,"_eraExposure"],[7,22,41,0],[7,25,41,0,"_eraExposure"],[7,37,41,0],[8,2,61,0,"Object"],[8,8,61,0],[8,9,61,0,"defineProperty"],[8,23,61,0],[8,24,61,0,"exports"],[8,31,61,0],[9,4,61,0,"enumerable"],[9,14,61,0],[10,4,61,0,"get"],[10,7,61,0],[10,18,61,0,"get"],[10,19,61,0],[11,6,61,0],[11,13,61,0,"eraExposure"],[11,24,61,0],[12,4,61,0],[13,2,61,0],[14,2,62,0,"Object"],[14,8,62,0],[14,9,62,0,"defineProperty"],[14,23,62,0],[14,24,62,0,"exports"],[14,31,62,0],[15,4,62,0,"enumerable"],[15,14,62,0],[16,4,62,0,"get"],[16,7,62,0],[16,18,62,0,"get"],[16,19,62,0],[17,6,62,0],[17,13,62,0,"_erasExposure"],[17,26,62,0],[18,4,62,0],[19,2,62,0],[20,2,72,0,"Object"],[20,8,72,0],[20,9,72,0,"defineProperty"],[20,23,72,0],[20,24,72,0,"exports"],[20,31,72,0],[21,4,72,0,"enumerable"],[21,14,72,0],[22,4,72,0,"get"],[22,7,72,0],[22,18,72,0,"get"],[22,19,72,0],[23,6,72,0],[23,13,72,0,"erasExposure"],[23,25,72,0],[24,4,72,0],[25,2,72,0],[26,2,1,0],[26,6,1,0,"_rxjs"],[26,11,1,0],[26,14,1,0,"require"],[26,21,1,0],[26,22,1,0,"_dependencyMap"],[26,36,1,0],[27,2,2,0],[27,6,2,0,"_utilIndexJs"],[27,18,2,0],[27,21,2,0,"require"],[27,28,2,0],[27,29,2,0,"_dependencyMap"],[27,43,2,0],[28,2,3,0],[28,6,3,0,"_cacheJs"],[28,14,3,0],[28,17,3,0,"require"],[28,24,3,0],[28,25,3,0,"_dependencyMap"],[28,39,3,0],[29,2,4,0],[29,6,4,0,"_utilJs"],[29,13,4,0],[29,16,4,0,"require"],[29,23,4,0],[29,24,4,0,"_dependencyMap"],[29,38,4,0],[30,2,5,0],[30,8,5,6,"CACHE_KEY"],[30,17,5,15],[30,20,5,18],[30,33,5,31],[31,2,6,0],[31,11,6,9,"mapStakersClipped"],[31,28,6,26,"mapStakersClipped"],[31,29,6,27,"era"],[31,32,6,30],[31,34,6,32,"stakers"],[31,41,6,39],[31,43,6,41],[32,4,7,4],[32,10,7,10,"nominators"],[32,20,7,20],[32,23,7,23],[32,24,7,24],[32,25,7,25],[33,4,8,4],[33,10,8,10,"validators"],[33,20,8,20],[33,23,8,23],[33,24,8,24],[33,25,8,25],[34,4,9,4,"stakers"],[34,11,9,11],[34,12,9,12,"forEach"],[34,19,9,19],[34,20,9,20],[34,21,9,21],[34,22,9,22,"key"],[34,25,9,25],[34,27,9,27,"exposure"],[34,35,9,35],[34,36,9,36],[34,41,9,41],[35,6,10,8],[35,12,10,14,"validatorId"],[35,23,10,25],[35,26,10,28,"key"],[35,29,10,31],[35,30,10,32,"args"],[35,34,10,36],[35,35,10,37],[35,36,10,38],[35,37,10,39],[35,38,10,40,"toString"],[35,46,10,48],[35,47,10,49],[35,48,10,50],[36,6,11,8,"validators"],[36,16,11,18],[36,17,11,19,"validatorId"],[36,28,11,30],[36,29,11,31],[36,32,11,34,"exposure"],[36,40,11,42],[37,6,12,8,"exposure"],[37,14,12,16],[37,15,12,17,"others"],[37,21,12,23],[37,22,12,24,"forEach"],[37,29,12,31],[37,30,12,32],[37,31,12,33],[38,8,12,35,"who"],[39,6,12,39],[39,7,12,40],[39,9,12,42,"validatorIndex"],[39,23,12,56],[39,28,12,61],[40,8,13,12],[40,14,13,18,"nominatorId"],[40,25,13,29],[40,28,13,32,"who"],[40,31,13,35],[40,32,13,36,"toString"],[40,40,13,44],[40,41,13,45],[40,42,13,46],[41,8,14,12,"nominators"],[41,18,14,22],[41,19,14,23,"nominatorId"],[41,30,14,34],[41,31,14,35],[41,34,14,38,"nominators"],[41,44,14,48],[41,45,14,49,"nominatorId"],[41,56,14,60],[41,57,14,61],[41,61,14,65],[41,63,14,67],[42,8,15,12,"nominators"],[42,18,15,22],[42,19,15,23,"nominatorId"],[42,30,15,34],[42,31,15,35],[42,32,15,36,"push"],[42,36,15,40],[42,37,15,41],[43,10,15,43,"validatorId"],[43,21,15,54],[44,10,15,56,"validatorIndex"],[45,8,15,71],[45,9,15,72],[45,10,15,73],[46,6,16,8],[46,7,16,9],[46,8,16,10],[47,4,17,4],[47,5,17,5],[47,6,17,6],[48,4,18,4],[48,11,18,11],[49,6,18,13,"era"],[49,9,18,16],[50,6,18,18,"nominators"],[50,16,18,28],[51,6,18,30,"validators"],[52,4,18,41],[52,5,18,42],[53,2,19,0],[54,2,20,0],[54,11,20,9,"mapStakersPaged"],[54,26,20,24,"mapStakersPaged"],[54,27,20,25,"era"],[54,30,20,28],[54,32,20,30,"stakers"],[54,39,20,37],[54,41,20,39],[55,4,21,4],[55,10,21,10,"nominators"],[55,20,21,20],[55,23,21,23],[55,24,21,24],[55,25,21,25],[56,4,22,4],[56,10,22,10,"validators"],[56,20,22,20],[56,23,22,23],[56,24,22,24],[56,25,22,25],[57,4,23,4,"stakers"],[57,11,23,11],[57,12,23,12,"forEach"],[57,19,23,19],[57,20,23,20],[57,21,23,21],[57,22,23,22,"key"],[57,25,23,25],[57,27,23,27,"exposureOpt"],[57,38,23,38],[57,39,23,39],[57,44,23,44],[58,6,24,8],[58,10,24,12,"exposureOpt"],[58,21,24,23],[58,22,24,24,"isSome"],[58,28,24,30],[58,30,24,32],[59,8,25,12],[59,14,25,18,"validatorId"],[59,25,25,29],[59,28,25,32,"key"],[59,31,25,35],[59,32,25,36,"args"],[59,36,25,40],[59,37,25,41],[59,38,25,42],[59,39,25,43],[59,40,25,44,"toString"],[59,48,25,52],[59,49,25,53],[59,50,25,54],[60,8,26,12],[60,14,26,18,"exposure"],[60,22,26,26],[60,25,26,29,"exposureOpt"],[60,36,26,40],[60,37,26,41,"unwrap"],[60,43,26,47],[60,44,26,48],[60,45,26,49],[61,8,27,12,"validators"],[61,18,27,22],[61,19,27,23,"validatorId"],[61,30,27,34],[61,31,27,35],[61,34,27,38,"exposure"],[61,42,27,46],[62,8,28,12,"exposure"],[62,16,28,20],[62,17,28,21,"others"],[62,23,28,27],[62,24,28,28,"forEach"],[62,31,28,35],[62,32,28,36],[62,33,28,37],[63,10,28,39,"who"],[64,8,28,43],[64,9,28,44],[64,11,28,46,"validatorIndex"],[64,25,28,60],[64,30,28,65],[65,10,29,16],[65,16,29,22,"nominatorId"],[65,27,29,33],[65,30,29,36,"who"],[65,33,29,39],[65,34,29,40,"toString"],[65,42,29,48],[65,43,29,49],[65,44,29,50],[66,10,30,16,"nominators"],[66,20,30,26],[66,21,30,27,"nominatorId"],[66,32,30,38],[66,33,30,39],[66,36,30,42,"nominators"],[66,46,30,52],[66,47,30,53,"nominatorId"],[66,58,30,64],[66,59,30,65],[66,63,30,69],[66,65,30,71],[67,10,31,16,"nominators"],[67,20,31,26],[67,21,31,27,"nominatorId"],[67,32,31,38],[67,33,31,39],[67,34,31,40,"push"],[67,38,31,44],[67,39,31,45],[68,12,31,47,"validatorId"],[68,23,31,58],[69,12,31,60,"validatorIndex"],[70,10,31,75],[70,11,31,76],[70,12,31,77],[71,8,32,12],[71,9,32,13],[71,10,32,14],[72,6,33,8],[73,4,34,4],[73,5,34,5],[73,6,34,6],[74,4,35,4],[74,11,35,11],[75,6,35,13,"era"],[75,9,35,16],[76,6,35,18,"nominators"],[76,16,35,28],[77,6,35,30,"validators"],[78,4,35,41],[78,5,35,42],[79,2,36,0],[80,2,37,0],[81,0,38,0],[82,0,39,0],[83,0,40,0],[84,2,41,7],[84,11,41,16,"_eraExposure"],[84,23,41,28,"_eraExposure"],[84,24,41,29,"instanceId"],[84,34,41,39],[84,36,41,41,"api"],[84,39,41,44],[84,41,41,46],[85,4,42,4],[85,11,42,11],[85,15,42,11,"memo"],[85,27,42,15],[85,28,42,15,"memo"],[85,32,42,15],[85,34,42,16,"instanceId"],[85,44,42,26],[85,46,42,28],[85,47,42,29,"era"],[85,50,42,32],[85,52,42,34,"withActive"],[85,62,42,44],[85,65,42,47],[85,70,42,52],[85,75,42,57],[86,6,43,8],[86,12,43,14],[86,13,43,15,"cacheKey"],[86,21,43,23],[86,23,43,25,"cached"],[86,29,43,31],[86,30,43,32],[86,33,43,35],[86,37,43,35,"getEraCache"],[86,45,43,46],[86,46,43,46,"getEraCache"],[86,57,43,46],[86,59,43,47,"CACHE_KEY"],[86,68,43,56],[86,70,43,58,"era"],[86,73,43,61],[86,75,43,63,"withActive"],[86,85,43,73],[86,86,43,74],[87,6,44,8],[87,13,44,15,"cached"],[87,19,44,21],[87,22,45,14],[87,26,45,14,"of"],[87,31,45,16],[87,32,45,16,"of"],[87,34,45,16],[87,36,45,17,"cached"],[87,42,45,23],[87,43,45,24],[87,46,46,14,"api"],[87,49,46,17],[87,50,46,18,"query"],[87,55,46,23],[87,56,46,24,"staking"],[87,63,46,31],[87,64,46,32,"erasStakersPaged"],[87,80,46,48],[87,83,47,18,"api"],[87,86,47,21],[87,87,47,22,"query"],[87,92,47,27],[87,93,47,28,"staking"],[87,100,47,35],[87,101,47,36,"erasStakersPaged"],[87,117,47,52],[87,118,47,53,"entries"],[87,125,47,60],[87,126,47,61,"era"],[87,129,47,64],[87,130,47,65],[87,131,47,66,"pipe"],[87,135,47,70],[87,136,47,71],[87,140,47,71,"map"],[87,145,47,74],[87,146,47,74,"map"],[87,149,47,74],[87,151,47,76,"r"],[87,152,47,77],[87,156,47,82],[87,160,47,82,"setEraCache"],[87,168,47,93],[87,169,47,93,"setEraCache"],[87,180,47,93],[87,182,47,94,"cacheKey"],[87,190,47,102],[87,192,47,104,"withActive"],[87,202,47,114],[87,204,47,116,"mapStakersPaged"],[87,219,47,131],[87,220,47,132,"era"],[87,223,47,135],[87,225,47,137,"r"],[87,226,47,138],[87,227,47,139],[87,228,47,140],[87,229,47,141],[87,230,47,142],[87,233,48,18,"api"],[87,236,48,21],[87,237,48,22,"query"],[87,242,48,27],[87,243,48,28,"staking"],[87,250,48,35],[87,251,48,36,"erasStakersClipped"],[87,269,48,54],[87,270,48,55,"entries"],[87,277,48,62],[87,278,48,63,"era"],[87,281,48,66],[87,282,48,67],[87,283,48,68,"pipe"],[87,287,48,72],[87,288,48,73],[87,292,48,73,"map"],[87,297,48,76],[87,298,48,76,"map"],[87,301,48,76],[87,303,48,78,"r"],[87,304,48,79],[87,308,48,84],[87,312,48,84,"setEraCache"],[87,320,48,95],[87,321,48,95,"setEraCache"],[87,332,48,95],[87,334,48,96,"cacheKey"],[87,342,48,104],[87,344,48,106,"withActive"],[87,354,48,116],[87,356,48,118,"mapStakersClipped"],[87,373,48,135],[87,374,48,136,"era"],[87,377,48,139],[87,379,48,141,"r"],[87,380,48,142],[87,381,48,143],[87,382,48,144],[87,383,48,145],[87,384,48,146],[88,4,49,4],[88,5,49,5],[88,6,49,6],[89,2,50,0],[90,2,51,0],[91,0,52,0],[92,0,53,0],[93,0,54,0],[94,0,55,0],[95,0,56,0],[96,0,57,0],[97,0,58,0],[98,0,59,0],[99,0,60,0],[100,2,61,7],[100,8,61,13,"eraExposure"],[100,19,61,24],[100,22,61,27],[100,35,61,41],[100,39,61,41,"singleEra"],[100,46,61,50],[100,47,61,50,"singleEra"],[100,56,61,50],[100,58,61,51],[100,72,61,65],[100,73,61,66],[101,2,62,7],[101,8,62,13,"_erasExposure"],[101,21,62,26],[101,24,62,29],[101,37,62,43],[101,41,62,43,"combineEras"],[101,48,62,54],[101,49,62,54,"combineEras"],[101,60,62,54],[101,62,62,55],[101,76,62,69],[101,77,62,70],[102,2,63,0],[103,0,64,0],[104,0,65,0],[105,0,66,0],[106,0,67,0],[107,0,68,0],[108,0,69,0],[109,0,70,0],[110,0,71,0],[111,2,72,7],[111,8,72,13,"erasExposure"],[111,20,72,25],[111,23,72,28],[111,36,72,42],[111,40,72,42,"erasHistoricApply"],[111,47,72,59],[111,48,72,59,"erasHistoricApply"],[111,65,72,59],[111,67,72,60],[111,82,72,75],[111,83,72,76],[112,0,72,77],[112,3]],"functionMap":{"names":["<global>","mapStakersClipped","stakers.forEach$argument_0","exposure.others.forEach$argument_0","mapStakersPaged","_eraExposure","memo$argument_1","map$argument_0"],"mappings":"AAA;ACK;oBCG;gCCG;SDI;KDC;CDE;AIC;oBFG;oCCK;aDI;KEE;CJE;OKK;4BCC;2ECK,iED;6ECC,mED;KDC;CLC"},"hasCjsExports":false},"type":"js/module"}]}