mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 16:51:02 +00:00
1 line
8.5 KiB
Plaintext
1 line
8.5 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":22,"index":142},"end":{"line":4,"column":54,"index":174}}],"key":"fW1yxuTjZe66ggmM4ihNuGjKSV0=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":191},"end":{"line":5,"column":40,"index":216}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util-crypto","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":22,"index":240},"end":{"line":6,"column":54,"index":272}}],"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.GenericEthereumAccountId = 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 ((0, util_1.isHex)(value) || (0, util_crypto_1.isEthereumAddress)(value.toString())) {\n return (0, util_1.hexToU8a)(value.toString());\n } else if ((0, util_1.isString)(value)) {\n return (0, util_1.u8aToU8a)(value);\n }\n return value;\n }\n /**\n * @name GenericEthereumAccountId\n * @description\n * A wrapper around an Ethereum-compatible AccountId. Since we are dealing with\n * underlying addresses (20 bytes in length), we extend from U8aFixed which is\n * just a Uint8Array wrapper with a fixed length.\n */\n class GenericEthereumAccountId extends types_codec_1.U8aFixed {\n constructor(registry, value = new Uint8Array()) {\n super(registry, decodeAccountId(value), 160);\n }\n /**\n * @description Compares the value of the input to see if there is a match\n */\n eq(other) {\n return !!other && 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.ethereumEncode)(this);\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return 'AccountId';\n }\n }\n exports.GenericEthereumAccountId = GenericEthereumAccountId;\n});","lineCount":71,"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,"GenericEthereumAccountId"],[7,34,3,32],[7,37,3,35],[7,42,3,40],[7,43,3,41],[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],[15,17,12,15],[15,19,12,17,"util_1"],[15,25,12,23],[15,26,12,24,"isHex"],[15,31,12,29],[15,33,12,31,"value"],[15,38,12,36],[15,39,12,37],[15,43,12,41],[15,44,12,42],[15,45,12,43],[15,47,12,45,"util_crypto_1"],[15,60,12,58],[15,61,12,59,"isEthereumAddress"],[15,78,12,76],[15,80,12,78,"value"],[15,85,12,83],[15,86,12,84,"toString"],[15,94,12,92],[15,95,12,93],[15,96,12,94],[15,97,12,95],[15,99,12,97],[16,6,13,8],[16,13,13,15],[16,14,13,16],[16,15,13,17],[16,17,13,19,"util_1"],[16,23,13,25],[16,24,13,26,"hexToU8a"],[16,32,13,34],[16,34,13,36,"value"],[16,39,13,41],[16,40,13,42,"toString"],[16,48,13,50],[16,49,13,51],[16,50,13,52],[16,51,13,53],[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,"isString"],[17,34,15,32],[17,36,15,34,"value"],[17,41,15,39],[17,42,15,40],[17,44,15,42],[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,"u8aToU8a"],[18,32,16,34],[18,34,16,36,"value"],[18,39,16,41],[18,40,16,42],[19,4,17,4],[20,4,18,4],[20,11,18,11,"value"],[20,16,18,16],[21,2,19,0],[22,2,20,0],[23,0,21,0],[24,0,22,0],[25,0,23,0],[26,0,24,0],[27,0,25,0],[28,0,26,0],[29,2,27,0],[29,8,27,6,"GenericEthereumAccountId"],[29,32,27,30],[29,41,27,39,"types_codec_1"],[29,54,27,52],[29,55,27,53,"U8aFixed"],[29,63,27,61],[29,64,27,62],[30,4,28,4,"constructor"],[30,15,28,15,"constructor"],[30,16,28,16,"registry"],[30,24,28,24],[30,26,28,26,"value"],[30,31,28,31],[30,34,28,34],[30,38,28,38,"Uint8Array"],[30,48,28,48],[30,49,28,49],[30,50,28,50],[30,52,28,52],[31,6,29,8],[31,11,29,13],[31,12,29,14,"registry"],[31,20,29,22],[31,22,29,24,"decodeAccountId"],[31,37,29,39],[31,38,29,40,"value"],[31,43,29,45],[31,44,29,46],[31,46,29,48],[31,49,29,51],[31,50,29,52],[32,4,30,4],[33,4,31,4],[34,0,32,0],[35,0,33,0],[36,4,34,4,"eq"],[36,6,34,6,"eq"],[36,7,34,7,"other"],[36,12,34,12],[36,14,34,14],[37,6,35,8],[37,13,35,15],[37,14,35,16],[37,15,35,17,"other"],[37,20,35,22],[37,24,35,26],[37,29,35,31],[37,30,35,32,"eq"],[37,32,35,34],[37,33,35,35,"decodeAccountId"],[37,48,35,50],[37,49,35,51,"other"],[37,54,35,56],[37,55,35,57],[37,56,35,58],[38,4,36,4],[39,4,37,4],[40,0,38,0],[41,0,39,0],[42,4,40,4,"toHuman"],[42,11,40,11,"toHuman"],[42,12,40,11],[42,14,40,14],[43,6,41,8],[43,13,41,15],[43,17,41,19],[43,18,41,20,"toJSON"],[43,24,41,26],[43,25,41,27],[43,26,41,28],[44,4,42,4],[45,4,43,4],[46,0,44,0],[47,0,45,0],[48,4,46,4,"toJSON"],[48,10,46,10,"toJSON"],[48,11,46,10],[48,13,46,13],[49,6,47,8],[49,13,47,15],[49,17,47,19],[49,18,47,20,"toString"],[49,26,47,28],[49,27,47,29],[49,28,47,30],[50,4,48,4],[51,4,49,4],[52,0,50,0],[53,0,51,0],[54,4,52,4,"toPrimitive"],[54,15,52,15,"toPrimitive"],[54,16,52,15],[54,18,52,18],[55,6,53,8],[55,13,53,15],[55,17,53,19],[55,18,53,20,"toJSON"],[55,24,53,26],[55,25,53,27],[55,26,53,28],[56,4,54,4],[57,4,55,4],[58,0,56,0],[59,0,57,0],[60,4,58,4,"toString"],[60,12,58,12,"toString"],[60,13,58,12],[60,15,58,15],[61,6,59,8],[61,13,59,15],[61,14,59,16],[61,15,59,17],[61,17,59,19,"util_crypto_1"],[61,30,59,32],[61,31,59,33,"ethereumEncode"],[61,45,59,47],[61,47,59,49],[61,51,59,53],[61,52,59,54],[62,4,60,4],[63,4,61,4],[64,0,62,0],[65,0,63,0],[66,4,64,4,"toRawType"],[66,13,64,13,"toRawType"],[66,14,64,13],[66,16,64,16],[67,6,65,8],[67,13,65,15],[67,24,65,26],[68,4,66,4],[69,2,67,0],[70,2,68,0,"exports"],[70,9,68,7],[70,10,68,8,"GenericEthereumAccountId"],[70,34,68,32],[70,37,68,35,"GenericEthereumAccountId"],[70,61,68,59],[71,0,68,60],[71,3]],"functionMap":{"names":["<global>","decodeAccountId","GenericEthereumAccountId","GenericEthereumAccountId#constructor","GenericEthereumAccountId#eq","GenericEthereumAccountId#toHuman","GenericEthereumAccountId#toJSON","GenericEthereumAccountId#toPrimitive","GenericEthereumAccountId#toString","GenericEthereumAccountId#toRawType"],"mappings":"AAA;ACO;CDW;AEQ;ICC;KDE;IEI;KFE;IGI;KHE;III;KJE;IKI;KLE;IMI;KNE;IOI;KPE;CFC"},"hasCjsExports":true},"type":"js/module"}]} |