mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +00:00
1 line
3.6 KiB
Plaintext
1 line
3.6 KiB
Plaintext
{"dependencies":[{"name":"rxjs","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":137},"end":{"line":4,"column":30,"index":152}}],"key":"atDzfUGaJNRNtwyVumomzH/5ygw=","exportNames":["*"],"imports":1}},{"name":"../util/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":173},"end":{"line":5,"column":46,"index":200}}],"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.getBlockByNumber = getBlockByNumber;\n var rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n var index_js_1 = require(_dependencyMap[1], \"../util/index.js\");\n /**\n * @name getBlockByNumber\n * @param {( BN | bigint | Uint8Array | number | string )} blockNumber\n * @description Get a specific block (e.g. rpc.chain.getBlock) and extend it with the author by block number\n * @example\n * ```javascript\n * const { author, block } = await api.derive.chain.getBlockByNumber(123);\n *\n * console.log(`block #${block.header.number} was authored by ${author}`);\n * ```\n */\n function getBlockByNumber(instanceId, api) {\n return (0, index_js_1.memo)(instanceId, function (blockNumber) {\n return api.rpc.chain.getBlockHash(blockNumber).pipe((0, rxjs_1.switchMap)(function (h) {\n return api.derive.chain.getBlock(h);\n }));\n });\n }\n});","lineCount":28,"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,"getBlockByNumber"],[7,26,3,24],[7,29,3,27,"getBlockByNumber"],[7,45,3,43],[8,2,4,0],[8,6,4,6,"rxjs_1"],[8,12,4,12],[8,15,4,15,"require"],[8,22,4,22],[8,23,4,22,"_dependencyMap"],[8,37,4,22],[8,48,4,29],[8,49,4,30],[9,2,5,0],[9,6,5,6,"index_js_1"],[9,16,5,16],[9,19,5,19,"require"],[9,26,5,26],[9,27,5,26,"_dependencyMap"],[9,41,5,26],[9,64,5,45],[9,65,5,46],[10,2,6,0],[11,0,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,2,17,0],[21,11,17,9,"getBlockByNumber"],[21,27,17,25,"getBlockByNumber"],[21,28,17,26,"instanceId"],[21,38,17,36],[21,40,17,38,"api"],[21,43,17,41],[21,45,17,43],[22,4,18,4],[22,11,18,11],[22,12,18,12],[22,13,18,13],[22,15,18,15,"index_js_1"],[22,25,18,25],[22,26,18,26,"memo"],[22,30,18,30],[22,32,18,32,"instanceId"],[22,42,18,42],[22,44,18,44],[22,54,18,45,"blockNumber"],[22,65,18,56],[23,6,18,56],[23,13,18,61,"api"],[23,16,18,64],[23,17,18,65,"rpc"],[23,20,18,68],[23,21,18,69,"chain"],[23,26,18,74],[23,27,18,75,"getBlockHash"],[23,39,18,87],[23,40,18,88,"blockNumber"],[23,51,18,99],[23,52,18,100],[23,53,18,101,"pipe"],[23,57,18,105],[23,58,18,106],[23,59,18,107],[23,60,18,108],[23,62,18,110,"rxjs_1"],[23,68,18,116],[23,69,18,117,"switchMap"],[23,78,18,126],[23,80,18,128],[23,90,18,129,"h"],[23,91,18,130],[24,8,18,130],[24,15,18,135,"api"],[24,18,18,138],[24,19,18,139,"derive"],[24,25,18,145],[24,26,18,146,"chain"],[24,31,18,151],[24,32,18,152,"getBlock"],[24,40,18,160],[24,41,18,161,"h"],[24,42,18,162],[24,43,18,163],[25,6,18,163],[25,8,18,164],[25,9,18,165],[26,4,18,165],[26,6,18,166],[27,2,19,0],[28,0,19,1],[28,3]],"functionMap":{"names":["<global>","getBlockByNumber","<anonymous>"],"mappings":"AAA;ACgB;4CCC,yHD;CDC"},"hasCjsExports":true},"type":"js/module"}]} |