mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 12:21:01 +00:00
1 line
3.5 KiB
Plaintext
1 line
3.5 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 const rxjs_1 = require(_dependencyMap[0], \"rxjs\");\n const 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, blockNumber => api.rpc.chain.getBlockHash(blockNumber).pipe((0, rxjs_1.switchMap)(h => api.derive.chain.getBlock(h))));\n }\n});","lineCount":24,"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,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,"index_js_1"],[9,18,5,16],[9,21,5,19,"require"],[9,28,5,26],[9,29,5,26,"_dependencyMap"],[9,43,5,26],[9,66,5,45],[9,67,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,45,"blockNumber"],[22,55,18,56],[22,59,18,61,"api"],[22,62,18,64],[22,63,18,65,"rpc"],[22,66,18,68],[22,67,18,69,"chain"],[22,72,18,74],[22,73,18,75,"getBlockHash"],[22,85,18,87],[22,86,18,88,"blockNumber"],[22,97,18,99],[22,98,18,100],[22,99,18,101,"pipe"],[22,103,18,105],[22,104,18,106],[22,105,18,107],[22,106,18,108],[22,108,18,110,"rxjs_1"],[22,114,18,116],[22,115,18,117,"switchMap"],[22,124,18,126],[22,126,18,129,"h"],[22,127,18,130],[22,131,18,135,"api"],[22,134,18,138],[22,135,18,139,"derive"],[22,141,18,145],[22,142,18,146,"chain"],[22,147,18,151],[22,148,18,152,"getBlock"],[22,156,18,160],[22,157,18,161,"h"],[22,158,18,162],[22,159,18,163],[22,160,18,164],[22,161,18,165],[22,162,18,166],[23,2,19,0],[24,0,19,1],[24,3]],"functionMap":{"names":["<global>","getBlockByNumber","<anonymous>"],"mappings":"AAA;ACgB;4CCC,yHD;CDC"},"hasCjsExports":true},"type":"js/module"}]} |