mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-04-28 20:27:55 +00:00
1 line
11 KiB
Plaintext
1 line
11 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":22,"index":163},"end":{"line":4,"column":54,"index":195}}],"key":"fW1yxuTjZe66ggmM4ihNuGjKSV0=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":212},"end":{"line":5,"column":40,"index":237}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util-crypto","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":22,"index":261},"end":{"line":6,"column":54,"index":293}}],"key":"ZJJnwX+B+oj5JQmnkWFMF+4Lj2M=","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.GenericAccountId33 = exports.GenericAccountId = void 0;\n const types_codec_1 = require(_dependencyMap[0], \"@polkadot/types-codec\");\n const util_1 = require(_dependencyMap[1], \"@polkadot/util\");\n const util_crypto_1 = require(_dependencyMap[2], \"@polkadot/util-crypto\");\n /** @internal */\n function decodeAccountId(value) {\n if ((0, util_1.isU8a)(value) || Array.isArray(value)) {\n return (0, util_1.u8aToU8a)(value);\n } else if (!value) {\n return new Uint8Array();\n } else if ((0, util_1.isHex)(value)) {\n return (0, util_1.hexToU8a)(value);\n } else if ((0, util_1.isString)(value)) {\n return (0, util_crypto_1.decodeAddress)(value.toString());\n }\n throw new Error(`Unknown type passed to AccountId constructor, found typeof ${typeof value}`);\n }\n class BaseAccountId extends types_codec_1.U8aFixed {\n constructor(registry, allowedBits = 256 | 264, value) {\n const decoded = decodeAccountId(value);\n const decodedBits = decoded.length * 8;\n // Part of stream containing >= 32 bytes or a all empty (defaults)\n if (decodedBits < allowedBits && decoded.some(b => b)) {\n throw new Error(`Invalid AccountId provided, expected ${allowedBits >> 3} bytes, found ${decoded.length}`);\n }\n super(registry, decoded, allowedBits);\n }\n /**\n * @description Compares the value of the input to see if there is a match\n */\n eq(other) {\n return super.eq(decodeAccountId(other));\n }\n /**\n * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information\n */\n toHuman() {\n return this.toJSON();\n }\n /**\n * @description Converts the Object to JSON, typically used for RPC transfers\n */\n toJSON() {\n return this.toString();\n }\n /**\n * @description Converts the value in a best-fit primitive form\n */\n toPrimitive() {\n return this.toJSON();\n }\n /**\n * @description Returns the string representation of the value\n */\n toString() {\n return (0, util_crypto_1.encodeAddress)(this, this.registry.chainSS58);\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return 'AccountId';\n }\n }\n /**\n * @name GenericAccountId\n * @description\n * A wrapper around an AccountId/PublicKey representation. Since we are dealing with\n * underlying PublicKeys (32 bytes in length), we extend from U8aFixed which is\n * just a Uint8Array wrapper with a fixed length.\n * If constructed with an empty value ([], \"\", undefined) it will result in\n * the zero account 0x000...000.\n */\n class GenericAccountId extends BaseAccountId {\n constructor(registry, value) {\n super(registry, 256, value);\n }\n }\n exports.GenericAccountId = GenericAccountId;\n class GenericAccountId33 extends BaseAccountId {\n constructor(registry, value) {\n super(registry, 264, value);\n }\n }\n exports.GenericAccountId33 = GenericAccountId33;\n});","lineCount":92,"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,"GenericAccountId33"],[7,28,3,26],[7,31,3,29,"exports"],[7,38,3,36],[7,39,3,37,"GenericAccountId"],[7,55,3,53],[7,58,3,56],[7,63,3,61],[7,64,3,62],[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,"util_crypto_1"],[10,21,6,19],[10,24,6,22,"require"],[10,31,6,29],[10,32,6,29,"_dependencyMap"],[10,46,6,29],[10,74,6,53],[10,75,6,54],[11,2,7,0],[12,2,8,0],[12,11,8,9,"decodeAccountId"],[12,26,8,24,"decodeAccountId"],[12,27,8,25,"value"],[12,32,8,30],[12,34,8,32],[13,4,9,4],[13,8,9,8],[13,9,9,9],[13,10,9,10],[13,12,9,12,"util_1"],[13,18,9,18],[13,19,9,19,"isU8a"],[13,24,9,24],[13,26,9,26,"value"],[13,31,9,31],[13,32,9,32],[13,36,9,36,"Array"],[13,41,9,41],[13,42,9,42,"isArray"],[13,49,9,49],[13,50,9,50,"value"],[13,55,9,55],[13,56,9,56],[13,58,9,58],[14,6,10,8],[14,13,10,15],[14,14,10,16],[14,15,10,17],[14,17,10,19,"util_1"],[14,23,10,25],[14,24,10,26,"u8aToU8a"],[14,32,10,34],[14,34,10,36,"value"],[14,39,10,41],[14,40,10,42],[15,4,11,4],[15,5,11,5],[15,11,12,9],[15,15,12,13],[15,16,12,14,"value"],[15,21,12,19],[15,23,12,21],[16,6,13,8],[16,13,13,15],[16,17,13,19,"Uint8Array"],[16,27,13,29],[16,28,13,30],[16,29,13,31],[17,4,14,4],[17,5,14,5],[17,11,15,9],[17,15,15,13],[17,16,15,14],[17,17,15,15],[17,19,15,17,"util_1"],[17,25,15,23],[17,26,15,24,"isHex"],[17,31,15,29],[17,33,15,31,"value"],[17,38,15,36],[17,39,15,37],[17,41,15,39],[18,6,16,8],[18,13,16,15],[18,14,16,16],[18,15,16,17],[18,17,16,19,"util_1"],[18,23,16,25],[18,24,16,26,"hexToU8a"],[18,32,16,34],[18,34,16,36,"value"],[18,39,16,41],[18,40,16,42],[19,4,17,4],[19,5,17,5],[19,11,18,9],[19,15,18,13],[19,16,18,14],[19,17,18,15],[19,19,18,17,"util_1"],[19,25,18,23],[19,26,18,24,"isString"],[19,34,18,32],[19,36,18,34,"value"],[19,41,18,39],[19,42,18,40],[19,44,18,42],[20,6,19,8],[20,13,19,15],[20,14,19,16],[20,15,19,17],[20,17,19,19,"util_crypto_1"],[20,30,19,32],[20,31,19,33,"decodeAddress"],[20,44,19,46],[20,46,19,48,"value"],[20,51,19,53],[20,52,19,54,"toString"],[20,60,19,62],[20,61,19,63],[20,62,19,64],[20,63,19,65],[21,4,20,4],[22,4,21,4],[22,10,21,10],[22,14,21,14,"Error"],[22,19,21,19],[22,20,21,20],[22,82,21,82],[22,89,21,89,"value"],[22,94,21,94],[22,96,21,96],[22,97,21,97],[23,2,22,0],[24,2,23,0],[24,8,23,6,"BaseAccountId"],[24,21,23,19],[24,30,23,28,"types_codec_1"],[24,43,23,41],[24,44,23,42,"U8aFixed"],[24,52,23,50],[24,53,23,51],[25,4,24,4,"constructor"],[25,15,24,15,"constructor"],[25,16,24,16,"registry"],[25,24,24,24],[25,26,24,26,"allowedBits"],[25,37,24,37],[25,40,24,40],[25,43,24,43],[25,46,24,46],[25,49,24,49],[25,51,24,51,"value"],[25,56,24,56],[25,58,24,58],[26,6,25,8],[26,12,25,14,"decoded"],[26,19,25,21],[26,22,25,24,"decodeAccountId"],[26,37,25,39],[26,38,25,40,"value"],[26,43,25,45],[26,44,25,46],[27,6,26,8],[27,12,26,14,"decodedBits"],[27,23,26,25],[27,26,26,28,"decoded"],[27,33,26,35],[27,34,26,36,"length"],[27,40,26,42],[27,43,26,45],[27,44,26,46],[28,6,27,8],[29,6,28,8],[29,10,28,12,"decodedBits"],[29,21,28,23],[29,24,28,26,"allowedBits"],[29,35,28,37],[29,39,28,41,"decoded"],[29,46,28,48],[29,47,28,49,"some"],[29,51,28,53],[29,52,28,55,"b"],[29,53,28,56],[29,57,28,61,"b"],[29,58,28,62],[29,59,28,63],[29,61,28,65],[30,8,29,12],[30,14,29,18],[30,18,29,22,"Error"],[30,23,29,27],[30,24,29,28],[30,64,29,68,"allowedBits"],[30,75,29,79],[30,79,29,83],[30,80,29,84],[30,97,29,101,"decoded"],[30,104,29,108],[30,105,29,109,"length"],[30,111,29,115],[30,113,29,117],[30,114,29,118],[31,6,30,8],[32,6,31,8],[32,11,31,13],[32,12,31,14,"registry"],[32,20,31,22],[32,22,31,24,"decoded"],[32,29,31,31],[32,31,31,33,"allowedBits"],[32,42,31,44],[32,43,31,45],[33,4,32,4],[34,4,33,4],[35,0,34,0],[36,0,35,0],[37,4,36,4,"eq"],[37,6,36,6,"eq"],[37,7,36,7,"other"],[37,12,36,12],[37,14,36,14],[38,6,37,8],[38,13,37,15],[38,18,37,20],[38,19,37,21,"eq"],[38,21,37,23],[38,22,37,24,"decodeAccountId"],[38,37,37,39],[38,38,37,40,"other"],[38,43,37,45],[38,44,37,46],[38,45,37,47],[39,4,38,4],[40,4,39,4],[41,0,40,0],[42,0,41,0],[43,4,42,4,"toHuman"],[43,11,42,11,"toHuman"],[43,12,42,11],[43,14,42,14],[44,6,43,8],[44,13,43,15],[44,17,43,19],[44,18,43,20,"toJSON"],[44,24,43,26],[44,25,43,27],[44,26,43,28],[45,4,44,4],[46,4,45,4],[47,0,46,0],[48,0,47,0],[49,4,48,4,"toJSON"],[49,10,48,10,"toJSON"],[49,11,48,10],[49,13,48,13],[50,6,49,8],[50,13,49,15],[50,17,49,19],[50,18,49,20,"toString"],[50,26,49,28],[50,27,49,29],[50,28,49,30],[51,4,50,4],[52,4,51,4],[53,0,52,0],[54,0,53,0],[55,4,54,4,"toPrimitive"],[55,15,54,15,"toPrimitive"],[55,16,54,15],[55,18,54,18],[56,6,55,8],[56,13,55,15],[56,17,55,19],[56,18,55,20,"toJSON"],[56,24,55,26],[56,25,55,27],[56,26,55,28],[57,4,56,4],[58,4,57,4],[59,0,58,0],[60,0,59,0],[61,4,60,4,"toString"],[61,12,60,12,"toString"],[61,13,60,12],[61,15,60,15],[62,6,61,8],[62,13,61,15],[62,14,61,16],[62,15,61,17],[62,17,61,19,"util_crypto_1"],[62,30,61,32],[62,31,61,33,"encodeAddress"],[62,44,61,46],[62,46,61,48],[62,50,61,52],[62,52,61,54],[62,56,61,58],[62,57,61,59,"registry"],[62,65,61,67],[62,66,61,68,"chainSS58"],[62,75,61,77],[62,76,61,78],[63,4,62,4],[64,4,63,4],[65,0,64,0],[66,0,65,0],[67,4,66,4,"toRawType"],[67,13,66,13,"toRawType"],[67,14,66,13],[67,16,66,16],[68,6,67,8],[68,13,67,15],[68,24,67,26],[69,4,68,4],[70,2,69,0],[71,2,70,0],[72,0,71,0],[73,0,72,0],[74,0,73,0],[75,0,74,0],[76,0,75,0],[77,0,76,0],[78,0,77,0],[79,0,78,0],[80,2,79,0],[80,8,79,6,"GenericAccountId"],[80,24,79,22],[80,33,79,31,"BaseAccountId"],[80,46,79,44],[80,47,79,45],[81,4,80,4,"constructor"],[81,15,80,15,"constructor"],[81,16,80,16,"registry"],[81,24,80,24],[81,26,80,26,"value"],[81,31,80,31],[81,33,80,33],[82,6,81,8],[82,11,81,13],[82,12,81,14,"registry"],[82,20,81,22],[82,22,81,24],[82,25,81,27],[82,27,81,29,"value"],[82,32,81,34],[82,33,81,35],[83,4,82,4],[84,2,83,0],[85,2,84,0,"exports"],[85,9,84,7],[85,10,84,8,"GenericAccountId"],[85,26,84,24],[85,29,84,27,"GenericAccountId"],[85,45,84,43],[86,2,85,0],[86,8,85,6,"GenericAccountId33"],[86,26,85,24],[86,35,85,33,"BaseAccountId"],[86,48,85,46],[86,49,85,47],[87,4,86,4,"constructor"],[87,15,86,15,"constructor"],[87,16,86,16,"registry"],[87,24,86,24],[87,26,86,26,"value"],[87,31,86,31],[87,33,86,33],[88,6,87,8],[88,11,87,13],[88,12,87,14,"registry"],[88,20,87,22],[88,22,87,24],[88,25,87,27],[88,27,87,29,"value"],[88,32,87,34],[88,33,87,35],[89,4,88,4],[90,2,89,0],[91,2,90,0,"exports"],[91,9,90,7],[91,10,90,8,"GenericAccountId33"],[91,28,90,26],[91,31,90,29,"GenericAccountId33"],[91,49,90,47],[92,0,90,48],[92,3]],"functionMap":{"names":["<global>","decodeAccountId","BaseAccountId","BaseAccountId#constructor","decoded.some$argument_0","BaseAccountId#eq","BaseAccountId#toHuman","BaseAccountId#toJSON","BaseAccountId#toPrimitive","BaseAccountId#toString","BaseAccountId#toRawType","GenericAccountId","GenericAccountId#constructor","GenericAccountId33","GenericAccountId33#constructor"],"mappings":"AAA;ACO;CDc;AEC;ICC;sDCI,QD;KDI;IGI;KHE;III;KJE;IKI;KLE;IMI;KNE;IOI;KPE;IQI;KRE;CFC;AWU;ICC;KDE;CXC;AaE;ICC;KDE;CbC"},"hasCjsExports":true},"type":"js/module"}]} |