mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 15:41:01 +00:00
1 line
5.0 KiB
Plaintext
1 line
5.0 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":27,"index":27}}],"key":"PnOMrhZAPWoeW3ygrvUJ7ff768Y=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":28},"end":{"line":2,"column":46,"index":74}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":75},"end":{"line":3,"column":40,"index":115}}],"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.info = info;\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 info\n * @description Retrieves all the session and era query and calculates specific values on it as the length of the session and eras.\n * @example\n * ```javascript\n * api.derive.session.info((info) => {\n * console.log(`Session info ${JSON.stringify(info)}`);\n * });\n * ```\n */\n function info(instanceId, api) {\n return (0, _utilIndexJs.memo)(instanceId, () => api.derive.session.indexes().pipe((0, _rxjs.map)(indexes => {\n const sessionLength = api.consts?.babe?.epochDuration || api.registry.createType('u64', 1);\n const sessionsPerEra = api.consts?.staking?.sessionsPerEra || api.registry.createType('SessionIndex', 1);\n return (0, _polkadotUtil.objectSpread)({\n eraLength: api.registry.createType('BlockNumber', sessionsPerEra.mul(sessionLength)),\n isEpoch: !!api.query.babe,\n sessionLength,\n sessionsPerEra\n }, indexes);\n })));\n }\n});","lineCount":33,"map":[[7,2,14,0,"exports"],[7,9,14,0],[7,10,14,0,"info"],[7,14,14,0],[7,17,14,0,"info"],[7,21,14,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,2,14,7],[21,11,14,16,"info"],[21,15,14,20,"info"],[21,16,14,21,"instanceId"],[21,26,14,31],[21,28,14,33,"api"],[21,31,14,36],[21,33,14,38],[22,4,15,4],[22,11,15,11],[22,15,15,11,"memo"],[22,27,15,15],[22,28,15,15,"memo"],[22,32,15,15],[22,34,15,16,"instanceId"],[22,44,15,26],[22,46,15,28],[22,52,15,34,"api"],[22,55,15,37],[22,56,15,38,"derive"],[22,62,15,44],[22,63,15,45,"session"],[22,70,15,52],[22,71,15,53,"indexes"],[22,78,15,60],[22,79,15,61],[22,80,15,62],[22,81,15,63,"pipe"],[22,85,15,67],[22,86,15,68],[22,90,15,68,"map"],[22,95,15,71],[22,96,15,71,"map"],[22,99,15,71],[22,101,15,73,"indexes"],[22,108,15,80],[22,112,15,85],[23,6,16,8],[23,12,16,14,"sessionLength"],[23,25,16,27],[23,28,16,30,"api"],[23,31,16,33],[23,32,16,34,"consts"],[23,38,16,40],[23,40,16,42,"babe"],[23,44,16,46],[23,46,16,48,"epochDuration"],[23,59,16,61],[23,63,16,65,"api"],[23,66,16,68],[23,67,16,69,"registry"],[23,75,16,77],[23,76,16,78,"createType"],[23,86,16,88],[23,87,16,89],[23,92,16,94],[23,94,16,96],[23,95,16,97],[23,96,16,98],[24,6,17,8],[24,12,17,14,"sessionsPerEra"],[24,26,17,28],[24,29,17,31,"api"],[24,32,17,34],[24,33,17,35,"consts"],[24,39,17,41],[24,41,17,43,"staking"],[24,48,17,50],[24,50,17,52,"sessionsPerEra"],[24,64,17,66],[24,68,17,70,"api"],[24,71,17,73],[24,72,17,74,"registry"],[24,80,17,82],[24,81,17,83,"createType"],[24,91,17,93],[24,92,17,94],[24,106,17,108],[24,108,17,110],[24,109,17,111],[24,110,17,112],[25,6,18,8],[25,13,18,15],[25,17,18,15,"objectSpread"],[25,30,18,27],[25,31,18,27,"objectSpread"],[25,43,18,27],[25,45,18,28],[26,8,19,12,"eraLength"],[26,17,19,21],[26,19,19,23,"api"],[26,22,19,26],[26,23,19,27,"registry"],[26,31,19,35],[26,32,19,36,"createType"],[26,42,19,46],[26,43,19,47],[26,56,19,60],[26,58,19,62,"sessionsPerEra"],[26,72,19,76],[26,73,19,77,"mul"],[26,76,19,80],[26,77,19,81,"sessionLength"],[26,90,19,94],[26,91,19,95],[26,92,19,96],[27,8,20,12,"isEpoch"],[27,15,20,19],[27,17,20,21],[27,18,20,22],[27,19,20,23,"api"],[27,22,20,26],[27,23,20,27,"query"],[27,28,20,32],[27,29,20,33,"babe"],[27,33,20,37],[28,8,21,12,"sessionLength"],[28,21,21,25],[29,8,22,12,"sessionsPerEra"],[30,6,23,8],[30,7,23,9],[30,9,23,11,"indexes"],[30,16,23,18],[30,17,23,19],[31,4,24,4],[31,5,24,5],[31,6,24,6],[31,7,24,7],[31,8,24,8],[32,2,25,0],[33,0,25,1],[33,3]],"functionMap":{"names":["<global>","info","memo$argument_1","map$argument_0"],"mappings":"AAA;OCa;4BCC,4CC;KDS,ED;CDC"},"hasCjsExports":false},"type":"js/module"}]} |