mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 08:51:01 +00:00
1 line
10 KiB
Plaintext
1 line
10 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":47,"index":47}}],"key":"4J9mGJyxcRzjwnWeFPHBw1ClKiw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":48},"end":{"line":2,"column":39,"index":87}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","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 Object.defineProperty(exports, \"EXTRINSIC_VERSION\", {\n enumerable: true,\n get: function () {\n return EXTRINSIC_VERSION;\n }\n });\n Object.defineProperty(exports, \"GenericExtrinsicV4\", {\n enumerable: true,\n get: function () {\n return GenericExtrinsicV4;\n }\n });\n var _polkadotTypesCodec = require(_dependencyMap[0], \"@polkadot/types-codec\");\n var _polkadotUtil = require(_dependencyMap[1], \"@polkadot/util\");\n const EXTRINSIC_VERSION = 4;\n /**\n * @name GenericExtrinsicV4\n * @description\n * The third generation of compact extrinsics\n */\n class GenericExtrinsicV4 extends _polkadotTypesCodec.Struct {\n constructor(registry, value, {\n isSigned\n } = {}) {\n super(registry, {\n signature: 'ExtrinsicSignatureV4',\n // eslint-disable-next-line sort-keys\n method: 'Call'\n }, GenericExtrinsicV4.decodeExtrinsic(registry, value, isSigned));\n }\n /** @internal */\n static decodeExtrinsic(registry, value, isSigned = false) {\n if (value instanceof GenericExtrinsicV4) {\n return value;\n } else if (value instanceof registry.createClassUnsafe('Call')) {\n return {\n method: value\n };\n } else if ((0, _polkadotUtil.isU8a)(value)) {\n // here we decode manually since we need to pull through the version information\n const signature = registry.createTypeUnsafe('ExtrinsicSignatureV4', [value, {\n isSigned\n }]);\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 [[ExtrinsicSignatureV4]]\n */\n get signature() {\n return this.getT('signature');\n }\n /**\n * @description The version for the signature\n */\n get version() {\n return EXTRINSIC_VERSION;\n }\n /**\n * @description Add an [[ExtrinsicSignatureV4]] to the extrinsic (already generated)\n */\n addSignature(signer, signature, payload) {\n this.signature.addSignature(signer, signature, payload);\n return this;\n }\n /**\n * @description Sign the extrinsic with a specific keypair\n */\n sign(account, options) {\n this.signature.sign(this.method, account, options);\n return this;\n }\n /**\n * @describe Adds a fake signature to the extrinsic\n */\n signFake(signer, options) {\n this.signature.signFake(this.method, signer, options);\n return this;\n }\n }\n});","lineCount":104,"map":[[7,2,3,0,"Object"],[7,8,3,0],[7,9,3,0,"defineProperty"],[7,23,3,0],[7,24,3,0,"exports"],[7,31,3,0],[8,4,3,0,"enumerable"],[8,14,3,0],[9,4,3,0,"get"],[9,7,3,0],[9,18,3,0,"get"],[9,19,3,0],[10,6,3,0],[10,13,3,0,"EXTRINSIC_VERSION"],[10,30,3,0],[11,4,3,0],[12,2,3,0],[13,2,9,0,"Object"],[13,8,9,0],[13,9,9,0,"defineProperty"],[13,23,9,0],[13,24,9,0,"exports"],[13,31,9,0],[14,4,9,0,"enumerable"],[14,14,9,0],[15,4,9,0,"get"],[15,7,9,0],[15,18,9,0,"get"],[15,19,9,0],[16,6,9,0],[16,13,9,0,"GenericExtrinsicV4"],[16,31,9,0],[17,4,9,0],[18,2,9,0],[19,2,1,0],[19,6,1,0,"_polkadotTypesCodec"],[19,25,1,0],[19,28,1,0,"require"],[19,35,1,0],[19,36,1,0,"_dependencyMap"],[19,50,1,0],[20,2,2,0],[20,6,2,0,"_polkadotUtil"],[20,19,2,0],[20,22,2,0,"require"],[20,29,2,0],[20,30,2,0,"_dependencyMap"],[20,44,2,0],[21,2,3,7],[21,8,3,13,"EXTRINSIC_VERSION"],[21,25,3,30],[21,28,3,33],[21,29,3,34],[22,2,4,0],[23,0,5,0],[24,0,6,0],[25,0,7,0],[26,0,8,0],[27,2,9,7],[27,8,9,13,"GenericExtrinsicV4"],[27,26,9,31],[27,35,9,40,"Struct"],[27,54,9,46],[27,55,9,46,"Struct"],[27,61,9,46],[27,62,9,47],[28,4,10,4,"constructor"],[28,15,10,15,"constructor"],[28,16,10,16,"registry"],[28,24,10,24],[28,26,10,26,"value"],[28,31,10,31],[28,33,10,33],[29,6,10,35,"isSigned"],[30,4,10,44],[30,5,10,45],[30,8,10,48],[30,9,10,49],[30,10,10,50],[30,12,10,52],[31,6,11,8],[31,11,11,13],[31,12,11,14,"registry"],[31,20,11,22],[31,22,11,24],[32,8,12,12,"signature"],[32,17,12,21],[32,19,12,23],[32,41,12,45],[33,8,13,12],[34,8,14,12,"method"],[34,14,14,18],[34,16,14,20],[35,6,15,8],[35,7,15,9],[35,9,15,11,"GenericExtrinsicV4"],[35,27,15,29],[35,28,15,30,"decodeExtrinsic"],[35,43,15,45],[35,44,15,46,"registry"],[35,52,15,54],[35,54,15,56,"value"],[35,59,15,61],[35,61,15,63,"isSigned"],[35,69,15,71],[35,70,15,72],[35,71,15,73],[36,4,16,4],[37,4,17,4],[38,4,18,4],[38,11,18,11,"decodeExtrinsic"],[38,26,18,26,"decodeExtrinsic"],[38,27,18,27,"registry"],[38,35,18,35],[38,37,18,37,"value"],[38,42,18,42],[38,44,18,44,"isSigned"],[38,52,18,52],[38,55,18,55],[38,60,18,60],[38,62,18,62],[39,6,19,8],[39,10,19,12,"value"],[39,15,19,17],[39,27,19,29,"GenericExtrinsicV4"],[39,45,19,47],[39,47,19,49],[40,8,20,12],[40,15,20,19,"value"],[40,20,20,24],[41,6,21,8],[41,7,21,9],[41,13,22,13],[41,17,22,17,"value"],[41,22,22,22],[41,34,22,34,"registry"],[41,42,22,42],[41,43,22,43,"createClassUnsafe"],[41,60,22,60],[41,61,22,61],[41,67,22,67],[41,68,22,68],[41,70,22,70],[42,8,23,12],[42,15,23,19],[43,10,23,21,"method"],[43,16,23,27],[43,18,23,29,"value"],[44,8,23,35],[44,9,23,36],[45,6,24,8],[45,7,24,9],[45,13,25,13],[45,17,25,17],[45,21,25,17,"isU8a"],[45,34,25,22],[45,35,25,22,"isU8a"],[45,40,25,22],[45,42,25,23,"value"],[45,47,25,28],[45,48,25,29],[45,50,25,31],[46,8,26,12],[47,8,27,12],[47,14,27,18,"signature"],[47,23,27,27],[47,26,27,30,"registry"],[47,34,27,38],[47,35,27,39,"createTypeUnsafe"],[47,51,27,55],[47,52,27,56],[47,74,27,78],[47,76,27,80],[47,77,27,81,"value"],[47,82,27,86],[47,84,27,88],[48,10,27,90,"isSigned"],[49,8,27,99],[49,9,27,100],[49,10,27,101],[49,11,27,102],[50,8,28,12],[50,14,28,18,"method"],[50,20,28,24],[50,23,28,27,"registry"],[50,31,28,35],[50,32,28,36,"createTypeUnsafe"],[50,48,28,52],[50,49,28,53],[50,55,28,59],[50,57,28,61],[50,58,28,62,"value"],[50,63,28,67],[50,64,28,68,"subarray"],[50,72,28,76],[50,73,28,77,"signature"],[50,82,28,86],[50,83,28,87,"encodedLength"],[50,96,28,100],[50,97,28,101],[50,98,28,102],[50,99,28,103],[51,8,29,12],[51,15,29,19],[52,10,30,16,"method"],[52,16,30,22],[53,10,31,16,"signature"],[54,8,32,12],[54,9,32,13],[55,6,33,8],[56,6,34,8],[56,13,34,15,"value"],[56,18,34,20],[56,22,34,24],[56,23,34,25],[56,24,34,26],[57,4,35,4],[58,4,36,4],[59,0,37,0],[60,0,38,0],[61,4,39,4],[61,8,39,8,"encodedLength"],[61,21,39,21,"encodedLength"],[61,22,39,21],[61,24,39,24],[62,6,40,8],[62,13,40,15],[62,17,40,19],[62,18,40,20,"toU8a"],[62,23,40,25],[62,24,40,26],[62,25,40,27],[62,26,40,28,"length"],[62,32,40,34],[63,4,41,4],[64,4,42,4],[65,0,43,0],[66,0,44,0],[67,4,45,4],[67,8,45,8,"method"],[67,14,45,14,"method"],[67,15,45,14],[67,17,45,17],[68,6,46,8],[68,13,46,15],[68,17,46,19],[68,18,46,20,"getT"],[68,22,46,24],[68,23,46,25],[68,31,46,33],[68,32,46,34],[69,4,47,4],[70,4,48,4],[71,0,49,0],[72,0,50,0],[73,4,51,4],[73,8,51,8,"signature"],[73,17,51,17,"signature"],[73,18,51,17],[73,20,51,20],[74,6,52,8],[74,13,52,15],[74,17,52,19],[74,18,52,20,"getT"],[74,22,52,24],[74,23,52,25],[74,34,52,36],[74,35,52,37],[75,4,53,4],[76,4,54,4],[77,0,55,0],[78,0,56,0],[79,4,57,4],[79,8,57,8,"version"],[79,15,57,15,"version"],[79,16,57,15],[79,18,57,18],[80,6,58,8],[80,13,58,15,"EXTRINSIC_VERSION"],[80,30,58,32],[81,4,59,4],[82,4,60,4],[83,0,61,0],[84,0,62,0],[85,4,63,4,"addSignature"],[85,16,63,16,"addSignature"],[85,17,63,17,"signer"],[85,23,63,23],[85,25,63,25,"signature"],[85,34,63,34],[85,36,63,36,"payload"],[85,43,63,43],[85,45,63,45],[86,6,64,8],[86,10,64,12],[86,11,64,13,"signature"],[86,20,64,22],[86,21,64,23,"addSignature"],[86,33,64,35],[86,34,64,36,"signer"],[86,40,64,42],[86,42,64,44,"signature"],[86,51,64,53],[86,53,64,55,"payload"],[86,60,64,62],[86,61,64,63],[87,6,65,8],[87,13,65,15],[87,17,65,19],[88,4,66,4],[89,4,67,4],[90,0,68,0],[91,0,69,0],[92,4,70,4,"sign"],[92,8,70,8,"sign"],[92,9,70,9,"account"],[92,16,70,16],[92,18,70,18,"options"],[92,25,70,25],[92,27,70,27],[93,6,71,8],[93,10,71,12],[93,11,71,13,"signature"],[93,20,71,22],[93,21,71,23,"sign"],[93,25,71,27],[93,26,71,28],[93,30,71,32],[93,31,71,33,"method"],[93,37,71,39],[93,39,71,41,"account"],[93,46,71,48],[93,48,71,50,"options"],[93,55,71,57],[93,56,71,58],[94,6,72,8],[94,13,72,15],[94,17,72,19],[95,4,73,4],[96,4,74,4],[97,0,75,0],[98,0,76,0],[99,4,77,4,"signFake"],[99,12,77,12,"signFake"],[99,13,77,13,"signer"],[99,19,77,19],[99,21,77,21,"options"],[99,28,77,28],[99,30,77,30],[100,6,78,8],[100,10,78,12],[100,11,78,13,"signature"],[100,20,78,22],[100,21,78,23,"signFake"],[100,29,78,31],[100,30,78,32],[100,34,78,36],[100,35,78,37,"method"],[100,41,78,43],[100,43,78,45,"signer"],[100,49,78,51],[100,51,78,53,"options"],[100,58,78,60],[100,59,78,61],[101,6,79,8],[101,13,79,15],[101,17,79,19],[102,4,80,4],[103,2,81,0],[104,0,81,1],[104,3]],"functionMap":{"names":["<global>","GenericExtrinsicV4","GenericExtrinsicV4#constructor","GenericExtrinsicV4.decodeExtrinsic","GenericExtrinsicV4#get__encodedLength","GenericExtrinsicV4#get__method","GenericExtrinsicV4#get__signature","GenericExtrinsicV4#get__version","GenericExtrinsicV4#addSignature","GenericExtrinsicV4#sign","GenericExtrinsicV4#signFake"],"mappings":"AAA;OCQ;ICC;KDM;IEE;KFiB;IGI;KHE;III;KJE;IKI;KLE;IMI;KNE;IOI;KPG;IQI;KRG;ISI;KTG;CDC"},"hasCjsExports":false},"type":"js/module"}]} |