mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 01:51:03 +00:00
1 line
4.5 KiB
Plaintext
1 line
4.5 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":121},"end":{"line":4,"column":30,"index":136}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":153},"end":{"line":5,"column":40,"index":178}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":19,"index":199},"end":{"line":6,"column":46,"index":226}}],"key":"H94lp+EitftSFqDHaenrSs5zKB0=","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.overview = overview;\n const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n const index_js_1 = require(_dependencyMap[2], \"../util/index.js\");\n /**\n * @name overview\n * @description Retrieve the staking overview, including elected validators and points earned.\n * @example\n * ```javascript\n * const {\n * activeEra,\n * activeEraStart,\n * currentEra,\n * currentIndex,\n * nextElected,\n * validatorCount,\n * validators,\n * } = await api.derive.staking.overview();\n * ```\n */\n function overview(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, () => (0, rxjs_1.combineLatest)([api.derive.session.indexes(), api.derive.staking.validators()]).pipe((0, rxjs_1.map)(([indexes, {\n nextElected,\n validators\n }]) => (0, util_1.objectSpread)({}, indexes, {\n nextElected,\n validators\n }))));\n }\n});","lineCount":36,"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,"overview"],[7,18,3,16],[7,21,3,19,"overview"],[7,29,3,27],[8,2,4,0],[8,8,4,6,"rxjs_1"],[8,14,4,12],[8,17,4,15,"require"],[8,24,4,22],[8,25,4,22,"_dependencyMap"],[8,39,4,22],[8,50,4,29],[8,51,4,30],[9,2,5,0],[9,8,5,6,"util_1"],[9,14,5,12],[9,17,5,15,"require"],[9,24,5,22],[9,25,5,22,"_dependencyMap"],[9,39,5,22],[9,60,5,39],[9,61,5,40],[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],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,0,14,0],[19,0,15,0],[20,0,16,0],[21,0,17,0],[22,0,18,0],[23,0,19,0],[24,0,20,0],[25,0,21,0],[26,0,22,0],[27,2,23,0],[27,11,23,9,"overview"],[27,19,23,17,"overview"],[27,20,23,18,"instanceId"],[27,30,23,28],[27,32,23,30,"api"],[27,35,23,33],[27,37,23,35],[28,4,24,4],[28,11,24,11],[28,12,24,12],[28,13,24,13],[28,15,24,15,"index_js_1"],[28,25,24,25],[28,26,24,26,"memo"],[28,30,24,30],[28,32,24,32,"instanceId"],[28,42,24,42],[28,44,24,44],[28,50,24,50],[28,51,24,51],[28,52,24,52],[28,54,24,54,"rxjs_1"],[28,60,24,60],[28,61,24,61,"combineLatest"],[28,74,24,74],[28,76,24,76],[28,77,25,8,"api"],[28,80,25,11],[28,81,25,12,"derive"],[28,87,25,18],[28,88,25,19,"session"],[28,95,25,26],[28,96,25,27,"indexes"],[28,103,25,34],[28,104,25,35],[28,105,25,36],[28,107,26,8,"api"],[28,110,26,11],[28,111,26,12,"derive"],[28,117,26,18],[28,118,26,19,"staking"],[28,125,26,26],[28,126,26,27,"validators"],[28,136,26,37],[28,137,26,38],[28,138,26,39],[28,139,27,5],[28,140,27,6],[28,141,27,7,"pipe"],[28,145,27,11],[28,146,27,12],[28,147,27,13],[28,148,27,14],[28,150,27,16,"rxjs_1"],[28,156,27,22],[28,157,27,23,"map"],[28,160,27,26],[28,162,27,28],[28,163,27,29],[28,164,27,30,"indexes"],[28,171,27,37],[28,173,27,39],[29,6,27,41,"nextElected"],[29,17,27,52],[30,6,27,54,"validators"],[31,4,27,65],[31,5,27,66],[31,6,27,67],[31,11,27,72],[31,12,27,73],[31,13,27,74],[31,15,27,76,"util_1"],[31,21,27,82],[31,22,27,83,"objectSpread"],[31,34,27,95],[31,36,27,97],[31,37,27,98],[31,38,27,99],[31,40,27,101,"indexes"],[31,47,27,108],[31,49,27,110],[32,6,28,8,"nextElected"],[32,17,28,19],[33,6,29,8,"validators"],[34,4,30,4],[34,5,30,5],[34,6,30,6],[34,7,30,7],[34,8,30,8],[34,9,30,9],[35,2,31,0],[36,0,31,1],[36,3]],"functionMap":{"names":["<global>","overview","<anonymous>"],"mappings":"AAA;ACsB;4CCC;QDM;CDC"},"hasCjsExports":true},"type":"js/module"}]} |