mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 11:11:01 +00:00
1 line
10 KiB
Plaintext
1 line
10 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":22,"index":164},"end":{"line":4,"column":54,"index":196}}],"key":"fW1yxuTjZe66ggmM4ihNuGjKSV0=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":213},"end":{"line":5,"column":40,"index":238}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","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.GenericExtrinsicV5 = exports.EXTRINSIC_VERSION = void 0;\n const types_codec_1 = require(_dependencyMap[0], \"@polkadot/types-codec\");\n const util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n exports.EXTRINSIC_VERSION = 5;\n /**\n * @name GenericExtrinsicV5\n * @description\n * The fourth generation of compact extrinsics\n */\n class GenericExtrinsicV5 extends types_codec_1.Struct {\n constructor(registry, value, {\n isSigned\n } = {}) {\n super(registry, {\n signature: 'ExtrinsicSignatureV5',\n // eslint-disable-next-line sort-keys\n method: 'Call'\n }, GenericExtrinsicV5.decodeExtrinsic(registry, value, isSigned));\n }\n /** @internal */\n static decodeExtrinsic(registry, value, isSigned = false) {\n if (value instanceof GenericExtrinsicV5) {\n return value;\n } else if (value instanceof registry.createClassUnsafe('Call')) {\n return {\n method: value\n };\n } else if ((0, util_1.isU8a)(value)) {\n // here we decode manually since we need to pull through the version information\n const signature = registry.createTypeUnsafe('ExtrinsicSignatureV5', [value, {\n isSigned\n }]);\n // We add 2 here since the length of the TransactionExtension Version needs to be accounted for\n const method = registry.createTypeUnsafe('Call', [value.subarray(signature.encodedLength)]);\n return {\n method,\n signature\n };\n }\n return value || {};\n }\n /**\n * @description The length of the value when encoded as a Uint8Array\n */\n get encodedLength() {\n return this.toU8a().length;\n }\n /**\n * @description The [[Call]] this extrinsic wraps\n */\n get method() {\n return this.getT('method');\n }\n /**\n * @description The [[ExtrinsicSignatureV5]]\n */\n get signature() {\n return this.getT('signature');\n }\n /**\n * @description The version for the signature\n */\n get version() {\n return exports.EXTRINSIC_VERSION;\n }\n /**\n * @description The [[Preamble]] for the extrinsic\n */\n get preamble() {\n return this.getT('preamble');\n }\n /**\n * @description Add an [[ExtrinsicSignatureV5]] to the extrinsic (already generated)\n *\n * [Disabled for ExtrinsicV5]\n */\n addSignature(_signer, _signature, _payload) {\n throw new Error('Extrinsic: ExtrinsicV5 does not include signing support');\n }\n /**\n * @description Sign the extrinsic with a specific keypair\n *\n * [Disabled for ExtrinsicV5]\n */\n sign(_account, _options) {\n throw new Error('Extrinsic: ExtrinsicV5 does not include signing support');\n }\n /**\n * @describe Adds a fake signature to the extrinsic\n *\n * [Disabled for ExtrinsicV5]\n */\n signFake(_signer, _options) {\n throw new Error('Extrinsic: ExtrinsicV5 does not include signing support');\n }\n }\n exports.GenericExtrinsicV5 = GenericExtrinsicV5;\n});","lineCount":104,"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,"GenericExtrinsicV5"],[7,28,3,26],[7,31,3,29,"exports"],[7,38,3,36],[7,39,3,37,"EXTRINSIC_VERSION"],[7,56,3,54],[7,59,3,57],[7,64,3,62],[7,65,3,63],[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],[9,8,5,6,"util_1"],[9,14,5,12],[9,17,5,15,"require"],[9,24,5,22],[9,25,5,22,"_dependencyMap"],[9,39,5,22],[9,60,5,39],[9,61,5,40],[10,2,6,0,"exports"],[10,9,6,7],[10,10,6,8,"EXTRINSIC_VERSION"],[10,27,6,25],[10,30,6,28],[10,31,6,29],[11,2,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,2,12,0],[16,8,12,6,"GenericExtrinsicV5"],[16,26,12,24],[16,35,12,33,"types_codec_1"],[16,48,12,46],[16,49,12,47,"Struct"],[16,55,12,53],[16,56,12,54],[17,4,13,4,"constructor"],[17,15,13,15,"constructor"],[17,16,13,16,"registry"],[17,24,13,24],[17,26,13,26,"value"],[17,31,13,31],[17,33,13,33],[18,6,13,35,"isSigned"],[19,4,13,44],[19,5,13,45],[19,8,13,48],[19,9,13,49],[19,10,13,50],[19,12,13,52],[20,6,14,8],[20,11,14,13],[20,12,14,14,"registry"],[20,20,14,22],[20,22,14,24],[21,8,15,12,"signature"],[21,17,15,21],[21,19,15,23],[21,41,15,45],[22,8,16,12],[23,8,17,12,"method"],[23,14,17,18],[23,16,17,20],[24,6,18,8],[24,7,18,9],[24,9,18,11,"GenericExtrinsicV5"],[24,27,18,29],[24,28,18,30,"decodeExtrinsic"],[24,43,18,45],[24,44,18,46,"registry"],[24,52,18,54],[24,54,18,56,"value"],[24,59,18,61],[24,61,18,63,"isSigned"],[24,69,18,71],[24,70,18,72],[24,71,18,73],[25,4,19,4],[26,4,20,4],[27,4,21,4],[27,11,21,11,"decodeExtrinsic"],[27,26,21,26,"decodeExtrinsic"],[27,27,21,27,"registry"],[27,35,21,35],[27,37,21,37,"value"],[27,42,21,42],[27,44,21,44,"isSigned"],[27,52,21,52],[27,55,21,55],[27,60,21,60],[27,62,21,62],[28,6,22,8],[28,10,22,12,"value"],[28,15,22,17],[28,27,22,29,"GenericExtrinsicV5"],[28,45,22,47],[28,47,22,49],[29,8,23,12],[29,15,23,19,"value"],[29,20,23,24],[30,6,24,8],[30,7,24,9],[30,13,25,13],[30,17,25,17,"value"],[30,22,25,22],[30,34,25,34,"registry"],[30,42,25,42],[30,43,25,43,"createClassUnsafe"],[30,60,25,60],[30,61,25,61],[30,67,25,67],[30,68,25,68],[30,70,25,70],[31,8,26,12],[31,15,26,19],[32,10,26,21,"method"],[32,16,26,27],[32,18,26,29,"value"],[33,8,26,35],[33,9,26,36],[34,6,27,8],[34,7,27,9],[34,13,28,13],[34,17,28,17],[34,18,28,18],[34,19,28,19],[34,21,28,21,"util_1"],[34,27,28,27],[34,28,28,28,"isU8a"],[34,33,28,33],[34,35,28,35,"value"],[34,40,28,40],[34,41,28,41],[34,43,28,43],[35,8,29,12],[36,8,30,12],[36,14,30,18,"signature"],[36,23,30,27],[36,26,30,30,"registry"],[36,34,30,38],[36,35,30,39,"createTypeUnsafe"],[36,51,30,55],[36,52,30,56],[36,74,30,78],[36,76,30,80],[36,77,30,81,"value"],[36,82,30,86],[36,84,30,88],[37,10,30,90,"isSigned"],[38,8,30,99],[38,9,30,100],[38,10,30,101],[38,11,30,102],[39,8,31,12],[40,8,32,12],[40,14,32,18,"method"],[40,20,32,24],[40,23,32,27,"registry"],[40,31,32,35],[40,32,32,36,"createTypeUnsafe"],[40,48,32,52],[40,49,32,53],[40,55,32,59],[40,57,32,61],[40,58,32,62,"value"],[40,63,32,67],[40,64,32,68,"subarray"],[40,72,32,76],[40,73,32,77,"signature"],[40,82,32,86],[40,83,32,87,"encodedLength"],[40,96,32,100],[40,97,32,101],[40,98,32,102],[40,99,32,103],[41,8,33,12],[41,15,33,19],[42,10,34,16,"method"],[42,16,34,22],[43,10,35,16,"signature"],[44,8,36,12],[44,9,36,13],[45,6,37,8],[46,6,38,8],[46,13,38,15,"value"],[46,18,38,20],[46,22,38,24],[46,23,38,25],[46,24,38,26],[47,4,39,4],[48,4,40,4],[49,0,41,0],[50,0,42,0],[51,4,43,4],[51,8,43,8,"encodedLength"],[51,21,43,21,"encodedLength"],[51,22,43,21],[51,24,43,24],[52,6,44,8],[52,13,44,15],[52,17,44,19],[52,18,44,20,"toU8a"],[52,23,44,25],[52,24,44,26],[52,25,44,27],[52,26,44,28,"length"],[52,32,44,34],[53,4,45,4],[54,4,46,4],[55,0,47,0],[56,0,48,0],[57,4,49,4],[57,8,49,8,"method"],[57,14,49,14,"method"],[57,15,49,14],[57,17,49,17],[58,6,50,8],[58,13,50,15],[58,17,50,19],[58,18,50,20,"getT"],[58,22,50,24],[58,23,50,25],[58,31,50,33],[58,32,50,34],[59,4,51,4],[60,4,52,4],[61,0,53,0],[62,0,54,0],[63,4,55,4],[63,8,55,8,"signature"],[63,17,55,17,"signature"],[63,18,55,17],[63,20,55,20],[64,6,56,8],[64,13,56,15],[64,17,56,19],[64,18,56,20,"getT"],[64,22,56,24],[64,23,56,25],[64,34,56,36],[64,35,56,37],[65,4,57,4],[66,4,58,4],[67,0,59,0],[68,0,60,0],[69,4,61,4],[69,8,61,8,"version"],[69,15,61,15,"version"],[69,16,61,15],[69,18,61,18],[70,6,62,8],[70,13,62,15,"exports"],[70,20,62,22],[70,21,62,23,"EXTRINSIC_VERSION"],[70,38,62,40],[71,4,63,4],[72,4,64,4],[73,0,65,0],[74,0,66,0],[75,4,67,4],[75,8,67,8,"preamble"],[75,16,67,16,"preamble"],[75,17,67,16],[75,19,67,19],[76,6,68,8],[76,13,68,15],[76,17,68,19],[76,18,68,20,"getT"],[76,22,68,24],[76,23,68,25],[76,33,68,35],[76,34,68,36],[77,4,69,4],[78,4,70,4],[79,0,71,0],[80,0,72,0],[81,0,73,0],[82,0,74,0],[83,4,75,4,"addSignature"],[83,16,75,16,"addSignature"],[83,17,75,17,"_signer"],[83,24,75,24],[83,26,75,26,"_signature"],[83,36,75,36],[83,38,75,38,"_payload"],[83,46,75,46],[83,48,75,48],[84,6,76,8],[84,12,76,14],[84,16,76,18,"Error"],[84,21,76,23],[84,22,76,24],[84,79,76,81],[84,80,76,82],[85,4,77,4],[86,4,78,4],[87,0,79,0],[88,0,80,0],[89,0,81,0],[90,0,82,0],[91,4,83,4,"sign"],[91,8,83,8,"sign"],[91,9,83,9,"_account"],[91,17,83,17],[91,19,83,19,"_options"],[91,27,83,27],[91,29,83,29],[92,6,84,8],[92,12,84,14],[92,16,84,18,"Error"],[92,21,84,23],[92,22,84,24],[92,79,84,81],[92,80,84,82],[93,4,85,4],[94,4,86,4],[95,0,87,0],[96,0,88,0],[97,0,89,0],[98,0,90,0],[99,4,91,4,"signFake"],[99,12,91,12,"signFake"],[99,13,91,13,"_signer"],[99,20,91,20],[99,22,91,22,"_options"],[99,30,91,30],[99,32,91,32],[100,6,92,8],[100,12,92,14],[100,16,92,18,"Error"],[100,21,92,23],[100,22,92,24],[100,79,92,81],[100,80,92,82],[101,4,93,4],[102,2,94,0],[103,2,95,0,"exports"],[103,9,95,7],[103,10,95,8,"GenericExtrinsicV5"],[103,28,95,26],[103,31,95,29,"GenericExtrinsicV5"],[103,49,95,47],[104,0,95,48],[104,3]],"functionMap":{"names":["<global>","GenericExtrinsicV5","GenericExtrinsicV5#constructor","GenericExtrinsicV5.decodeExtrinsic","GenericExtrinsicV5#get__encodedLength","GenericExtrinsicV5#get__method","GenericExtrinsicV5#get__signature","GenericExtrinsicV5#get__version","GenericExtrinsicV5#get__preamble","GenericExtrinsicV5#addSignature","GenericExtrinsicV5#sign","GenericExtrinsicV5#signFake"],"mappings":"AAA;ACW;ICC;KDM;IEE;KFkB;IGI;KHE;III;KJE;IKI;KLE;IMI;KNE;IOI;KPE;IQM;KRE;ISM;KTE;IUM;KVE;CDC"},"hasCjsExports":true},"type":"js/module"}]} |