mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 16:51:02 +00:00
1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":22,"index":137},"end":{"line":4,"column":54,"index":169}}],"key":"fW1yxuTjZe66ggmM4ihNuGjKSV0=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":186},"end":{"line":5,"column":40,"index":211}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util-crypto","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":22,"index":235},"end":{"line":6,"column":54,"index":267}}],"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.GenericAccountIndex = 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 const PREFIX_1BYTE = 0xef;\n const PREFIX_2BYTE = 0xfc;\n const PREFIX_4BYTE = 0xfd;\n const PREFIX_8BYTE = 0xfe;\n const MAX_1BYTE = new util_1.BN(PREFIX_1BYTE);\n const MAX_2BYTE = new util_1.BN(1).shln(16);\n const MAX_4BYTE = new util_1.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, util_1.isBn)(value) || (0, util_1.isNumber)(value) || (0, util_1.isHex)(value) || (0, util_1.isU8a)(value) || (0, util_1.isBigInt)(value)) {\n return value;\n }\n return decodeAccountIndex((0, util_crypto_1.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 types_codec_1.u32 {\n constructor(registry, value = new util_1.BN(0)) {\n super(registry, decodeAccountIndex(value));\n }\n static calcLength(_value) {\n const value = (0, util_1.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, util_1.isBn)(other) || (0, util_1.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, util_crypto_1.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 exports.GenericAccountIndex = GenericAccountIndex;\n});","lineCount":118,"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,"GenericAccountIndex"],[7,29,3,27],[7,32,3,30],[7,37,3,35],[7,38,3,36],[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],[11,8,7,6,"PREFIX_1BYTE"],[11,20,7,18],[11,23,7,21],[11,27,7,25],[12,2,8,0],[12,8,8,6,"PREFIX_2BYTE"],[12,20,8,18],[12,23,8,21],[12,27,8,25],[13,2,9,0],[13,8,9,6,"PREFIX_4BYTE"],[13,20,9,18],[13,23,9,21],[13,27,9,25],[14,2,10,0],[14,8,10,6,"PREFIX_8BYTE"],[14,20,10,18],[14,23,10,21],[14,27,10,25],[15,2,11,0],[15,8,11,6,"MAX_1BYTE"],[15,17,11,15],[15,20,11,18],[15,24,11,22,"util_1"],[15,30,11,28],[15,31,11,29,"BN"],[15,33,11,31],[15,34,11,32,"PREFIX_1BYTE"],[15,46,11,44],[15,47,11,45],[16,2,12,0],[16,8,12,6,"MAX_2BYTE"],[16,17,12,15],[16,20,12,18],[16,24,12,22,"util_1"],[16,30,12,28],[16,31,12,29,"BN"],[16,33,12,31],[16,34,12,32],[16,35,12,33],[16,36,12,34],[16,37,12,35,"shln"],[16,41,12,39],[16,42,12,40],[16,44,12,42],[16,45,12,43],[17,2,13,0],[17,8,13,6,"MAX_4BYTE"],[17,17,13,15],[17,20,13,18],[17,24,13,22,"util_1"],[17,30,13,28],[17,31,13,29,"BN"],[17,33,13,31],[17,34,13,32],[17,35,13,33],[17,36,13,34],[17,37,13,35,"shln"],[17,41,13,39],[17,42,13,40],[17,44,13,42],[17,45,13,43],[18,2,14,0],[19,2,15,0],[19,11,15,9,"decodeAccountIndex"],[19,29,15,27,"decodeAccountIndex"],[19,30,15,28,"value"],[19,35,15,33],[19,37,15,35],[20,4,16,4],[21,4,17,4],[21,8,17,8,"value"],[21,13,17,13],[21,25,17,25,"GenericAccountIndex"],[21,44,17,44],[21,46,17,46],[22,6,18,8],[23,6,19,8],[24,6,20,8],[24,13,20,15,"value"],[24,18,20,20],[24,19,20,21,"toBn"],[24,23,20,25],[24,24,20,26],[24,25,20,27],[25,4,21,4],[25,5,21,5],[25,11,22,9],[25,15,22,13],[25,16,22,14],[25,17,22,15],[25,19,22,17,"util_1"],[25,25,22,23],[25,26,22,24,"isBn"],[25,30,22,28],[25,32,22,30,"value"],[25,37,22,35],[25,38,22,36],[25,42,22,40],[25,43,22,41],[25,44,22,42],[25,46,22,44,"util_1"],[25,52,22,50],[25,53,22,51,"isNumber"],[25,61,22,59],[25,63,22,61,"value"],[25,68,22,66],[25,69,22,67],[25,73,22,71],[25,74,22,72],[25,75,22,73],[25,77,22,75,"util_1"],[25,83,22,81],[25,84,22,82,"isHex"],[25,89,22,87],[25,91,22,89,"value"],[25,96,22,94],[25,97,22,95],[25,101,22,99],[25,102,22,100],[25,103,22,101],[25,105,22,103,"util_1"],[25,111,22,109],[25,112,22,110,"isU8a"],[25,117,22,115],[25,119,22,117,"value"],[25,124,22,122],[25,125,22,123],[25,129,22,127],[25,130,22,128],[25,131,22,129],[25,133,22,131,"util_1"],[25,139,22,137],[25,140,22,138,"isBigInt"],[25,148,22,146],[25,150,22,148,"value"],[25,155,22,153],[25,156,22,154],[25,158,22,156],[26,6,23,8],[26,13,23,15,"value"],[26,18,23,20],[27,4,24,4],[28,4,25,4],[28,11,25,11,"decodeAccountIndex"],[28,29,25,29],[28,30,25,30],[28,31,25,31],[28,32,25,32],[28,34,25,34,"util_crypto_1"],[28,47,25,47],[28,48,25,48,"decodeAddress"],[28,61,25,61],[28,63,25,63,"value"],[28,68,25,68],[28,69,25,69],[28,70,25,70],[29,2,26,0],[30,2,27,0],[31,0,28,0],[32,0,29,0],[33,0,30,0],[34,0,31,0],[35,0,32,0],[36,2,33,0],[36,8,33,6,"GenericAccountIndex"],[36,27,33,25],[36,36,33,34,"types_codec_1"],[36,49,33,47],[36,50,33,48,"u32"],[36,53,33,51],[36,54,33,52],[37,4,34,4,"constructor"],[37,15,34,15,"constructor"],[37,16,34,16,"registry"],[37,24,34,24],[37,26,34,26,"value"],[37,31,34,31],[37,34,34,34],[37,38,34,38,"util_1"],[37,44,34,44],[37,45,34,45,"BN"],[37,47,34,47],[37,48,34,48],[37,49,34,49],[37,50,34,50],[37,52,34,52],[38,6,35,8],[38,11,35,13],[38,12,35,14,"registry"],[38,20,35,22],[38,22,35,24,"decodeAccountIndex"],[38,40,35,42],[38,41,35,43,"value"],[38,46,35,48],[38,47,35,49],[38,48,35,50],[39,4,36,4],[40,4,37,4],[40,11,37,11,"calcLength"],[40,21,37,21,"calcLength"],[40,22,37,22,"_value"],[40,28,37,28],[40,30,37,30],[41,6,38,8],[41,12,38,14,"value"],[41,17,38,19],[41,20,38,22],[41,21,38,23],[41,22,38,24],[41,24,38,26,"util_1"],[41,30,38,32],[41,31,38,33,"bnToBn"],[41,37,38,39],[41,39,38,41,"_value"],[41,45,38,47],[41,46,38,48],[42,6,39,8],[42,10,39,12,"value"],[42,15,39,17],[42,16,39,18,"lte"],[42,19,39,21],[42,20,39,22,"MAX_1BYTE"],[42,29,39,31],[42,30,39,32],[42,32,39,34],[43,8,40,12],[43,15,40,19],[43,16,40,20],[44,6,41,8],[44,7,41,9],[44,13,42,13],[44,17,42,17,"value"],[44,22,42,22],[44,23,42,23,"lt"],[44,25,42,25],[44,26,42,26,"MAX_2BYTE"],[44,35,42,35],[44,36,42,36],[44,38,42,38],[45,8,43,12],[45,15,43,19],[45,16,43,20],[46,6,44,8],[46,7,44,9],[46,13,45,13],[46,17,45,17,"value"],[46,22,45,22],[46,23,45,23,"lt"],[46,25,45,25],[46,26,45,26,"MAX_4BYTE"],[46,35,45,35],[46,36,45,36],[46,38,45,38],[47,8,46,12],[47,15,46,19],[47,16,46,20],[48,6,47,8],[49,6,48,8],[49,13,48,15],[49,14,48,16],[50,4,49,4],[51,4,50,4],[51,11,50,11,"readLength"],[51,21,50,21,"readLength"],[51,22,50,22,"input"],[51,27,50,27],[51,29,50,29],[52,6,51,8],[52,12,51,14,"first"],[52,17,51,19],[52,20,51,22,"input"],[52,25,51,27],[52,26,51,28],[52,27,51,29],[52,28,51,30],[53,6,52,8],[53,10,52,12,"first"],[53,15,52,17],[53,20,52,22,"PREFIX_2BYTE"],[53,32,52,34],[53,34,52,36],[54,8,53,12],[54,15,53,19],[54,16,53,20],[54,17,53,21],[54,19,53,23],[54,20,53,24],[54,21,53,25],[55,6,54,8],[55,7,54,9],[55,13,55,13],[55,17,55,17,"first"],[55,22,55,22],[55,27,55,27,"PREFIX_4BYTE"],[55,39,55,39],[55,41,55,41],[56,8,56,12],[56,15,56,19],[56,16,56,20],[56,17,56,21],[56,19,56,23],[56,20,56,24],[56,21,56,25],[57,6,57,8],[57,7,57,9],[57,13,58,13],[57,17,58,17,"first"],[57,22,58,22],[57,27,58,27,"PREFIX_8BYTE"],[57,39,58,39],[57,41,58,41],[58,8,59,12],[58,15,59,19],[58,16,59,20],[58,17,59,21],[58,19,59,23],[58,20,59,24],[58,21,59,25],[59,6,60,8],[60,6,61,8],[60,13,61,15],[60,14,61,16],[60,15,61,17],[60,17,61,19],[60,18,61,20],[60,19,61,21],[61,4,62,4],[62,4,63,4],[62,11,63,11,"writeLength"],[62,22,63,22,"writeLength"],[62,23,63,23,"input"],[62,28,63,28],[62,30,63,30],[63,6,64,8],[63,14,64,16,"input"],[63,19,64,21],[63,20,64,22,"length"],[63,26,64,28],[64,8,65,12],[64,13,65,17],[64,14,65,18],[65,10,65,20],[65,17,65,27],[65,21,65,31,"Uint8Array"],[65,31,65,41],[65,32,65,42],[65,33,65,43,"PREFIX_2BYTE"],[65,45,65,55],[65,46,65,56],[65,47,65,57],[66,8,66,12],[66,13,66,17],[66,14,66,18],[67,10,66,20],[67,17,66,27],[67,21,66,31,"Uint8Array"],[67,31,66,41],[67,32,66,42],[67,33,66,43,"PREFIX_4BYTE"],[67,45,66,55],[67,46,66,56],[67,47,66,57],[68,8,67,12],[68,13,67,17],[68,14,67,18],[69,10,67,20],[69,17,67,27],[69,21,67,31,"Uint8Array"],[69,31,67,41],[69,32,67,42],[69,33,67,43,"PREFIX_8BYTE"],[69,45,67,55],[69,46,67,56],[69,47,67,57],[70,8,68,12],[71,10,68,21],[71,17,68,28],[71,21,68,32,"Uint8Array"],[71,31,68,42],[71,32,68,43],[71,34,68,45],[71,35,68,46],[72,6,69,8],[73,4,70,4],[74,4,71,4],[75,0,72,0],[76,0,73,0],[77,4,74,4,"eq"],[77,6,74,6,"eq"],[77,7,74,7,"other"],[77,12,74,12],[77,14,74,14],[78,6,75,8],[79,6,76,8],[79,10,76,12],[79,11,76,13],[79,12,76,14],[79,14,76,16,"util_1"],[79,20,76,22],[79,21,76,23,"isBn"],[79,25,76,27],[79,27,76,29,"other"],[79,32,76,34],[79,33,76,35],[79,37,76,39],[79,38,76,40],[79,39,76,41],[79,41,76,43,"util_1"],[79,47,76,49],[79,48,76,50,"isNumber"],[79,56,76,58],[79,58,76,60,"other"],[79,63,76,65],[79,64,76,66],[79,66,76,68],[80,8,77,12],[80,15,77,19],[80,20,77,24],[80,21,77,25,"eq"],[80,23,77,27],[80,24,77,28,"other"],[80,29,77,33],[80,30,77,34],[81,6,78,8],[82,6,79,8],[83,6,80,8],[83,13,80,15],[83,18,80,20],[83,19,80,21,"eq"],[83,21,80,23],[83,22,80,24],[83,26,80,28],[83,27,80,29,"registry"],[83,35,80,37],[83,36,80,38,"createTypeUnsafe"],[83,52,80,54],[83,53,80,55],[83,67,80,69],[83,69,80,71],[83,70,80,72,"other"],[83,75,80,77],[83,76,80,78],[83,77,80,79],[83,78,80,80],[84,4,81,4],[85,4,82,4],[86,0,83,0],[87,0,84,0],[88,4,85,4,"toHuman"],[88,11,85,11,"toHuman"],[88,12,85,11],[88,14,85,14],[89,6,86,8],[89,13,86,15],[89,17,86,19],[89,18,86,20,"toJSON"],[89,24,86,26],[89,25,86,27],[89,26,86,28],[90,4,87,4],[91,4,88,4],[92,0,89,0],[93,0,90,0],[94,4,91,4,"toJSON"],[94,10,91,10,"toJSON"],[94,11,91,10],[94,13,91,13],[95,6,92,8],[95,13,92,15],[95,17,92,19],[95,18,92,20,"toString"],[95,26,92,28],[95,27,92,29],[95,28,92,30],[96,4,93,4],[97,4,94,4],[98,0,95,0],[99,0,96,0],[100,4,97,4,"toPrimitive"],[100,15,97,15,"toPrimitive"],[100,16,97,15],[100,18,97,18],[101,6,98,8],[101,13,98,15],[101,17,98,19],[101,18,98,20,"toJSON"],[101,24,98,26],[101,25,98,27],[101,26,98,28],[102,4,99,4],[103,4,100,4],[104,0,101,0],[105,0,102,0],[106,4,103,4,"toString"],[106,12,103,12,"toString"],[106,13,103,12],[106,15,103,15],[107,6,104,8],[107,12,104,14,"length"],[107,18,104,20],[107,21,104,23,"GenericAccountIndex"],[107,40,104,42],[107,41,104,43,"calcLength"],[107,51,104,53],[107,52,104,54],[107,56,104,58],[107,57,104,59],[108,6,105,8],[108,13,105,15],[108,14,105,16],[108,15,105,17],[108,17,105,19,"util_crypto_1"],[108,30,105,32],[108,31,105,33,"encodeAddress"],[108,44,105,46],[108,46,105,48],[108,50,105,52],[108,51,105,53,"toU8a"],[108,56,105,58],[108,57,105,59],[108,58,105,60],[108,59,105,61,"subarray"],[108,67,105,69],[108,68,105,70],[108,69,105,71],[108,71,105,73,"length"],[108,77,105,79],[108,78,105,80],[108,80,105,82],[108,84,105,86],[108,85,105,87,"registry"],[108,93,105,95],[108,94,105,96,"chainSS58"],[108,103,105,105],[108,104,105,106],[109,4,106,4],[110,4,107,4],[111,0,108,0],[112,0,109,0],[113,4,110,4,"toRawType"],[113,13,110,13,"toRawType"],[113,14,110,13],[113,16,110,16],[114,6,111,8],[114,13,111,15],[114,27,111,29],[115,4,112,4],[116,2,113,0],[117,2,114,0,"exports"],[117,9,114,7],[117,10,114,8,"GenericAccountIndex"],[117,29,114,27],[117,32,114,30,"GenericAccountIndex"],[117,51,114,49],[118,0,114,50],[118,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;ACc;CDW;AEO;ICC;KDE;IEC;KFY;IGC;KHY;IIC;KJO;IKI;KLO;IMI;KNE;IOI;KPE;IQI;KRE;ISI;KTG;IUI;KVE;CFC"},"hasCjsExports":true},"type":"js/module"}]} |