mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 19:11:02 +00:00
1 line
8.1 KiB
Plaintext
1 line
8.1 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":49,"index":49}}],"key":"4J9mGJyxcRzjwnWeFPHBw1ClKiw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":50},"end":{"line":2,"column":76,"index":126}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util-crypto","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":127},"end":{"line":3,"column":74,"index":201}}],"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, \"GenericEthereumAccountId\", {\n enumerable: true,\n get: function () {\n return GenericEthereumAccountId;\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 /** @internal */\n function decodeAccountId(value) {\n if ((0, _polkadotUtil.isU8a)(value) || Array.isArray(value)) {\n return (0, _polkadotUtil.u8aToU8a)(value);\n } else if ((0, _polkadotUtil.isHex)(value) || (0, _polkadotUtilCrypto.isEthereumAddress)(value.toString())) {\n return (0, _polkadotUtil.hexToU8a)(value.toString());\n } else if ((0, _polkadotUtil.isString)(value)) {\n return (0, _polkadotUtil.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 _polkadotTypesCodec.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, _polkadotUtilCrypto.ethereumEncode)(this);\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return 'AccountId';\n }\n }\n});","lineCount":75,"map":[[7,2,24,0,"Object"],[7,8,24,0],[7,9,24,0,"defineProperty"],[7,23,24,0],[7,24,24,0,"exports"],[7,31,24,0],[8,4,24,0,"enumerable"],[8,14,24,0],[9,4,24,0,"get"],[9,7,24,0],[9,18,24,0,"get"],[9,19,24,0],[10,6,24,0],[10,13,24,0,"GenericEthereumAccountId"],[10,37,24,0],[11,4,24,0],[12,2,24,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],[17,2,5,0],[17,11,5,9,"decodeAccountId"],[17,26,5,24,"decodeAccountId"],[17,27,5,25,"value"],[17,32,5,30],[17,34,5,32],[18,4,6,4],[18,8,6,8],[18,12,6,8,"isU8a"],[18,25,6,13],[18,26,6,13,"isU8a"],[18,31,6,13],[18,33,6,14,"value"],[18,38,6,19],[18,39,6,20],[18,43,6,24,"Array"],[18,48,6,29],[18,49,6,30,"isArray"],[18,56,6,37],[18,57,6,38,"value"],[18,62,6,43],[18,63,6,44],[18,65,6,46],[19,6,7,8],[19,13,7,15],[19,17,7,15,"u8aToU8a"],[19,30,7,23],[19,31,7,23,"u8aToU8a"],[19,39,7,23],[19,41,7,24,"value"],[19,46,7,29],[19,47,7,30],[20,4,8,4],[20,5,8,5],[20,11,9,9],[20,15,9,13],[20,19,9,13,"isHex"],[20,32,9,18],[20,33,9,18,"isHex"],[20,38,9,18],[20,40,9,19,"value"],[20,45,9,24],[20,46,9,25],[20,50,9,29],[20,54,9,29,"isEthereumAddress"],[20,73,9,46],[20,74,9,46,"isEthereumAddress"],[20,91,9,46],[20,93,9,47,"value"],[20,98,9,52],[20,99,9,53,"toString"],[20,107,9,61],[20,108,9,62],[20,109,9,63],[20,110,9,64],[20,112,9,66],[21,6,10,8],[21,13,10,15],[21,17,10,15,"hexToU8a"],[21,30,10,23],[21,31,10,23,"hexToU8a"],[21,39,10,23],[21,41,10,24,"value"],[21,46,10,29],[21,47,10,30,"toString"],[21,55,10,38],[21,56,10,39],[21,57,10,40],[21,58,10,41],[22,4,11,4],[22,5,11,5],[22,11,12,9],[22,15,12,13],[22,19,12,13,"isString"],[22,32,12,21],[22,33,12,21,"isString"],[22,41,12,21],[22,43,12,22,"value"],[22,48,12,27],[22,49,12,28],[22,51,12,30],[23,6,13,8],[23,13,13,15],[23,17,13,15,"u8aToU8a"],[23,30,13,23],[23,31,13,23,"u8aToU8a"],[23,39,13,23],[23,41,13,24,"value"],[23,46,13,29],[23,47,13,30],[24,4,14,4],[25,4,15,4],[25,11,15,11,"value"],[25,16,15,16],[26,2,16,0],[27,2,17,0],[28,0,18,0],[29,0,19,0],[30,0,20,0],[31,0,21,0],[32,0,22,0],[33,0,23,0],[34,2,24,7],[34,8,24,13,"GenericEthereumAccountId"],[34,32,24,37],[34,41,24,46,"U8aFixed"],[34,60,24,54],[34,61,24,54,"U8aFixed"],[34,69,24,54],[34,70,24,55],[35,4,25,4,"constructor"],[35,15,25,15,"constructor"],[35,16,25,16,"registry"],[35,24,25,24],[35,26,25,26,"value"],[35,31,25,31],[35,34,25,34],[35,38,25,38,"Uint8Array"],[35,48,25,48],[35,49,25,49],[35,50,25,50],[35,52,25,52],[36,6,26,8],[36,11,26,13],[36,12,26,14,"registry"],[36,20,26,22],[36,22,26,24,"decodeAccountId"],[36,37,26,39],[36,38,26,40,"value"],[36,43,26,45],[36,44,26,46],[36,46,26,48],[36,49,26,51],[36,50,26,52],[37,4,27,4],[38,4,28,4],[39,0,29,0],[40,0,30,0],[41,4,31,4,"eq"],[41,6,31,6,"eq"],[41,7,31,7,"other"],[41,12,31,12],[41,14,31,14],[42,6,32,8],[42,13,32,15],[42,14,32,16],[42,15,32,17,"other"],[42,20,32,22],[42,24,32,26],[42,29,32,31],[42,30,32,32,"eq"],[42,32,32,34],[42,33,32,35,"decodeAccountId"],[42,48,32,50],[42,49,32,51,"other"],[42,54,32,56],[42,55,32,57],[42,56,32,58],[43,4,33,4],[44,4,34,4],[45,0,35,0],[46,0,36,0],[47,4,37,4,"toHuman"],[47,11,37,11,"toHuman"],[47,12,37,11],[47,14,37,14],[48,6,38,8],[48,13,38,15],[48,17,38,19],[48,18,38,20,"toJSON"],[48,24,38,26],[48,25,38,27],[48,26,38,28],[49,4,39,4],[50,4,40,4],[51,0,41,0],[52,0,42,0],[53,4,43,4,"toJSON"],[53,10,43,10,"toJSON"],[53,11,43,10],[53,13,43,13],[54,6,44,8],[54,13,44,15],[54,17,44,19],[54,18,44,20,"toString"],[54,26,44,28],[54,27,44,29],[54,28,44,30],[55,4,45,4],[56,4,46,4],[57,0,47,0],[58,0,48,0],[59,4,49,4,"toPrimitive"],[59,15,49,15,"toPrimitive"],[59,16,49,15],[59,18,49,18],[60,6,50,8],[60,13,50,15],[60,17,50,19],[60,18,50,20,"toJSON"],[60,24,50,26],[60,25,50,27],[60,26,50,28],[61,4,51,4],[62,4,52,4],[63,0,53,0],[64,0,54,0],[65,4,55,4,"toString"],[65,12,55,12,"toString"],[65,13,55,12],[65,15,55,15],[66,6,56,8],[66,13,56,15],[66,17,56,15,"ethereumEncode"],[66,36,56,29],[66,37,56,29,"ethereumEncode"],[66,51,56,29],[66,53,56,30],[66,57,56,34],[66,58,56,35],[67,4,57,4],[68,4,58,4],[69,0,59,0],[70,0,60,0],[71,4,61,4,"toRawType"],[71,13,61,13,"toRawType"],[71,14,61,13],[71,16,61,16],[72,6,62,8],[72,13,62,15],[72,24,62,26],[73,4,63,4],[74,2,64,0],[75,0,64,1],[75,3]],"functionMap":{"names":["<global>","decodeAccountId","GenericEthereumAccountId","GenericEthereumAccountId#constructor","GenericEthereumAccountId#eq","GenericEthereumAccountId#toHuman","GenericEthereumAccountId#toJSON","GenericEthereumAccountId#toPrimitive","GenericEthereumAccountId#toString","GenericEthereumAccountId#toRawType"],"mappings":"AAA;ACI;CDW;OEQ;ICC;KDE;IEI;KFE;IGI;KHE;III;KJE;IKI;KLE;IMI;KNE;IOI;KPE;CFC"},"hasCjsExports":false},"type":"js/module"}]} |