mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 04:11:02 +00:00
1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":44,"index":44}}],"key":"4J9mGJyxcRzjwnWeFPHBw1ClKiw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":45},"end":{"line":2,"column":84,"index":129}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util-crypto","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":130},"end":{"line":3,"column":69,"index":199}}],"key":"i6n5nZx9jV9OWiqinE0v9Jgj+DA=","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, \"GenericAccountIndex\", {\n enumerable: true,\n get: function () {\n return GenericAccountIndex;\n }\n });\n var _polkadotTypesCodec = require(_dependencyMap[0], \"@polkadot/types-codec\");\n var _polkadotUtil = require(_dependencyMap[1], \"@polkadot/util\");\n var _polkadotUtilCrypto = require(_dependencyMap[2], \"@polkadot/util-crypto\");\n const PREFIX_1BYTE = 0xef;\n const PREFIX_2BYTE = 0xfc;\n const PREFIX_4BYTE = 0xfd;\n const PREFIX_8BYTE = 0xfe;\n const MAX_1BYTE = new _polkadotUtil.BN(PREFIX_1BYTE);\n const MAX_2BYTE = new _polkadotUtil.BN(1).shln(16);\n const MAX_4BYTE = new _polkadotUtil.BN(1).shln(32);\n /** @internal */\n function decodeAccountIndex(value) {\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n if (value instanceof GenericAccountIndex) {\n // `value.toBn()` on AccountIndex returns a pure BN (i.e. not an\n // AccountIndex), which has the initial `toString()` implementation.\n return value.toBn();\n } else if ((0, _polkadotUtil.isBn)(value) || (0, _polkadotUtil.isNumber)(value) || (0, _polkadotUtil.isHex)(value) || (0, _polkadotUtil.isU8a)(value) || (0, _polkadotUtil.isBigInt)(value)) {\n return value;\n }\n return decodeAccountIndex((0, _polkadotUtilCrypto.decodeAddress)(value));\n }\n /**\n * @name GenericAccountIndex\n * @description\n * A wrapper around an AccountIndex, which is a shortened, variable-length encoding\n * for an Account. We extends from [[U32]] to provide the number-like properties.\n */\n class GenericAccountIndex extends _polkadotTypesCodec.u32 {\n constructor(registry, value = new _polkadotUtil.BN(0)) {\n super(registry, decodeAccountIndex(value));\n }\n static calcLength(_value) {\n const value = (0, _polkadotUtil.bnToBn)(_value);\n if (value.lte(MAX_1BYTE)) {\n return 1;\n } else if (value.lt(MAX_2BYTE)) {\n return 2;\n } else if (value.lt(MAX_4BYTE)) {\n return 4;\n }\n return 8;\n }\n static readLength(input) {\n const first = input[0];\n if (first === PREFIX_2BYTE) {\n return [1, 2];\n } else if (first === PREFIX_4BYTE) {\n return [1, 4];\n } else if (first === PREFIX_8BYTE) {\n return [1, 8];\n }\n return [0, 1];\n }\n static writeLength(input) {\n switch (input.length) {\n case 2:\n return new Uint8Array([PREFIX_2BYTE]);\n case 4:\n return new Uint8Array([PREFIX_4BYTE]);\n case 8:\n return new Uint8Array([PREFIX_8BYTE]);\n default:\n return new Uint8Array([]);\n }\n }\n /**\n * @description Compares the value of the input to see if there is a match\n */\n eq(other) {\n // shortcut for BN or Number, don't create an object\n if ((0, _polkadotUtil.isBn)(other) || (0, _polkadotUtil.isNumber)(other)) {\n return super.eq(other);\n }\n // convert and compare\n return super.eq(this.registry.createTypeUnsafe('AccountIndex', [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 const length = GenericAccountIndex.calcLength(this);\n return (0, _polkadotUtilCrypto.encodeAddress)(this.toU8a().subarray(0, length), this.registry.chainSS58);\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return 'AccountIndex';\n }\n }\n});","lineCount":122,"map":[[7,2,30,0,"Object"],[7,8,30,0],[7,9,30,0,"defineProperty"],[7,23,30,0],[7,24,30,0,"exports"],[7,31,30,0],[8,4,30,0,"enumerable"],[8,14,30,0],[9,4,30,0,"get"],[9,7,30,0],[9,18,30,0,"get"],[9,19,30,0],[10,6,30,0],[10,13,30,0,"GenericAccountIndex"],[10,32,30,0],[11,4,30,0],[12,2,30,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,"_polkadotUtilCrypto"],[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,8,4,6,"PREFIX_1BYTE"],[16,20,4,18],[16,23,4,21],[16,27,4,25],[17,2,5,0],[17,8,5,6,"PREFIX_2BYTE"],[17,20,5,18],[17,23,5,21],[17,27,5,25],[18,2,6,0],[18,8,6,6,"PREFIX_4BYTE"],[18,20,6,18],[18,23,6,21],[18,27,6,25],[19,2,7,0],[19,8,7,6,"PREFIX_8BYTE"],[19,20,7,18],[19,23,7,21],[19,27,7,25],[20,2,8,0],[20,8,8,6,"MAX_1BYTE"],[20,17,8,15],[20,20,8,18],[20,24,8,22,"BN"],[20,37,8,24],[20,38,8,24,"BN"],[20,40,8,24],[20,41,8,25,"PREFIX_1BYTE"],[20,53,8,37],[20,54,8,38],[21,2,9,0],[21,8,9,6,"MAX_2BYTE"],[21,17,9,15],[21,20,9,18],[21,24,9,22,"BN"],[21,37,9,24],[21,38,9,24,"BN"],[21,40,9,24],[21,41,9,25],[21,42,9,26],[21,43,9,27],[21,44,9,28,"shln"],[21,48,9,32],[21,49,9,33],[21,51,9,35],[21,52,9,36],[22,2,10,0],[22,8,10,6,"MAX_4BYTE"],[22,17,10,15],[22,20,10,18],[22,24,10,22,"BN"],[22,37,10,24],[22,38,10,24,"BN"],[22,40,10,24],[22,41,10,25],[22,42,10,26],[22,43,10,27],[22,44,10,28,"shln"],[22,48,10,32],[22,49,10,33],[22,51,10,35],[22,52,10,36],[23,2,11,0],[24,2,12,0],[24,11,12,9,"decodeAccountIndex"],[24,29,12,27,"decodeAccountIndex"],[24,30,12,28,"value"],[24,35,12,33],[24,37,12,35],[25,4,13,4],[26,4,14,4],[26,8,14,8,"value"],[26,13,14,13],[26,25,14,25,"GenericAccountIndex"],[26,44,14,44],[26,46,14,46],[27,6,15,8],[28,6,16,8],[29,6,17,8],[29,13,17,15,"value"],[29,18,17,20],[29,19,17,21,"toBn"],[29,23,17,25],[29,24,17,26],[29,25,17,27],[30,4,18,4],[30,5,18,5],[30,11,19,9],[30,15,19,13],[30,19,19,13,"isBn"],[30,32,19,17],[30,33,19,17,"isBn"],[30,37,19,17],[30,39,19,18,"value"],[30,44,19,23],[30,45,19,24],[30,49,19,28],[30,53,19,28,"isNumber"],[30,66,19,36],[30,67,19,36,"isNumber"],[30,75,19,36],[30,77,19,37,"value"],[30,82,19,42],[30,83,19,43],[30,87,19,47],[30,91,19,47,"isHex"],[30,104,19,52],[30,105,19,52,"isHex"],[30,110,19,52],[30,112,19,53,"value"],[30,117,19,58],[30,118,19,59],[30,122,19,63],[30,126,19,63,"isU8a"],[30,139,19,68],[30,140,19,68,"isU8a"],[30,145,19,68],[30,147,19,69,"value"],[30,152,19,74],[30,153,19,75],[30,157,19,79],[30,161,19,79,"isBigInt"],[30,174,19,87],[30,175,19,87,"isBigInt"],[30,183,19,87],[30,185,19,88,"value"],[30,190,19,93],[30,191,19,94],[30,193,19,96],[31,6,20,8],[31,13,20,15,"value"],[31,18,20,20],[32,4,21,4],[33,4,22,4],[33,11,22,11,"decodeAccountIndex"],[33,29,22,29],[33,30,22,30],[33,34,22,30,"decodeAddress"],[33,53,22,43],[33,54,22,43,"decodeAddress"],[33,67,22,43],[33,69,22,44,"value"],[33,74,22,49],[33,75,22,50],[33,76,22,51],[34,2,23,0],[35,2,24,0],[36,0,25,0],[37,0,26,0],[38,0,27,0],[39,0,28,0],[40,0,29,0],[41,2,30,7],[41,8,30,13,"GenericAccountIndex"],[41,27,30,32],[41,36,30,41,"u32"],[41,55,30,44],[41,56,30,44,"u32"],[41,59,30,44],[41,60,30,45],[42,4,31,4,"constructor"],[42,15,31,15,"constructor"],[42,16,31,16,"registry"],[42,24,31,24],[42,26,31,26,"value"],[42,31,31,31],[42,34,31,34],[42,38,31,38,"BN"],[42,51,31,40],[42,52,31,40,"BN"],[42,54,31,40],[42,55,31,41],[42,56,31,42],[42,57,31,43],[42,59,31,45],[43,6,32,8],[43,11,32,13],[43,12,32,14,"registry"],[43,20,32,22],[43,22,32,24,"decodeAccountIndex"],[43,40,32,42],[43,41,32,43,"value"],[43,46,32,48],[43,47,32,49],[43,48,32,50],[44,4,33,4],[45,4,34,4],[45,11,34,11,"calcLength"],[45,21,34,21,"calcLength"],[45,22,34,22,"_value"],[45,28,34,28],[45,30,34,30],[46,6,35,8],[46,12,35,14,"value"],[46,17,35,19],[46,20,35,22],[46,24,35,22,"bnToBn"],[46,37,35,28],[46,38,35,28,"bnToBn"],[46,44,35,28],[46,46,35,29,"_value"],[46,52,35,35],[46,53,35,36],[47,6,36,8],[47,10,36,12,"value"],[47,15,36,17],[47,16,36,18,"lte"],[47,19,36,21],[47,20,36,22,"MAX_1BYTE"],[47,29,36,31],[47,30,36,32],[47,32,36,34],[48,8,37,12],[48,15,37,19],[48,16,37,20],[49,6,38,8],[49,7,38,9],[49,13,39,13],[49,17,39,17,"value"],[49,22,39,22],[49,23,39,23,"lt"],[49,25,39,25],[49,26,39,26,"MAX_2BYTE"],[49,35,39,35],[49,36,39,36],[49,38,39,38],[50,8,40,12],[50,15,40,19],[50,16,40,20],[51,6,41,8],[51,7,41,9],[51,13,42,13],[51,17,42,17,"value"],[51,22,42,22],[51,23,42,23,"lt"],[51,25,42,25],[51,26,42,26,"MAX_4BYTE"],[51,35,42,35],[51,36,42,36],[51,38,42,38],[52,8,43,12],[52,15,43,19],[52,16,43,20],[53,6,44,8],[54,6,45,8],[54,13,45,15],[54,14,45,16],[55,4,46,4],[56,4,47,4],[56,11,47,11,"readLength"],[56,21,47,21,"readLength"],[56,22,47,22,"input"],[56,27,47,27],[56,29,47,29],[57,6,48,8],[57,12,48,14,"first"],[57,17,48,19],[57,20,48,22,"input"],[57,25,48,27],[57,26,48,28],[57,27,48,29],[57,28,48,30],[58,6,49,8],[58,10,49,12,"first"],[58,15,49,17],[58,20,49,22,"PREFIX_2BYTE"],[58,32,49,34],[58,34,49,36],[59,8,50,12],[59,15,50,19],[59,16,50,20],[59,17,50,21],[59,19,50,23],[59,20,50,24],[59,21,50,25],[60,6,51,8],[60,7,51,9],[60,13,52,13],[60,17,52,17,"first"],[60,22,52,22],[60,27,52,27,"PREFIX_4BYTE"],[60,39,52,39],[60,41,52,41],[61,8,53,12],[61,15,53,19],[61,16,53,20],[61,17,53,21],[61,19,53,23],[61,20,53,24],[61,21,53,25],[62,6,54,8],[62,7,54,9],[62,13,55,13],[62,17,55,17,"first"],[62,22,55,22],[62,27,55,27,"PREFIX_8BYTE"],[62,39,55,39],[62,41,55,41],[63,8,56,12],[63,15,56,19],[63,16,56,20],[63,17,56,21],[63,19,56,23],[63,20,56,24],[63,21,56,25],[64,6,57,8],[65,6,58,8],[65,13,58,15],[65,14,58,16],[65,15,58,17],[65,17,58,19],[65,18,58,20],[65,19,58,21],[66,4,59,4],[67,4,60,4],[67,11,60,11,"writeLength"],[67,22,60,22,"writeLength"],[67,23,60,23,"input"],[67,28,60,28],[67,30,60,30],[68,6,61,8],[68,14,61,16,"input"],[68,19,61,21],[68,20,61,22,"length"],[68,26,61,28],[69,8,62,12],[69,13,62,17],[69,14,62,18],[70,10,62,20],[70,17,62,27],[70,21,62,31,"Uint8Array"],[70,31,62,41],[70,32,62,42],[70,33,62,43,"PREFIX_2BYTE"],[70,45,62,55],[70,46,62,56],[70,47,62,57],[71,8,63,12],[71,13,63,17],[71,14,63,18],[72,10,63,20],[72,17,63,27],[72,21,63,31,"Uint8Array"],[72,31,63,41],[72,32,63,42],[72,33,63,43,"PREFIX_4BYTE"],[72,45,63,55],[72,46,63,56],[72,47,63,57],[73,8,64,12],[73,13,64,17],[73,14,64,18],[74,10,64,20],[74,17,64,27],[74,21,64,31,"Uint8Array"],[74,31,64,41],[74,32,64,42],[74,33,64,43,"PREFIX_8BYTE"],[74,45,64,55],[74,46,64,56],[74,47,64,57],[75,8,65,12],[76,10,65,21],[76,17,65,28],[76,21,65,32,"Uint8Array"],[76,31,65,42],[76,32,65,43],[76,34,65,45],[76,35,65,46],[77,6,66,8],[78,4,67,4],[79,4,68,4],[80,0,69,0],[81,0,70,0],[82,4,71,4,"eq"],[82,6,71,6,"eq"],[82,7,71,7,"other"],[82,12,71,12],[82,14,71,14],[83,6,72,8],[84,6,73,8],[84,10,73,12],[84,14,73,12,"isBn"],[84,27,73,16],[84,28,73,16,"isBn"],[84,32,73,16],[84,34,73,17,"other"],[84,39,73,22],[84,40,73,23],[84,44,73,27],[84,48,73,27,"isNumber"],[84,61,73,35],[84,62,73,35,"isNumber"],[84,70,73,35],[84,72,73,36,"other"],[84,77,73,41],[84,78,73,42],[84,80,73,44],[85,8,74,12],[85,15,74,19],[85,20,74,24],[85,21,74,25,"eq"],[85,23,74,27],[85,24,74,28,"other"],[85,29,74,33],[85,30,74,34],[86,6,75,8],[87,6,76,8],[88,6,77,8],[88,13,77,15],[88,18,77,20],[88,19,77,21,"eq"],[88,21,77,23],[88,22,77,24],[88,26,77,28],[88,27,77,29,"registry"],[88,35,77,37],[88,36,77,38,"createTypeUnsafe"],[88,52,77,54],[88,53,77,55],[88,67,77,69],[88,69,77,71],[88,70,77,72,"other"],[88,75,77,77],[88,76,77,78],[88,77,77,79],[88,78,77,80],[89,4,78,4],[90,4,79,4],[91,0,80,0],[92,0,81,0],[93,4,82,4,"toHuman"],[93,11,82,11,"toHuman"],[93,12,82,11],[93,14,82,14],[94,6,83,8],[94,13,83,15],[94,17,83,19],[94,18,83,20,"toJSON"],[94,24,83,26],[94,25,83,27],[94,26,83,28],[95,4,84,4],[96,4,85,4],[97,0,86,0],[98,0,87,0],[99,4,88,4,"toJSON"],[99,10,88,10,"toJSON"],[99,11,88,10],[99,13,88,13],[100,6,89,8],[100,13,89,15],[100,17,89,19],[100,18,89,20,"toString"],[100,26,89,28],[100,27,89,29],[100,28,89,30],[101,4,90,4],[102,4,91,4],[103,0,92,0],[104,0,93,0],[105,4,94,4,"toPrimitive"],[105,15,94,15,"toPrimitive"],[105,16,94,15],[105,18,94,18],[106,6,95,8],[106,13,95,15],[106,17,95,19],[106,18,95,20,"toJSON"],[106,24,95,26],[106,25,95,27],[106,26,95,28],[107,4,96,4],[108,4,97,4],[109,0,98,0],[110,0,99,0],[111,4,100,4,"toString"],[111,12,100,12,"toString"],[111,13,100,12],[111,15,100,15],[112,6,101,8],[112,12,101,14,"length"],[112,18,101,20],[112,21,101,23,"GenericAccountIndex"],[112,40,101,42],[112,41,101,43,"calcLength"],[112,51,101,53],[112,52,101,54],[112,56,101,58],[112,57,101,59],[113,6,102,8],[113,13,102,15],[113,17,102,15,"encodeAddress"],[113,36,102,28],[113,37,102,28,"encodeAddress"],[113,50,102,28],[113,52,102,29],[113,56,102,33],[113,57,102,34,"toU8a"],[113,62,102,39],[113,63,102,40],[113,64,102,41],[113,65,102,42,"subarray"],[113,73,102,50],[113,74,102,51],[113,75,102,52],[113,77,102,54,"length"],[113,83,102,60],[113,84,102,61],[113,86,102,63],[113,90,102,67],[113,91,102,68,"registry"],[113,99,102,76],[113,100,102,77,"chainSS58"],[113,109,102,86],[113,110,102,87],[114,4,103,4],[115,4,104,4],[116,0,105,0],[117,0,106,0],[118,4,107,4,"toRawType"],[118,13,107,13,"toRawType"],[118,14,107,13],[118,16,107,16],[119,6,108,8],[119,13,108,15],[119,27,108,29],[120,4,109,4],[121,2,110,0],[122,0,110,1],[122,3]],"functionMap":{"names":["<global>","decodeAccountIndex","GenericAccountIndex","GenericAccountIndex#constructor","GenericAccountIndex.calcLength","GenericAccountIndex.readLength","GenericAccountIndex.writeLength","GenericAccountIndex#eq","GenericAccountIndex#toHuman","GenericAccountIndex#toJSON","GenericAccountIndex#toPrimitive","GenericAccountIndex#toString","GenericAccountIndex#toRawType"],"mappings":"AAA;ACW;CDW;OEO;ICC;KDE;IEC;KFY;IGC;KHY;IIC;KJO;IKI;KLO;IMI;KNE;IOI;KPE;IQI;KRE;ISI;KTG;IUI;KVE;CFC"},"hasCjsExports":false},"type":"js/module"}]} |