mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 04:11:02 +00:00
1 line
4.2 KiB
Plaintext
1 line
4.2 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":22,"index":130},"end":{"line":4,"column":54,"index":162}}],"key":"fW1yxuTjZe66ggmM4ihNuGjKSV0=","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.GenericBlock = void 0;\n const types_codec_1 = require(_dependencyMap[0], \"@polkadot/types-codec\");\n /**\n * @name GenericBlock\n * @description\n * A block encoded with header and extrinsics\n */\n class GenericBlock extends types_codec_1.Struct {\n constructor(registry, value) {\n super(registry, {\n header: 'Header',\n // eslint-disable-next-line sort-keys\n extrinsics: 'Vec<Extrinsic>'\n }, value);\n }\n /**\n * @description Encodes a content [[Hash]] for the block\n */\n get contentHash() {\n return this.registry.hash(this.toU8a());\n }\n /**\n * @description The [[Extrinsic]] contained in the block\n */\n get extrinsics() {\n return this.getT('extrinsics');\n }\n /**\n * @description Block/header [[Hash]]\n */\n get hash() {\n return this.header.hash;\n }\n /**\n * @description The [[Header]] of the block\n */\n get header() {\n return this.getT('header');\n }\n }\n exports.GenericBlock = GenericBlock;\n});","lineCount":48,"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,"GenericBlock"],[7,22,3,20],[7,25,3,23],[7,30,3,28],[7,31,3,29],[8,2,4,0],[8,8,4,6,"types_codec_1"],[8,21,4,19],[8,24,4,22,"require"],[8,31,4,29],[8,32,4,29,"_dependencyMap"],[8,46,4,29],[8,74,4,53],[8,75,4,54],[9,2,5,0],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,2,10,0],[14,8,10,6,"GenericBlock"],[14,20,10,18],[14,29,10,27,"types_codec_1"],[14,42,10,40],[14,43,10,41,"Struct"],[14,49,10,47],[14,50,10,48],[15,4,11,4,"constructor"],[15,15,11,15,"constructor"],[15,16,11,16,"registry"],[15,24,11,24],[15,26,11,26,"value"],[15,31,11,31],[15,33,11,33],[16,6,12,8],[16,11,12,13],[16,12,12,14,"registry"],[16,20,12,22],[16,22,12,24],[17,8,13,12,"header"],[17,14,13,18],[17,16,13,20],[17,24,13,28],[18,8,14,12],[19,8,15,12,"extrinsics"],[19,18,15,22],[19,20,15,24],[20,6,16,8],[20,7,16,9],[20,9,16,11,"value"],[20,14,16,16],[20,15,16,17],[21,4,17,4],[22,4,18,4],[23,0,19,0],[24,0,20,0],[25,4,21,4],[25,8,21,8,"contentHash"],[25,19,21,19,"contentHash"],[25,20,21,19],[25,22,21,22],[26,6,22,8],[26,13,22,15],[26,17,22,19],[26,18,22,20,"registry"],[26,26,22,28],[26,27,22,29,"hash"],[26,31,22,33],[26,32,22,34],[26,36,22,38],[26,37,22,39,"toU8a"],[26,42,22,44],[26,43,22,45],[26,44,22,46],[26,45,22,47],[27,4,23,4],[28,4,24,4],[29,0,25,0],[30,0,26,0],[31,4,27,4],[31,8,27,8,"extrinsics"],[31,18,27,18,"extrinsics"],[31,19,27,18],[31,21,27,21],[32,6,28,8],[32,13,28,15],[32,17,28,19],[32,18,28,20,"getT"],[32,22,28,24],[32,23,28,25],[32,35,28,37],[32,36,28,38],[33,4,29,4],[34,4,30,4],[35,0,31,0],[36,0,32,0],[37,4,33,4],[37,8,33,8,"hash"],[37,12,33,12,"hash"],[37,13,33,12],[37,15,33,15],[38,6,34,8],[38,13,34,15],[38,17,34,19],[38,18,34,20,"header"],[38,24,34,26],[38,25,34,27,"hash"],[38,29,34,31],[39,4,35,4],[40,4,36,4],[41,0,37,0],[42,0,38,0],[43,4,39,4],[43,8,39,8,"header"],[43,14,39,14,"header"],[43,15,39,14],[43,17,39,17],[44,6,40,8],[44,13,40,15],[44,17,40,19],[44,18,40,20,"getT"],[44,22,40,24],[44,23,40,25],[44,31,40,33],[44,32,40,34],[45,4,41,4],[46,2,42,0],[47,2,43,0,"exports"],[47,9,43,7],[47,10,43,8,"GenericBlock"],[47,22,43,20],[47,25,43,23,"GenericBlock"],[47,37,43,35],[48,0,43,36],[48,3]],"functionMap":{"names":["<global>","GenericBlock","GenericBlock#constructor","GenericBlock#get__contentHash","GenericBlock#get__extrinsics","GenericBlock#get__hash","GenericBlock#get__header"],"mappings":"AAA;ACS;ICC;KDM;IEI;KFE;IGI;KHE;III;KJE;IKI;KLE;CDC"},"hasCjsExports":true},"type":"js/module"}]} |