mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 15:41:01 +00:00
1 line
8.4 KiB
Plaintext
1 line
8.4 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._eraPrefs = _eraPrefs;\n Object.defineProperty(exports, \"eraPrefs\", {\n enumerable: true,\n get: function () {\n return eraPrefs;\n }\n });\n Object.defineProperty(exports, \"_erasPrefs\", {\n enumerable: true,\n get: function () {\n return _erasPrefs;\n }\n });\n Object.defineProperty(exports, \"erasPrefs\", {\n enumerable: true,\n get: function () {\n return erasPrefs;\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 = 'eraPrefs';\n function mapPrefs(era, all) {\n const validators = {};\n all.forEach(([key, prefs]) => {\n validators[key.args[1].toString()] = prefs;\n });\n return {\n era,\n validators\n };\n }\n function _eraPrefs(instanceId, api) {\n return (0, _utilIndexJs.memo)(instanceId, (era, withActive) => {\n const [cacheKey, cached] = (0, _cacheJs.getEraCache)(CACHE_KEY, era, withActive);\n return cached ? (0, _rxjs.of)(cached) : api.query.staking.erasValidatorPrefs.entries(era).pipe((0, _rxjs.map)(r => (0, _cacheJs.setEraCache)(cacheKey, withActive, mapPrefs(era, r))));\n });\n }\n /**\n * @name eraPrefs\n * @description Retrieves the validators commission preferences for a given staking era.\n * @param {EraIndex} era The staking era to query.\n * @example\n * ```javascript\n * const era = api.createType(\"EraIndex\", 1000);\n * const prefs = await api.derive.staking.eraPrefs(era);\n * console.log(JSON.stringify(prefs));\n * ```\n */\n const eraPrefs = /*#__PURE__*/(0, _utilJs.singleEra)('_eraPrefs');\n const _erasPrefs = /*#__PURE__*/(0, _utilJs.combineEras)('_eraPrefs');\n /**\n * @name erasPrefs\n * @description Retrieves validators commission preferences for multiple past staking eras\n * @param {boolean} withActive? (Optional) Whether to include the active era in the result.\n * @example\n * ```javascript\n * const prefs = await api.derive.staking.erasPrefs(true);\n * ```\n */\n const erasPrefs = /*#__PURE__*/(0, _utilJs.erasHistoricApply)('_erasPrefs');\n});","lineCount":70,"map":[[7,2,13,0,"exports"],[7,9,13,0],[7,10,13,0,"_eraPrefs"],[7,19,13,0],[7,22,13,0,"_eraPrefs"],[7,31,13,0],[8,2,32,0,"Object"],[8,8,32,0],[8,9,32,0,"defineProperty"],[8,23,32,0],[8,24,32,0,"exports"],[8,31,32,0],[9,4,32,0,"enumerable"],[9,14,32,0],[10,4,32,0,"get"],[10,7,32,0],[10,18,32,0,"get"],[10,19,32,0],[11,6,32,0],[11,13,32,0,"eraPrefs"],[11,21,32,0],[12,4,32,0],[13,2,32,0],[14,2,33,0,"Object"],[14,8,33,0],[14,9,33,0,"defineProperty"],[14,23,33,0],[14,24,33,0,"exports"],[14,31,33,0],[15,4,33,0,"enumerable"],[15,14,33,0],[16,4,33,0,"get"],[16,7,33,0],[16,18,33,0,"get"],[16,19,33,0],[17,6,33,0],[17,13,33,0,"_erasPrefs"],[17,23,33,0],[18,4,33,0],[19,2,33,0],[20,2,43,0,"Object"],[20,8,43,0],[20,9,43,0,"defineProperty"],[20,23,43,0],[20,24,43,0,"exports"],[20,31,43,0],[21,4,43,0,"enumerable"],[21,14,43,0],[22,4,43,0,"get"],[22,7,43,0],[22,18,43,0,"get"],[22,19,43,0],[23,6,43,0],[23,13,43,0,"erasPrefs"],[23,22,43,0],[24,4,43,0],[25,2,43,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,30,5,28],[31,2,6,0],[31,11,6,9,"mapPrefs"],[31,19,6,17,"mapPrefs"],[31,20,6,18,"era"],[31,23,6,21],[31,25,6,23,"all"],[31,28,6,26],[31,30,6,28],[32,4,7,4],[32,10,7,10,"validators"],[32,20,7,20],[32,23,7,23],[32,24,7,24],[32,25,7,25],[33,4,8,4,"all"],[33,7,8,7],[33,8,8,8,"forEach"],[33,15,8,15],[33,16,8,16],[33,17,8,17],[33,18,8,18,"key"],[33,21,8,21],[33,23,8,23,"prefs"],[33,28,8,28],[33,29,8,29],[33,34,8,34],[34,6,9,8,"validators"],[34,16,9,18],[34,17,9,19,"key"],[34,20,9,22],[34,21,9,23,"args"],[34,25,9,27],[34,26,9,28],[34,27,9,29],[34,28,9,30],[34,29,9,31,"toString"],[34,37,9,39],[34,38,9,40],[34,39,9,41],[34,40,9,42],[34,43,9,45,"prefs"],[34,48,9,50],[35,4,10,4],[35,5,10,5],[35,6,10,6],[36,4,11,4],[36,11,11,11],[37,6,11,13,"era"],[37,9,11,16],[38,6,11,18,"validators"],[39,4,11,29],[39,5,11,30],[40,2,12,0],[41,2,13,7],[41,11,13,16,"_eraPrefs"],[41,20,13,25,"_eraPrefs"],[41,21,13,26,"instanceId"],[41,31,13,36],[41,33,13,38,"api"],[41,36,13,41],[41,38,13,43],[42,4,14,4],[42,11,14,11],[42,15,14,11,"memo"],[42,27,14,15],[42,28,14,15,"memo"],[42,32,14,15],[42,34,14,16,"instanceId"],[42,44,14,26],[42,46,14,28],[42,47,14,29,"era"],[42,50,14,32],[42,52,14,34,"withActive"],[42,62,14,44],[42,67,14,49],[43,6,15,8],[43,12,15,14],[43,13,15,15,"cacheKey"],[43,21,15,23],[43,23,15,25,"cached"],[43,29,15,31],[43,30,15,32],[43,33,15,35],[43,37,15,35,"getEraCache"],[43,45,15,46],[43,46,15,46,"getEraCache"],[43,57,15,46],[43,59,15,47,"CACHE_KEY"],[43,68,15,56],[43,70,15,58,"era"],[43,73,15,61],[43,75,15,63,"withActive"],[43,85,15,73],[43,86,15,74],[44,6,16,8],[44,13,16,15,"cached"],[44,19,16,21],[44,22,17,14],[44,26,17,14,"of"],[44,31,17,16],[44,32,17,16,"of"],[44,34,17,16],[44,36,17,17,"cached"],[44,42,17,23],[44,43,17,24],[44,46,18,14,"api"],[44,49,18,17],[44,50,18,18,"query"],[44,55,18,23],[44,56,18,24,"staking"],[44,63,18,31],[44,64,18,32,"erasValidatorPrefs"],[44,82,18,50],[44,83,18,51,"entries"],[44,90,18,58],[44,91,18,59,"era"],[44,94,18,62],[44,95,18,63],[44,96,18,64,"pipe"],[44,100,18,68],[44,101,18,69],[44,105,18,69,"map"],[44,110,18,72],[44,111,18,72,"map"],[44,114,18,72],[44,116,18,74,"r"],[44,117,18,75],[44,121,18,80],[44,125,18,80,"setEraCache"],[44,133,18,91],[44,134,18,91,"setEraCache"],[44,145,18,91],[44,147,18,92,"cacheKey"],[44,155,18,100],[44,157,18,102,"withActive"],[44,167,18,112],[44,169,18,114,"mapPrefs"],[44,177,18,122],[44,178,18,123,"era"],[44,181,18,126],[44,183,18,128,"r"],[44,184,18,129],[44,185,18,130],[44,186,18,131],[44,187,18,132],[44,188,18,133],[45,4,19,4],[45,5,19,5],[45,6,19,6],[46,2,20,0],[47,2,21,0],[48,0,22,0],[49,0,23,0],[50,0,24,0],[51,0,25,0],[52,0,26,0],[53,0,27,0],[54,0,28,0],[55,0,29,0],[56,0,30,0],[57,0,31,0],[58,2,32,7],[58,8,32,13,"eraPrefs"],[58,16,32,21],[58,19,32,24],[58,32,32,38],[58,36,32,38,"singleEra"],[58,43,32,47],[58,44,32,47,"singleEra"],[58,53,32,47],[58,55,32,48],[58,66,32,59],[58,67,32,60],[59,2,33,7],[59,8,33,13,"_erasPrefs"],[59,18,33,23],[59,21,33,26],[59,34,33,40],[59,38,33,40,"combineEras"],[59,45,33,51],[59,46,33,51,"combineEras"],[59,57,33,51],[59,59,33,52],[59,70,33,63],[59,71,33,64],[60,2,34,0],[61,0,35,0],[62,0,36,0],[63,0,37,0],[64,0,38,0],[65,0,39,0],[66,0,40,0],[67,0,41,0],[68,0,42,0],[69,2,43,7],[69,8,43,13,"erasPrefs"],[69,17,43,22],[69,20,43,25],[69,33,43,39],[69,37,43,39,"erasHistoricApply"],[69,44,43,56],[69,45,43,56,"erasHistoricApply"],[69,62,43,56],[69,64,43,57],[69,76,43,69],[69,77,43,70],[70,0,43,71],[70,3]],"functionMap":{"names":["<global>","mapPrefs","all.forEach$argument_0","_eraPrefs","memo$argument_1","map$argument_0"],"mappings":"AAA;ACK;gBCE;KDE;CDE;OGC;4BCC;yECI,0DD;KDC;CHC"},"hasCjsExports":false},"type":"js/module"}]} |