mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 14:31:02 +00:00
1 line
11 KiB
Plaintext
1 line
11 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":53,"index":53}}],"key":"4J9mGJyxcRzjwnWeFPHBw1ClKiw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":54},"end":{"line":2,"column":46,"index":100}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"../ExtrinsicPayload.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":101},"end":{"line":3,"column":55,"index":156}}],"key":"80gXtzo6gmXdChwiFM28rWFzLGM=","exportNames":["*"],"imports":1}},{"name":"../util.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":4,"column":0,"index":157},"end":{"line":4,"column":34,"index":191}}],"key":"kanFP5HUYYYoVhDf3d7saim1ZXY=","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, \"GenericExtrinsicPayloadV4\", {\n enumerable: true,\n get: function () {\n return GenericExtrinsicPayloadV4;\n }\n });\n var _polkadotTypesCodec = require(_dependencyMap[0], \"@polkadot/types-codec\");\n var _polkadotUtil = require(_dependencyMap[1], \"@polkadot/util\");\n var _ExtrinsicPayloadJs = require(_dependencyMap[2], \"../ExtrinsicPayload.js\");\n var _utilJs = 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 _polkadotTypesCodec.Struct {\n #signOptions;\n constructor(registry, value) {\n super(registry, (0, _polkadotUtil.objectSpread)({\n method: 'Bytes'\n }, registry.getSignedExtensionTypes(), registry.getSignedExtensionExtra()), (0, _ExtrinsicPayloadJs.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 _polkadotTypesCodec.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, _utilJs.sign)(this.registry, signerPair, this.toU8a({\n method: true\n }), this.#signOptions);\n }\n }\n});","lineCount":118,"map":[[7,2,11,0,"Object"],[7,8,11,0],[7,9,11,0,"defineProperty"],[7,23,11,0],[7,24,11,0,"exports"],[7,31,11,0],[8,4,11,0,"enumerable"],[8,14,11,0],[9,4,11,0,"get"],[9,7,11,0],[9,18,11,0,"get"],[9,19,11,0],[10,6,11,0],[10,13,11,0,"GenericExtrinsicPayloadV4"],[10,38,11,0],[11,4,11,0],[12,2,11,0],[13,2,1,0],[13,6,1,0,"_polkadotTypesCodec"],[13,25,1,0],[13,28,1,0,"require"],[13,35,1,0],[13,36,1,0,"_dependencyMap"],[13,50,1,0],[14,2,2,0],[14,6,2,0,"_polkadotUtil"],[14,19,2,0],[14,22,2,0,"require"],[14,29,2,0],[14,30,2,0,"_dependencyMap"],[14,44,2,0],[15,2,3,0],[15,6,3,0,"_ExtrinsicPayloadJs"],[15,25,3,0],[15,28,3,0,"require"],[15,35,3,0],[15,36,3,0,"_dependencyMap"],[15,50,3,0],[16,2,4,0],[16,6,4,0,"_utilJs"],[16,13,4,0],[16,16,4,0,"require"],[16,23,4,0],[16,24,4,0,"_dependencyMap"],[16,38,4,0],[17,2,5,0],[18,0,6,0],[19,0,7,0],[20,0,8,0],[21,0,9,0],[22,0,10,0],[23,2,11,7],[23,8,11,13,"GenericExtrinsicPayloadV4"],[23,33,11,38],[23,42,11,47,"Struct"],[23,61,11,53],[23,62,11,53,"Struct"],[23,68,11,53],[23,69,11,54],[24,4,12,4],[24,5,12,5,"signOptions"],[24,16,12,16],[25,4,13,4,"constructor"],[25,15,13,15,"constructor"],[25,16,13,16,"registry"],[25,24,13,24],[25,26,13,26,"value"],[25,31,13,31],[25,33,13,33],[26,6,14,8],[26,11,14,13],[26,12,14,14,"registry"],[26,20,14,22],[26,22,14,24],[26,26,14,24,"objectSpread"],[26,39,14,36],[26,40,14,36,"objectSpread"],[26,52,14,36],[26,54,14,37],[27,8,14,39,"method"],[27,14,14,45],[27,16,14,47],[28,6,14,55],[28,7,14,56],[28,9,14,58,"registry"],[28,17,14,66],[28,18,14,67,"getSignedExtensionTypes"],[28,41,14,90],[28,42,14,91],[28,43,14,92],[28,45,14,94,"registry"],[28,53,14,102],[28,54,14,103,"getSignedExtensionExtra"],[28,77,14,126],[28,78,14,127],[28,79,14,128],[28,80,14,129],[28,82,14,131],[28,86,14,131,"decodeAssetId"],[28,105,14,144],[28,106,14,144,"decodeAssetId"],[28,119,14,144],[28,121,14,145,"registry"],[28,129,14,153],[28,131,14,155,"value"],[28,136,14,160],[28,137,14,161],[28,138,14,162],[29,6,15,8],[30,6,16,8],[31,6,17,8],[32,6,18,8],[32,10,18,12],[32,11,18,13],[32,12,18,14,"signOptions"],[32,23,18,25],[32,26,18,28],[33,8,19,12,"withType"],[33,16,19,20],[33,18,19,22,"registry"],[33,26,19,30],[33,27,19,31,"createTypeUnsafe"],[33,43,19,47],[33,44,19,48],[33,64,19,68],[33,66,19,70],[33,68,19,72],[33,69,19,73],[33,81,19,85,"Enum"],[33,100,19,89],[33,101,19,89,"Enum"],[34,6,20,8],[34,7,20,9],[35,4,21,4],[36,4,22,4],[37,0,23,0],[38,0,24,0],[39,4,25,4,"inspect"],[39,11,25,11,"inspect"],[39,12,25,11],[39,14,25,14],[40,6,26,8],[40,13,26,15],[40,18,26,20],[40,19,26,21,"inspect"],[40,26,26,28],[40,27,26,29],[41,8,26,31,"method"],[41,14,26,37],[41,16,26,39],[42,6,26,44],[42,7,26,45],[42,8,26,46],[43,4,27,4],[44,4,28,4],[45,0,29,0],[46,0,30,0],[47,4,31,4],[47,8,31,8,"blockHash"],[47,17,31,17,"blockHash"],[47,18,31,17],[47,20,31,20],[48,6,32,8],[48,13,32,15],[48,17,32,19],[48,18,32,20,"getT"],[48,22,32,24],[48,23,32,25],[48,34,32,36],[48,35,32,37],[49,4,33,4],[50,4,34,4],[51,0,35,0],[52,0,36,0],[53,4,37,4],[53,8,37,8,"era"],[53,11,37,11,"era"],[53,12,37,11],[53,14,37,14],[54,6,38,8],[54,13,38,15],[54,17,38,19],[54,18,38,20,"getT"],[54,22,38,24],[54,23,38,25],[54,28,38,30],[54,29,38,31],[55,4,39,4],[56,4,40,4],[57,0,41,0],[58,0,42,0],[59,4,43,4],[59,8,43,8,"genesisHash"],[59,19,43,19,"genesisHash"],[59,20,43,19],[59,22,43,22],[60,6,44,8],[60,13,44,15],[60,17,44,19],[60,18,44,20,"getT"],[60,22,44,24],[60,23,44,25],[60,36,44,38],[60,37,44,39],[61,4,45,4],[62,4,46,4],[63,0,47,0],[64,0,48,0],[65,4,49,4],[65,8,49,8,"method"],[65,14,49,14,"method"],[65,15,49,14],[65,17,49,17],[66,6,50,8],[66,13,50,15],[66,17,50,19],[66,18,50,20,"getT"],[66,22,50,24],[66,23,50,25],[66,31,50,33],[66,32,50,34],[67,4,51,4],[68,4,52,4],[69,0,53,0],[70,0,54,0],[71,4,55,4],[71,8,55,8,"nonce"],[71,13,55,13,"nonce"],[71,14,55,13],[71,16,55,16],[72,6,56,8],[72,13,56,15],[72,17,56,19],[72,18,56,20,"getT"],[72,22,56,24],[72,23,56,25],[72,30,56,32],[72,31,56,33],[73,4,57,4],[74,4,58,4],[75,0,59,0],[76,0,60,0],[77,4,61,4],[77,8,61,8,"specVersion"],[77,19,61,19,"specVersion"],[77,20,61,19],[77,22,61,22],[78,6,62,8],[78,13,62,15],[78,17,62,19],[78,18,62,20,"getT"],[78,22,62,24],[78,23,62,25],[78,36,62,38],[78,37,62,39],[79,4,63,4],[80,4,64,4],[81,0,65,0],[82,0,66,0],[83,4,67,4],[83,8,67,8,"tip"],[83,11,67,11,"tip"],[83,12,67,11],[83,14,67,14],[84,6,68,8],[84,13,68,15],[84,17,68,19],[84,18,68,20,"getT"],[84,22,68,24],[84,23,68,25],[84,28,68,30],[84,29,68,31],[85,4,69,4],[86,4,70,4],[87,0,71,0],[88,0,72,0],[89,4,73,4],[89,8,73,8,"transactionVersion"],[89,26,73,26,"transactionVersion"],[89,27,73,26],[89,29,73,29],[90,6,74,8],[90,13,74,15],[90,17,74,19],[90,18,74,20,"getT"],[90,22,74,24],[90,23,74,25],[90,43,74,45],[90,44,74,46],[91,4,75,4],[92,4,76,4],[93,0,77,0],[94,0,78,0],[95,4,79,4],[95,8,79,8,"assetId"],[95,15,79,15,"assetId"],[95,16,79,15],[95,18,79,18],[96,6,80,8],[96,13,80,15],[96,17,80,19],[96,18,80,20,"getT"],[96,22,80,24],[96,23,80,25],[96,32,80,34],[96,33,80,35],[97,4,81,4],[98,4,82,4],[99,0,83,0],[100,0,84,0],[101,4,85,4],[101,8,85,8,"metadataHash"],[101,20,85,20,"metadataHash"],[101,21,85,20],[101,23,85,23],[102,6,86,8],[102,13,86,15],[102,17,86,19],[102,18,86,20,"getT"],[102,22,86,24],[102,23,86,25],[102,37,86,39],[102,38,86,40],[103,4,87,4],[104,4,88,4],[105,0,89,0],[106,0,90,0],[107,4,91,4,"sign"],[107,8,91,8,"sign"],[107,9,91,9,"signerPair"],[107,19,91,19],[107,21,91,21],[108,6,92,8],[109,6,93,8],[110,6,94,8],[111,6,95,8],[112,6,96,8],[113,6,97,8],[113,13,97,15],[113,17,97,15,"sign"],[113,24,97,19],[113,25,97,19,"sign"],[113,29,97,19],[113,31,97,20],[113,35,97,24],[113,36,97,25,"registry"],[113,44,97,33],[113,46,97,35,"signerPair"],[113,56,97,45],[113,58,97,47],[113,62,97,51],[113,63,97,52,"toU8a"],[113,68,97,57],[113,69,97,58],[114,8,97,60,"method"],[114,14,97,66],[114,16,97,68],[115,6,97,73],[115,7,97,74],[115,8,97,75],[115,10,97,77],[115,14,97,81],[115,15,97,82],[115,16,97,83,"signOptions"],[115,27,97,94],[115,28,97,95],[116,4,98,4],[117,2,99,0],[118,0,99,1],[118,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;OCU;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":false},"type":"js/module"}]} |