mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 13:31:00 +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":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}},{"name":"./AccountId.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":7,"column":23,"index":292},"end":{"line":7,"column":48,"index":317}}],"key":"DxwzBWssNUDDyhGbvVAqSIPtM1A=","exportNames":["*"],"imports":1}},{"name":"./AccountIndex.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":8,"column":26,"index":345},"end":{"line":8,"column":54,"index":373}}],"key":"GvAo9bhcQYlL2VmUimuBavXT0B8=","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.GenericMultiAddress = 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 AccountId_js_1 = require(_dependencyMap[3], \"./AccountId.js\");\n const AccountIndex_js_1 = require(_dependencyMap[4], \"./AccountIndex.js\");\n function decodeU8a(registry, u8a) {\n if ([0, 32].includes(u8a.length)) {\n return {\n Id: u8a\n };\n } else if (u8a.length === 20) {\n return {\n Address20: u8a\n };\n } else if (u8a.length <= 8) {\n return {\n Index: registry.createTypeUnsafe('AccountIndex', [u8a]).toNumber()\n };\n }\n return u8a;\n }\n function decodeMultiAny(registry, value) {\n if (value instanceof AccountId_js_1.GenericAccountId) {\n return {\n Id: value\n };\n } else if ((0, util_1.isU8a)(value)) {\n // NOTE This is after the AccountId check (which is U8a)\n return decodeU8a(registry, value);\n } else if (value instanceof GenericMultiAddress) {\n return value;\n } else if (value instanceof AccountIndex_js_1.GenericAccountIndex || (0, util_1.isBn)(value) || (0, util_1.isNumber)(value)) {\n return {\n Index: (0, util_1.isNumber)(value) ? value : value.toNumber()\n };\n } else if ((0, util_1.isString)(value)) {\n return decodeU8a(registry, (0, util_crypto_1.decodeAddress)(value.toString()));\n }\n return value;\n }\n class GenericMultiAddress extends types_codec_1.Enum {\n constructor(registry, value) {\n super(registry, {\n Id: 'AccountId',\n Index: 'Compact<AccountIndex>',\n Raw: 'Bytes',\n // eslint-disable-next-line sort-keys\n Address32: 'H256',\n // eslint-disable-next-line sort-keys\n Address20: 'H160'\n }, decodeMultiAny(registry, value));\n }\n /**\n * @description Returns a breakdown of the hex encoding for this Codec\n */\n inspect() {\n const {\n inner,\n outer = []\n } = this.inner.inspect();\n return {\n inner,\n outer: [new Uint8Array([this.index]), ...outer]\n };\n }\n /**\n * @description Returns the string representation of the value\n */\n toString() {\n return this.value.toString();\n }\n }\n exports.GenericMultiAddress = GenericMultiAddress;\n});","lineCount":81,"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,"GenericMultiAddress"],[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,"AccountId_js_1"],[11,22,7,20],[11,25,7,23,"require"],[11,32,7,30],[11,33,7,30,"_dependencyMap"],[11,47,7,30],[11,68,7,47],[11,69,7,48],[12,2,8,0],[12,8,8,6,"AccountIndex_js_1"],[12,25,8,23],[12,28,8,26,"require"],[12,35,8,33],[12,36,8,33,"_dependencyMap"],[12,50,8,33],[12,74,8,53],[12,75,8,54],[13,2,9,0],[13,11,9,9,"decodeU8a"],[13,20,9,18,"decodeU8a"],[13,21,9,19,"registry"],[13,29,9,27],[13,31,9,29,"u8a"],[13,34,9,32],[13,36,9,34],[14,4,10,4],[14,8,10,8],[14,9,10,9],[14,10,10,10],[14,12,10,12],[14,14,10,14],[14,15,10,15],[14,16,10,16,"includes"],[14,24,10,24],[14,25,10,25,"u8a"],[14,28,10,28],[14,29,10,29,"length"],[14,35,10,35],[14,36,10,36],[14,38,10,38],[15,6,11,8],[15,13,11,15],[16,8,11,17,"Id"],[16,10,11,19],[16,12,11,21,"u8a"],[17,6,11,25],[17,7,11,26],[18,4,12,4],[18,5,12,5],[18,11,13,9],[18,15,13,13,"u8a"],[18,18,13,16],[18,19,13,17,"length"],[18,25,13,23],[18,30,13,28],[18,32,13,30],[18,34,13,32],[19,6,14,8],[19,13,14,15],[20,8,14,17,"Address20"],[20,17,14,26],[20,19,14,28,"u8a"],[21,6,14,32],[21,7,14,33],[22,4,15,4],[22,5,15,5],[22,11,16,9],[22,15,16,13,"u8a"],[22,18,16,16],[22,19,16,17,"length"],[22,25,16,23],[22,29,16,27],[22,30,16,28],[22,32,16,30],[23,6,17,8],[23,13,17,15],[24,8,17,17,"Index"],[24,13,17,22],[24,15,17,24,"registry"],[24,23,17,32],[24,24,17,33,"createTypeUnsafe"],[24,40,17,49],[24,41,17,50],[24,55,17,64],[24,57,17,66],[24,58,17,67,"u8a"],[24,61,17,70],[24,62,17,71],[24,63,17,72],[24,64,17,73,"toNumber"],[24,72,17,81],[24,73,17,82],[25,6,17,84],[25,7,17,85],[26,4,18,4],[27,4,19,4],[27,11,19,11,"u8a"],[27,14,19,14],[28,2,20,0],[29,2,21,0],[29,11,21,9,"decodeMultiAny"],[29,25,21,23,"decodeMultiAny"],[29,26,21,24,"registry"],[29,34,21,32],[29,36,21,34,"value"],[29,41,21,39],[29,43,21,41],[30,4,22,4],[30,8,22,8,"value"],[30,13,22,13],[30,25,22,25,"AccountId_js_1"],[30,39,22,39],[30,40,22,40,"GenericAccountId"],[30,56,22,56],[30,58,22,58],[31,6,23,8],[31,13,23,15],[32,8,23,17,"Id"],[32,10,23,19],[32,12,23,21,"value"],[33,6,23,27],[33,7,23,28],[34,4,24,4],[34,5,24,5],[34,11,25,9],[34,15,25,13],[34,16,25,14],[34,17,25,15],[34,19,25,17,"util_1"],[34,25,25,23],[34,26,25,24,"isU8a"],[34,31,25,29],[34,33,25,31,"value"],[34,38,25,36],[34,39,25,37],[34,41,25,39],[35,6,26,8],[36,6,27,8],[36,13,27,15,"decodeU8a"],[36,22,27,24],[36,23,27,25,"registry"],[36,31,27,33],[36,33,27,35,"value"],[36,38,27,40],[36,39,27,41],[37,4,28,4],[37,5,28,5],[37,11,29,9],[37,15,29,13,"value"],[37,20,29,18],[37,32,29,30,"GenericMultiAddress"],[37,51,29,49],[37,53,29,51],[38,6,30,8],[38,13,30,15,"value"],[38,18,30,20],[39,4,31,4],[39,5,31,5],[39,11,32,9],[39,15,32,13,"value"],[39,20,32,18],[39,32,32,30,"AccountIndex_js_1"],[39,49,32,47],[39,50,32,48,"GenericAccountIndex"],[39,69,32,67],[39,73,32,71],[39,74,32,72],[39,75,32,73],[39,77,32,75,"util_1"],[39,83,32,81],[39,84,32,82,"isBn"],[39,88,32,86],[39,90,32,88,"value"],[39,95,32,93],[39,96,32,94],[39,100,32,98],[39,101,32,99],[39,102,32,100],[39,104,32,102,"util_1"],[39,110,32,108],[39,111,32,109,"isNumber"],[39,119,32,117],[39,121,32,119,"value"],[39,126,32,124],[39,127,32,125],[39,129,32,127],[40,6,33,8],[40,13,33,15],[41,8,33,17,"Index"],[41,13,33,22],[41,15,33,24],[41,16,33,25],[41,17,33,26],[41,19,33,28,"util_1"],[41,25,33,34],[41,26,33,35,"isNumber"],[41,34,33,43],[41,36,33,45,"value"],[41,41,33,50],[41,42,33,51],[41,45,33,54,"value"],[41,50,33,59],[41,53,33,62,"value"],[41,58,33,67],[41,59,33,68,"toNumber"],[41,67,33,76],[41,68,33,77],[42,6,33,79],[42,7,33,80],[43,4,34,4],[43,5,34,5],[43,11,35,9],[43,15,35,13],[43,16,35,14],[43,17,35,15],[43,19,35,17,"util_1"],[43,25,35,23],[43,26,35,24,"isString"],[43,34,35,32],[43,36,35,34,"value"],[43,41,35,39],[43,42,35,40],[43,44,35,42],[44,6,36,8],[44,13,36,15,"decodeU8a"],[44,22,36,24],[44,23,36,25,"registry"],[44,31,36,33],[44,33,36,35],[44,34,36,36],[44,35,36,37],[44,37,36,39,"util_crypto_1"],[44,50,36,52],[44,51,36,53,"decodeAddress"],[44,64,36,66],[44,66,36,68,"value"],[44,71,36,73],[44,72,36,74,"toString"],[44,80,36,82],[44,81,36,83],[44,82,36,84],[44,83,36,85],[44,84,36,86],[45,4,37,4],[46,4,38,4],[46,11,38,11,"value"],[46,16,38,16],[47,2,39,0],[48,2,40,0],[48,8,40,6,"GenericMultiAddress"],[48,27,40,25],[48,36,40,34,"types_codec_1"],[48,49,40,47],[48,50,40,48,"Enum"],[48,54,40,52],[48,55,40,53],[49,4,41,4,"constructor"],[49,15,41,15,"constructor"],[49,16,41,16,"registry"],[49,24,41,24],[49,26,41,26,"value"],[49,31,41,31],[49,33,41,33],[50,6,42,8],[50,11,42,13],[50,12,42,14,"registry"],[50,20,42,22],[50,22,42,24],[51,8,43,12,"Id"],[51,10,43,14],[51,12,43,16],[51,23,43,27],[52,8,44,12,"Index"],[52,13,44,17],[52,15,44,19],[52,38,44,42],[53,8,45,12,"Raw"],[53,11,45,15],[53,13,45,17],[53,20,45,24],[54,8,46,12],[55,8,47,12,"Address32"],[55,17,47,21],[55,19,47,23],[55,25,47,29],[56,8,48,12],[57,8,49,12,"Address20"],[57,17,49,21],[57,19,49,23],[58,6,50,8],[58,7,50,9],[58,9,50,11,"decodeMultiAny"],[58,23,50,25],[58,24,50,26,"registry"],[58,32,50,34],[58,34,50,36,"value"],[58,39,50,41],[58,40,50,42],[58,41,50,43],[59,4,51,4],[60,4,52,4],[61,0,53,0],[62,0,54,0],[63,4,55,4,"inspect"],[63,11,55,11,"inspect"],[63,12,55,11],[63,14,55,14],[64,6,56,8],[64,12,56,14],[65,8,56,16,"inner"],[65,13,56,21],[66,8,56,23,"outer"],[66,13,56,28],[66,16,56,31],[67,6,56,34],[67,7,56,35],[67,10,56,38],[67,14,56,42],[67,15,56,43,"inner"],[67,20,56,48],[67,21,56,49,"inspect"],[67,28,56,56],[67,29,56,57],[67,30,56,58],[68,6,57,8],[68,13,57,15],[69,8,58,12,"inner"],[69,13,58,17],[70,8,59,12,"outer"],[70,13,59,17],[70,15,59,19],[70,16,59,20],[70,20,59,24,"Uint8Array"],[70,30,59,34],[70,31,59,35],[70,32,59,36],[70,36,59,40],[70,37,59,41,"index"],[70,42,59,46],[70,43,59,47],[70,44,59,48],[70,46,59,50],[70,49,59,53,"outer"],[70,54,59,58],[71,6,60,8],[71,7,60,9],[72,4,61,4],[73,4,62,4],[74,0,63,0],[75,0,64,0],[76,4,65,4,"toString"],[76,12,65,12,"toString"],[76,13,65,12],[76,15,65,15],[77,6,66,8],[77,13,66,15],[77,17,66,19],[77,18,66,20,"value"],[77,23,66,25],[77,24,66,26,"toString"],[77,32,66,34],[77,33,66,35],[77,34,66,36],[78,4,67,4],[79,2,68,0],[80,2,69,0,"exports"],[80,9,69,7],[80,10,69,8,"GenericMultiAddress"],[80,29,69,27],[80,32,69,30,"GenericMultiAddress"],[80,51,69,49],[81,0,69,50],[81,3]],"functionMap":{"names":["<global>","decodeU8a","decodeMultiAny","GenericMultiAddress","GenericMultiAddress#constructor","GenericMultiAddress#inspect","GenericMultiAddress#toString"],"mappings":"AAA;ACQ;CDW;AEC;CFkB;AGC;ICC;KDU;IEI;KFM;IGI;KHE;CHC"},"hasCjsExports":true},"type":"js/module"}]} |