mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 13:31:00 +00:00
1 line
12 KiB
Plaintext
1 line
12 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":22,"index":143},"end":{"line":4,"column":54,"index":175}}],"key":"fW1yxuTjZe66ggmM4ihNuGjKSV0=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":192},"end":{"line":5,"column":40,"index":217}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../ExtrinsicPayload.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":30,"index":249},"end":{"line":6,"column":63,"index":282}}],"key":"cKdm3QmyVbry1bwXBQ45SmXN1OA=","exportNames":["*"],"imports":1}},{"name":"../util.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":18,"index":302},"end":{"line":7,"column":39,"index":323}}],"key":"Bzso+pzc0We++WtcOzIpK6Le7v4=","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.GenericExtrinsicPayloadV4 = void 0;\n const types_codec_1 = require(_dependencyMap[0], \"@polkadot/types-codec\");\n const util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n const ExtrinsicPayload_js_1 = require(_dependencyMap[2], \"../ExtrinsicPayload.js\");\n const util_js_1 = require(_dependencyMap[3], \"../util.js\");\n /**\n * @name GenericExtrinsicPayloadV4\n * @description\n * A signing payload for an [[Extrinsic]]. For the final encoding, it is\n * variable length based on the contents included\n */\n class GenericExtrinsicPayloadV4 extends types_codec_1.Struct {\n #signOptions;\n constructor(registry, value) {\n super(registry, (0, util_1.objectSpread)({\n method: 'Bytes'\n }, registry.getSignedExtensionTypes(), registry.getSignedExtensionExtra()), (0, ExtrinsicPayload_js_1.decodeAssetId)(registry, value));\n // Do detection for the type of extrinsic, in the case of MultiSignature\n // this is an enum, in the case of AnySignature, this is a Hash only\n // (which may be 64 or 65 bytes)\n this.#signOptions = {\n withType: registry.createTypeUnsafe('ExtrinsicSignature', []) instanceof types_codec_1.Enum\n };\n }\n /**\n * @description Returns a breakdown of the hex encoding for this Codec\n */\n inspect() {\n return super.inspect({\n method: true\n });\n }\n /**\n * @description The block [[BlockHash]] the signature applies to (mortal/immortal)\n */\n get blockHash() {\n return this.getT('blockHash');\n }\n /**\n * @description The [[ExtrinsicEra]]\n */\n get era() {\n return this.getT('era');\n }\n /**\n * @description The genesis [[BlockHash]] the signature applies to (mortal/immortal)\n */\n get genesisHash() {\n return this.getT('genesisHash');\n }\n /**\n * @description The [[Bytes]] contained in the payload\n */\n get method() {\n return this.getT('method');\n }\n /**\n * @description The [[Index]]\n */\n get nonce() {\n return this.getT('nonce');\n }\n /**\n * @description The specVersion for this signature\n */\n get specVersion() {\n return this.getT('specVersion');\n }\n /**\n * @description The tip [[Balance]]\n */\n get tip() {\n return this.getT('tip');\n }\n /**\n * @description The transactionVersion for this signature\n */\n get transactionVersion() {\n return this.getT('transactionVersion');\n }\n /**\n * @description The (optional) asset id for this signature for chains that support transaction fees in assets\n */\n get assetId() {\n return this.getT('assetId');\n }\n /**\n * @description The (optional) asset id for this signature for chains that support transaction fees in assets\n */\n get metadataHash() {\n return this.getT('metadataHash');\n }\n /**\n * @description Sign the payload with the keypair\n */\n sign(signerPair) {\n // NOTE The `toU8a({ method: true })` argument is absolutely critical, we\n // don't want the method (Bytes) to have the length prefix included. This\n // means that the data-as-signed is un-decodable, but is also doesn't need\n // the extra information, only the pure data (and is not decoded) ...\n // The same applies to V1..V3, if we have a V5, carry this comment\n return (0, util_js_1.sign)(this.registry, signerPair, this.toU8a({\n method: true\n }), this.#signOptions);\n }\n }\n exports.GenericExtrinsicPayloadV4 = GenericExtrinsicPayloadV4;\n});","lineCount":114,"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,"GenericExtrinsicPayloadV4"],[7,35,3,33],[7,38,3,36],[7,43,3,41],[7,44,3,42],[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],[10,8,6,6,"ExtrinsicPayload_js_1"],[10,29,6,27],[10,32,6,30,"require"],[10,39,6,37],[10,40,6,37,"_dependencyMap"],[10,54,6,37],[10,83,6,62],[10,84,6,63],[11,2,7,0],[11,8,7,6,"util_js_1"],[11,17,7,15],[11,20,7,18,"require"],[11,27,7,25],[11,28,7,25,"_dependencyMap"],[11,42,7,25],[11,59,7,38],[11,60,7,39],[12,2,8,0],[13,0,9,0],[14,0,10,0],[15,0,11,0],[16,0,12,0],[17,0,13,0],[18,2,14,0],[18,8,14,6,"GenericExtrinsicPayloadV4"],[18,33,14,31],[18,42,14,40,"types_codec_1"],[18,55,14,53],[18,56,14,54,"Struct"],[18,62,14,60],[18,63,14,61],[19,4,15,4],[19,5,15,5,"signOptions"],[19,16,15,16],[20,4,16,4,"constructor"],[20,15,16,15,"constructor"],[20,16,16,16,"registry"],[20,24,16,24],[20,26,16,26,"value"],[20,31,16,31],[20,33,16,33],[21,6,17,8],[21,11,17,13],[21,12,17,14,"registry"],[21,20,17,22],[21,22,17,24],[21,23,17,25],[21,24,17,26],[21,26,17,28,"util_1"],[21,32,17,34],[21,33,17,35,"objectSpread"],[21,45,17,47],[21,47,17,49],[22,8,17,51,"method"],[22,14,17,57],[22,16,17,59],[23,6,17,67],[23,7,17,68],[23,9,17,70,"registry"],[23,17,17,78],[23,18,17,79,"getSignedExtensionTypes"],[23,41,17,102],[23,42,17,103],[23,43,17,104],[23,45,17,106,"registry"],[23,53,17,114],[23,54,17,115,"getSignedExtensionExtra"],[23,77,17,138],[23,78,17,139],[23,79,17,140],[23,80,17,141],[23,82,17,143],[23,83,17,144],[23,84,17,145],[23,86,17,147,"ExtrinsicPayload_js_1"],[23,107,17,168],[23,108,17,169,"decodeAssetId"],[23,121,17,182],[23,123,17,184,"registry"],[23,131,17,192],[23,133,17,194,"value"],[23,138,17,199],[23,139,17,200],[23,140,17,201],[24,6,18,8],[25,6,19,8],[26,6,20,8],[27,6,21,8],[27,10,21,12],[27,11,21,13],[27,12,21,14,"signOptions"],[27,23,21,25],[27,26,21,28],[28,8,22,12,"withType"],[28,16,22,20],[28,18,22,22,"registry"],[28,26,22,30],[28,27,22,31,"createTypeUnsafe"],[28,43,22,47],[28,44,22,48],[28,64,22,68],[28,66,22,70],[28,68,22,72],[28,69,22,73],[28,81,22,85,"types_codec_1"],[28,94,22,98],[28,95,22,99,"Enum"],[29,6,23,8],[29,7,23,9],[30,4,24,4],[31,4,25,4],[32,0,26,0],[33,0,27,0],[34,4,28,4,"inspect"],[34,11,28,11,"inspect"],[34,12,28,11],[34,14,28,14],[35,6,29,8],[35,13,29,15],[35,18,29,20],[35,19,29,21,"inspect"],[35,26,29,28],[35,27,29,29],[36,8,29,31,"method"],[36,14,29,37],[36,16,29,39],[37,6,29,44],[37,7,29,45],[37,8,29,46],[38,4,30,4],[39,4,31,4],[40,0,32,0],[41,0,33,0],[42,4,34,4],[42,8,34,8,"blockHash"],[42,17,34,17,"blockHash"],[42,18,34,17],[42,20,34,20],[43,6,35,8],[43,13,35,15],[43,17,35,19],[43,18,35,20,"getT"],[43,22,35,24],[43,23,35,25],[43,34,35,36],[43,35,35,37],[44,4,36,4],[45,4,37,4],[46,0,38,0],[47,0,39,0],[48,4,40,4],[48,8,40,8,"era"],[48,11,40,11,"era"],[48,12,40,11],[48,14,40,14],[49,6,41,8],[49,13,41,15],[49,17,41,19],[49,18,41,20,"getT"],[49,22,41,24],[49,23,41,25],[49,28,41,30],[49,29,41,31],[50,4,42,4],[51,4,43,4],[52,0,44,0],[53,0,45,0],[54,4,46,4],[54,8,46,8,"genesisHash"],[54,19,46,19,"genesisHash"],[54,20,46,19],[54,22,46,22],[55,6,47,8],[55,13,47,15],[55,17,47,19],[55,18,47,20,"getT"],[55,22,47,24],[55,23,47,25],[55,36,47,38],[55,37,47,39],[56,4,48,4],[57,4,49,4],[58,0,50,0],[59,0,51,0],[60,4,52,4],[60,8,52,8,"method"],[60,14,52,14,"method"],[60,15,52,14],[60,17,52,17],[61,6,53,8],[61,13,53,15],[61,17,53,19],[61,18,53,20,"getT"],[61,22,53,24],[61,23,53,25],[61,31,53,33],[61,32,53,34],[62,4,54,4],[63,4,55,4],[64,0,56,0],[65,0,57,0],[66,4,58,4],[66,8,58,8,"nonce"],[66,13,58,13,"nonce"],[66,14,58,13],[66,16,58,16],[67,6,59,8],[67,13,59,15],[67,17,59,19],[67,18,59,20,"getT"],[67,22,59,24],[67,23,59,25],[67,30,59,32],[67,31,59,33],[68,4,60,4],[69,4,61,4],[70,0,62,0],[71,0,63,0],[72,4,64,4],[72,8,64,8,"specVersion"],[72,19,64,19,"specVersion"],[72,20,64,19],[72,22,64,22],[73,6,65,8],[73,13,65,15],[73,17,65,19],[73,18,65,20,"getT"],[73,22,65,24],[73,23,65,25],[73,36,65,38],[73,37,65,39],[74,4,66,4],[75,4,67,4],[76,0,68,0],[77,0,69,0],[78,4,70,4],[78,8,70,8,"tip"],[78,11,70,11,"tip"],[78,12,70,11],[78,14,70,14],[79,6,71,8],[79,13,71,15],[79,17,71,19],[79,18,71,20,"getT"],[79,22,71,24],[79,23,71,25],[79,28,71,30],[79,29,71,31],[80,4,72,4],[81,4,73,4],[82,0,74,0],[83,0,75,0],[84,4,76,4],[84,8,76,8,"transactionVersion"],[84,26,76,26,"transactionVersion"],[84,27,76,26],[84,29,76,29],[85,6,77,8],[85,13,77,15],[85,17,77,19],[85,18,77,20,"getT"],[85,22,77,24],[85,23,77,25],[85,43,77,45],[85,44,77,46],[86,4,78,4],[87,4,79,4],[88,0,80,0],[89,0,81,0],[90,4,82,4],[90,8,82,8,"assetId"],[90,15,82,15,"assetId"],[90,16,82,15],[90,18,82,18],[91,6,83,8],[91,13,83,15],[91,17,83,19],[91,18,83,20,"getT"],[91,22,83,24],[91,23,83,25],[91,32,83,34],[91,33,83,35],[92,4,84,4],[93,4,85,4],[94,0,86,0],[95,0,87,0],[96,4,88,4],[96,8,88,8,"metadataHash"],[96,20,88,20,"metadataHash"],[96,21,88,20],[96,23,88,23],[97,6,89,8],[97,13,89,15],[97,17,89,19],[97,18,89,20,"getT"],[97,22,89,24],[97,23,89,25],[97,37,89,39],[97,38,89,40],[98,4,90,4],[99,4,91,4],[100,0,92,0],[101,0,93,0],[102,4,94,4,"sign"],[102,8,94,8,"sign"],[102,9,94,9,"signerPair"],[102,19,94,19],[102,21,94,21],[103,6,95,8],[104,6,96,8],[105,6,97,8],[106,6,98,8],[107,6,99,8],[108,6,100,8],[108,13,100,15],[108,14,100,16],[108,15,100,17],[108,17,100,19,"util_js_1"],[108,26,100,28],[108,27,100,29,"sign"],[108,31,100,33],[108,33,100,35],[108,37,100,39],[108,38,100,40,"registry"],[108,46,100,48],[108,48,100,50,"signerPair"],[108,58,100,60],[108,60,100,62],[108,64,100,66],[108,65,100,67,"toU8a"],[108,70,100,72],[108,71,100,73],[109,8,100,75,"method"],[109,14,100,81],[109,16,100,83],[110,6,100,88],[110,7,100,89],[110,8,100,90],[110,10,100,92],[110,14,100,96],[110,15,100,97],[110,16,100,98,"signOptions"],[110,27,100,109],[110,28,100,110],[111,4,101,4],[112,2,102,0],[113,2,103,0,"exports"],[113,9,103,7],[113,10,103,8,"GenericExtrinsicPayloadV4"],[113,35,103,33],[113,38,103,36,"GenericExtrinsicPayloadV4"],[113,63,103,61],[114,0,103,62],[114,3]],"functionMap":{"names":["<global>","GenericExtrinsicPayloadV4","GenericExtrinsicPayloadV4#constructor","GenericExtrinsicPayloadV4#inspect","GenericExtrinsicPayloadV4#get__blockHash","GenericExtrinsicPayloadV4#get__era","GenericExtrinsicPayloadV4#get__genesisHash","GenericExtrinsicPayloadV4#get__method","GenericExtrinsicPayloadV4#get__nonce","GenericExtrinsicPayloadV4#get__specVersion","GenericExtrinsicPayloadV4#get__tip","GenericExtrinsicPayloadV4#get__transactionVersion","GenericExtrinsicPayloadV4#get__assetId","GenericExtrinsicPayloadV4#get__metadataHash","GenericExtrinsicPayloadV4#sign"],"mappings":"AAA;ACa;ICE;KDQ;IEI;KFE;IGI;KHE;III;KJE;IKI;KLE;IMI;KNE;IOI;KPE;IQI;KRE;ISI;KTE;IUI;KVE;IWI;KXE;IYI;KZE;IaI;KbO;CDC"},"hasCjsExports":true},"type":"js/module"}]} |