mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 14:31:02 +00:00
1 line
10 KiB
Plaintext
1 line
10 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":45,"index":45}}],"key":"4J9mGJyxcRzjwnWeFPHBw1ClKiw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":46},"end":{"line":2,"column":65,"index":111}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util-crypto","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":112},"end":{"line":3,"column":54,"index":166}}],"key":"i6n5nZx9jV9OWiqinE0v9Jgj+DA=","exportNames":["*"],"imports":1}},{"name":"./AccountId.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":4,"column":0,"index":167},"end":{"line":4,"column":50,"index":217}}],"key":"y86fCoqNqJ/4rLC70kegW0cVo04=","exportNames":["*"],"imports":1}},{"name":"./AccountIndex.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":5,"column":0,"index":218},"end":{"line":5,"column":56,"index":274}}],"key":"Dr0WBXAT1C/v2xw4sD513EeMKwU=","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, \"GenericMultiAddress\", {\n enumerable: true,\n get: function () {\n return GenericMultiAddress;\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 var _AccountIdJs = require(_dependencyMap[3], \"./AccountId.js\");\n var _AccountIndexJs = 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 _AccountIdJs.GenericAccountId) {\n return {\n Id: value\n };\n } else if ((0, _polkadotUtil.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 _AccountIndexJs.GenericAccountIndex || (0, _polkadotUtil.isBn)(value) || (0, _polkadotUtil.isNumber)(value)) {\n return {\n Index: (0, _polkadotUtil.isNumber)(value) ? value : value.toNumber()\n };\n } else if ((0, _polkadotUtil.isString)(value)) {\n return decodeU8a(registry, (0, _polkadotUtilCrypto.decodeAddress)(value.toString()));\n }\n return value;\n }\n class GenericMultiAddress extends _polkadotTypesCodec.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});","lineCount":85,"map":[[7,2,37,0,"Object"],[7,8,37,0],[7,9,37,0,"defineProperty"],[7,23,37,0],[7,24,37,0,"exports"],[7,31,37,0],[8,4,37,0,"enumerable"],[8,14,37,0],[9,4,37,0,"get"],[9,7,37,0],[9,18,37,0,"get"],[9,19,37,0],[10,6,37,0],[10,13,37,0,"GenericMultiAddress"],[10,32,37,0],[11,4,37,0],[12,2,37,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,6,4,0,"_AccountIdJs"],[16,18,4,0],[16,21,4,0,"require"],[16,28,4,0],[16,29,4,0,"_dependencyMap"],[16,43,4,0],[17,2,5,0],[17,6,5,0,"_AccountIndexJs"],[17,21,5,0],[17,24,5,0,"require"],[17,31,5,0],[17,32,5,0,"_dependencyMap"],[17,46,5,0],[18,2,6,0],[18,11,6,9,"decodeU8a"],[18,20,6,18,"decodeU8a"],[18,21,6,19,"registry"],[18,29,6,27],[18,31,6,29,"u8a"],[18,34,6,32],[18,36,6,34],[19,4,7,4],[19,8,7,8],[19,9,7,9],[19,10,7,10],[19,12,7,12],[19,14,7,14],[19,15,7,15],[19,16,7,16,"includes"],[19,24,7,24],[19,25,7,25,"u8a"],[19,28,7,28],[19,29,7,29,"length"],[19,35,7,35],[19,36,7,36],[19,38,7,38],[20,6,8,8],[20,13,8,15],[21,8,8,17,"Id"],[21,10,8,19],[21,12,8,21,"u8a"],[22,6,8,25],[22,7,8,26],[23,4,9,4],[23,5,9,5],[23,11,10,9],[23,15,10,13,"u8a"],[23,18,10,16],[23,19,10,17,"length"],[23,25,10,23],[23,30,10,28],[23,32,10,30],[23,34,10,32],[24,6,11,8],[24,13,11,15],[25,8,11,17,"Address20"],[25,17,11,26],[25,19,11,28,"u8a"],[26,6,11,32],[26,7,11,33],[27,4,12,4],[27,5,12,5],[27,11,13,9],[27,15,13,13,"u8a"],[27,18,13,16],[27,19,13,17,"length"],[27,25,13,23],[27,29,13,27],[27,30,13,28],[27,32,13,30],[28,6,14,8],[28,13,14,15],[29,8,14,17,"Index"],[29,13,14,22],[29,15,14,24,"registry"],[29,23,14,32],[29,24,14,33,"createTypeUnsafe"],[29,40,14,49],[29,41,14,50],[29,55,14,64],[29,57,14,66],[29,58,14,67,"u8a"],[29,61,14,70],[29,62,14,71],[29,63,14,72],[29,64,14,73,"toNumber"],[29,72,14,81],[29,73,14,82],[30,6,14,84],[30,7,14,85],[31,4,15,4],[32,4,16,4],[32,11,16,11,"u8a"],[32,14,16,14],[33,2,17,0],[34,2,18,0],[34,11,18,9,"decodeMultiAny"],[34,25,18,23,"decodeMultiAny"],[34,26,18,24,"registry"],[34,34,18,32],[34,36,18,34,"value"],[34,41,18,39],[34,43,18,41],[35,4,19,4],[35,8,19,8,"value"],[35,13,19,13],[35,25,19,25,"GenericAccountId"],[35,37,19,41],[35,38,19,41,"GenericAccountId"],[35,54,19,41],[35,56,19,43],[36,6,20,8],[36,13,20,15],[37,8,20,17,"Id"],[37,10,20,19],[37,12,20,21,"value"],[38,6,20,27],[38,7,20,28],[39,4,21,4],[39,5,21,5],[39,11,22,9],[39,15,22,13],[39,19,22,13,"isU8a"],[39,32,22,18],[39,33,22,18,"isU8a"],[39,38,22,18],[39,40,22,19,"value"],[39,45,22,24],[39,46,22,25],[39,48,22,27],[40,6,23,8],[41,6,24,8],[41,13,24,15,"decodeU8a"],[41,22,24,24],[41,23,24,25,"registry"],[41,31,24,33],[41,33,24,35,"value"],[41,38,24,40],[41,39,24,41],[42,4,25,4],[42,5,25,5],[42,11,26,9],[42,15,26,13,"value"],[42,20,26,18],[42,32,26,30,"GenericMultiAddress"],[42,51,26,49],[42,53,26,51],[43,6,27,8],[43,13,27,15,"value"],[43,18,27,20],[44,4,28,4],[44,5,28,5],[44,11,29,9],[44,15,29,13,"value"],[44,20,29,18],[44,32,29,30,"GenericAccountIndex"],[44,47,29,49],[44,48,29,49,"GenericAccountIndex"],[44,67,29,49],[44,71,29,53],[44,75,29,53,"isBn"],[44,88,29,57],[44,89,29,57,"isBn"],[44,93,29,57],[44,95,29,58,"value"],[44,100,29,63],[44,101,29,64],[44,105,29,68],[44,109,29,68,"isNumber"],[44,122,29,76],[44,123,29,76,"isNumber"],[44,131,29,76],[44,133,29,77,"value"],[44,138,29,82],[44,139,29,83],[44,141,29,85],[45,6,30,8],[45,13,30,15],[46,8,30,17,"Index"],[46,13,30,22],[46,15,30,24],[46,19,30,24,"isNumber"],[46,32,30,32],[46,33,30,32,"isNumber"],[46,41,30,32],[46,43,30,33,"value"],[46,48,30,38],[46,49,30,39],[46,52,30,42,"value"],[46,57,30,47],[46,60,30,50,"value"],[46,65,30,55],[46,66,30,56,"toNumber"],[46,74,30,64],[46,75,30,65],[47,6,30,67],[47,7,30,68],[48,4,31,4],[48,5,31,5],[48,11,32,9],[48,15,32,13],[48,19,32,13,"isString"],[48,32,32,21],[48,33,32,21,"isString"],[48,41,32,21],[48,43,32,22,"value"],[48,48,32,27],[48,49,32,28],[48,51,32,30],[49,6,33,8],[49,13,33,15,"decodeU8a"],[49,22,33,24],[49,23,33,25,"registry"],[49,31,33,33],[49,33,33,35],[49,37,33,35,"decodeAddress"],[49,56,33,48],[49,57,33,48,"decodeAddress"],[49,70,33,48],[49,72,33,49,"value"],[49,77,33,54],[49,78,33,55,"toString"],[49,86,33,63],[49,87,33,64],[49,88,33,65],[49,89,33,66],[49,90,33,67],[50,4,34,4],[51,4,35,4],[51,11,35,11,"value"],[51,16,35,16],[52,2,36,0],[53,2,37,7],[53,8,37,13,"GenericMultiAddress"],[53,27,37,32],[53,36,37,41,"Enum"],[53,55,37,45],[53,56,37,45,"Enum"],[53,60,37,45],[53,61,37,46],[54,4,38,4,"constructor"],[54,15,38,15,"constructor"],[54,16,38,16,"registry"],[54,24,38,24],[54,26,38,26,"value"],[54,31,38,31],[54,33,38,33],[55,6,39,8],[55,11,39,13],[55,12,39,14,"registry"],[55,20,39,22],[55,22,39,24],[56,8,40,12,"Id"],[56,10,40,14],[56,12,40,16],[56,23,40,27],[57,8,41,12,"Index"],[57,13,41,17],[57,15,41,19],[57,38,41,42],[58,8,42,12,"Raw"],[58,11,42,15],[58,13,42,17],[58,20,42,24],[59,8,43,12],[60,8,44,12,"Address32"],[60,17,44,21],[60,19,44,23],[60,25,44,29],[61,8,45,12],[62,8,46,12,"Address20"],[62,17,46,21],[62,19,46,23],[63,6,47,8],[63,7,47,9],[63,9,47,11,"decodeMultiAny"],[63,23,47,25],[63,24,47,26,"registry"],[63,32,47,34],[63,34,47,36,"value"],[63,39,47,41],[63,40,47,42],[63,41,47,43],[64,4,48,4],[65,4,49,4],[66,0,50,0],[67,0,51,0],[68,4,52,4,"inspect"],[68,11,52,11,"inspect"],[68,12,52,11],[68,14,52,14],[69,6,53,8],[69,12,53,14],[70,8,53,16,"inner"],[70,13,53,21],[71,8,53,23,"outer"],[71,13,53,28],[71,16,53,31],[72,6,53,34],[72,7,53,35],[72,10,53,38],[72,14,53,42],[72,15,53,43,"inner"],[72,20,53,48],[72,21,53,49,"inspect"],[72,28,53,56],[72,29,53,57],[72,30,53,58],[73,6,54,8],[73,13,54,15],[74,8,55,12,"inner"],[74,13,55,17],[75,8,56,12,"outer"],[75,13,56,17],[75,15,56,19],[75,16,56,20],[75,20,56,24,"Uint8Array"],[75,30,56,34],[75,31,56,35],[75,32,56,36],[75,36,56,40],[75,37,56,41,"index"],[75,42,56,46],[75,43,56,47],[75,44,56,48],[75,46,56,50],[75,49,56,53,"outer"],[75,54,56,58],[76,6,57,8],[76,7,57,9],[77,4,58,4],[78,4,59,4],[79,0,60,0],[80,0,61,0],[81,4,62,4,"toString"],[81,12,62,12,"toString"],[81,13,62,12],[81,15,62,15],[82,6,63,8],[82,13,63,15],[82,17,63,19],[82,18,63,20,"value"],[82,23,63,25],[82,24,63,26,"toString"],[82,32,63,34],[82,33,63,35],[82,34,63,36],[83,4,64,4],[84,2,65,0],[85,0,65,1],[85,3]],"functionMap":{"names":["<global>","decodeU8a","decodeMultiAny","GenericMultiAddress","GenericMultiAddress#constructor","GenericMultiAddress#inspect","GenericMultiAddress#toString"],"mappings":"AAA;ACK;CDW;AEC;CFkB;OGC;ICC;KDU;IEI;KFM;IGI;KHE;CHC"},"hasCjsExports":false},"type":"js/module"}]} |