mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 21:31:02 +00:00
1 line
4.1 KiB
Plaintext
1 line
4.1 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":42,"index":42}}],"key":"PnOMrhZAPWoeW3ygrvUJ7ff768Y=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":43},"end":{"line":2,"column":46,"index":89}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":90},"end":{"line":3,"column":40,"index":130}}],"key":"GRJlO1cmIj14nBxcasNpiq30og4=","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 var _rxjs = require(_dependencyMap[0], \"rxjs\");\n var _polkadotUtil = require(_dependencyMap[1], \"@polkadot/util\");\n var _utilIndexJs = 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, _utilIndexJs.memo)(instanceId, () => (0, _rxjs.combineLatest)([api.derive.session.indexes(), api.derive.staking.validators()]).pipe((0, _rxjs.map)(([indexes, {\n nextElected,\n validators\n }]) => (0, _polkadotUtil.objectSpread)({}, indexes, {\n nextElected,\n validators\n }))));\n }\n});","lineCount":36,"map":[[7,2,20,0,"exports"],[7,9,20,0],[7,10,20,0,"overview"],[7,18,20,0],[7,21,20,0,"overview"],[7,29,20,0],[8,2,1,0],[8,6,1,0,"_rxjs"],[8,11,1,0],[8,14,1,0,"require"],[8,21,1,0],[8,22,1,0,"_dependencyMap"],[8,36,1,0],[9,2,2,0],[9,6,2,0,"_polkadotUtil"],[9,19,2,0],[9,22,2,0,"require"],[9,29,2,0],[9,30,2,0,"_dependencyMap"],[9,44,2,0],[10,2,3,0],[10,6,3,0,"_utilIndexJs"],[10,18,3,0],[10,21,3,0,"require"],[10,28,3,0],[10,29,3,0,"_dependencyMap"],[10,43,3,0],[11,2,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,0,14,0],[22,0,15,0],[23,0,16,0],[24,0,17,0],[25,0,18,0],[26,0,19,0],[27,2,20,7],[27,11,20,16,"overview"],[27,19,20,24,"overview"],[27,20,20,25,"instanceId"],[27,30,20,35],[27,32,20,37,"api"],[27,35,20,40],[27,37,20,42],[28,4,21,4],[28,11,21,11],[28,15,21,11,"memo"],[28,27,21,15],[28,28,21,15,"memo"],[28,32,21,15],[28,34,21,16,"instanceId"],[28,44,21,26],[28,46,21,28],[28,52,21,34],[28,56,21,34,"combineLatest"],[28,61,21,47],[28,62,21,47,"combineLatest"],[28,75,21,47],[28,77,21,48],[28,78,22,8,"api"],[28,81,22,11],[28,82,22,12,"derive"],[28,88,22,18],[28,89,22,19,"session"],[28,96,22,26],[28,97,22,27,"indexes"],[28,104,22,34],[28,105,22,35],[28,106,22,36],[28,108,23,8,"api"],[28,111,23,11],[28,112,23,12,"derive"],[28,118,23,18],[28,119,23,19,"staking"],[28,126,23,26],[28,127,23,27,"validators"],[28,137,23,37],[28,138,23,38],[28,139,23,39],[28,140,24,5],[28,141,24,6],[28,142,24,7,"pipe"],[28,146,24,11],[28,147,24,12],[28,151,24,12,"map"],[28,156,24,15],[28,157,24,15,"map"],[28,160,24,15],[28,162,24,16],[28,163,24,17],[28,164,24,18,"indexes"],[28,171,24,25],[28,173,24,27],[29,6,24,29,"nextElected"],[29,17,24,40],[30,6,24,42,"validators"],[31,4,24,53],[31,5,24,54],[31,6,24,55],[31,11,24,60],[31,15,24,60,"objectSpread"],[31,28,24,72],[31,29,24,72,"objectSpread"],[31,41,24,72],[31,43,24,73],[31,44,24,74],[31,45,24,75],[31,47,24,77,"indexes"],[31,54,24,84],[31,56,24,86],[32,6,25,8,"nextElected"],[32,17,25,19],[33,6,26,8,"validators"],[34,4,27,4],[34,5,27,5],[34,6,27,6],[34,7,27,7],[34,8,27,8],[34,9,27,9],[35,2,28,0],[36,0,28,1],[36,3]],"functionMap":{"names":["<global>","overview","memo$argument_1","map$argument_0"],"mappings":"AAA;OCmB;4BCC;gBCG;MDG,ED;CDC"},"hasCjsExports":false},"type":"js/module"}]} |