Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/de/9756fc4c59b1e4d4fcd6614e2fb17c0577adbda662046da67aef5eca93d2602b2b7e12
T
2025-10-24 02:48:32 +00:00

1 line
16 KiB
Plaintext

{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":53,"index":53}}],"key":"4J9mGJyxcRzjwnWeFPHBw1ClKiw=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":54},"end":{"line":2,"column":112,"index":166}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util-crypto","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":167},"end":{"line":3,"column":54,"index":221}}],"key":"i6n5nZx9jV9OWiqinE0v9Jgj+DA=","exportNames":["*"],"imports":1}},{"name":"../generic/AccountIndex.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":4,"column":0,"index":222},"end":{"line":4,"column":65,"index":287}}],"key":"jLV5OAQ7OKilHYKtzyu8W6iXsRU=","exportNames":["*"],"imports":1}},{"name":"./AccountId.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":5,"column":0,"index":288},"end":{"line":5,"column":58,"index":346}}],"key":"y86fCoqNqJ/4rLC70kegW0cVo04=","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, \"ACCOUNT_ID_PREFIX\", {\n enumerable: true,\n get: function () {\n return ACCOUNT_ID_PREFIX;\n }\n });\n Object.defineProperty(exports, \"GenericEthereumLookupSource\", {\n enumerable: true,\n get: function () {\n return GenericEthereumLookupSource;\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 _genericAccountIndexJs = require(_dependencyMap[3], \"../generic/AccountIndex.js\");\n var _AccountIdJs = require(_dependencyMap[4], \"./AccountId.js\");\n const ACCOUNT_ID_PREFIX = new Uint8Array([0xff]);\n /** @internal */\n function decodeString(registry, value) {\n const decoded = (0, _polkadotUtilCrypto.decodeAddress)(value);\n return decoded.length === 20 ? registry.createTypeUnsafe('EthereumAccountId', [decoded]) : registry.createTypeUnsafe('AccountIndex', [(0, _polkadotUtil.u8aToBn)(decoded)]);\n }\n /** @internal */\n function decodeU8a(registry, value) {\n // This allows us to instantiate an address with a raw publicKey. Do this first before\n // we checking the first byte, otherwise we may split an already-existent valid address\n if (value.length === 20) {\n return registry.createTypeUnsafe('EthereumAccountId', [value]);\n } else if (value[0] === 0xff) {\n return registry.createTypeUnsafe('EthereumAccountId', [value.subarray(1)]);\n }\n const [offset, length] = _genericAccountIndexJs.GenericAccountIndex.readLength(value);\n return registry.createTypeUnsafe('AccountIndex', [(0, _polkadotUtil.u8aToBn)(value.subarray(offset, offset + length))]);\n }\n function decodeAddressOrIndex(registry, value) {\n return value instanceof GenericEthereumLookupSource ? value.inner : value instanceof _AccountIdJs.GenericEthereumAccountId || value instanceof _genericAccountIndexJs.GenericAccountIndex ? value : (0, _polkadotUtil.isU8a)(value) || Array.isArray(value) || (0, _polkadotUtil.isHex)(value) ? decodeU8a(registry, (0, _polkadotUtil.u8aToU8a)(value)) : (0, _polkadotUtil.isBn)(value) || (0, _polkadotUtil.isNumber)(value) || (0, _polkadotUtil.isBigInt)(value) ? registry.createTypeUnsafe('AccountIndex', [value]) : decodeString(registry, value);\n }\n /**\n * @name GenericEthereumLookupSource\n * @description\n * A wrapper around an EthereumAccountId and/or AccountIndex that is encoded with a prefix.\n * Since we are dealing with underlying publicKeys (or shorter encoded addresses),\n * we extend from Base with an AccountId/AccountIndex wrapper. Basically the Address\n * is encoded as `[ <prefix-byte>, ...publicKey/...bytes ]` as per spec\n */\n class GenericEthereumLookupSource extends _polkadotTypesCodec.AbstractBase {\n constructor(registry, value = new Uint8Array()) {\n super(registry, decodeAddressOrIndex(registry, value));\n }\n /**\n * @description The length of the value when encoded as a Uint8Array\n */\n get encodedLength() {\n const rawLength = this._rawLength;\n return rawLength + (\n // for 1 byte AccountIndexes, we are not adding a specific prefix\n rawLength > 1 ? 1 : 0);\n }\n /**\n * @description The length of the raw value, either AccountIndex or AccountId\n */\n get _rawLength() {\n return this.inner instanceof _genericAccountIndexJs.GenericAccountIndex ? _genericAccountIndexJs.GenericAccountIndex.calcLength(this.inner) : this.inner.encodedLength;\n }\n /**\n * @description Returns a hex string representation of the value\n */\n toHex() {\n return (0, _polkadotUtil.u8aToHex)(this.toU8a());\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return 'Address';\n }\n /**\n * @description Encodes the value as a Uint8Array as per the SCALE specifications\n * @param isBare true when the value has none of the type-specific prefixes (internal)\n */\n toU8a(isBare) {\n const encoded = this.inner.toU8a().subarray(0, this._rawLength);\n return isBare ? encoded : (0, _polkadotUtil.u8aConcat)(this.inner instanceof _genericAccountIndexJs.GenericAccountIndex ? _genericAccountIndexJs.GenericAccountIndex.writeLength(encoded) : ACCOUNT_ID_PREFIX, encoded);\n }\n }\n});","lineCount":93,"map":[[7,2,6,0,"Object"],[7,8,6,0],[7,9,6,0,"defineProperty"],[7,23,6,0],[7,24,6,0,"exports"],[7,31,6,0],[8,4,6,0,"enumerable"],[8,14,6,0],[9,4,6,0,"get"],[9,7,6,0],[9,18,6,0,"get"],[9,19,6,0],[10,6,6,0],[10,13,6,0,"ACCOUNT_ID_PREFIX"],[10,30,6,0],[11,4,6,0],[12,2,6,0],[13,2,46,0,"Object"],[13,8,46,0],[13,9,46,0,"defineProperty"],[13,23,46,0],[13,24,46,0,"exports"],[13,31,46,0],[14,4,46,0,"enumerable"],[14,14,46,0],[15,4,46,0,"get"],[15,7,46,0],[15,18,46,0,"get"],[15,19,46,0],[16,6,46,0],[16,13,46,0,"GenericEthereumLookupSource"],[16,40,46,0],[17,4,46,0],[18,2,46,0],[19,2,1,0],[19,6,1,0,"_polkadotTypesCodec"],[19,25,1,0],[19,28,1,0,"require"],[19,35,1,0],[19,36,1,0,"_dependencyMap"],[19,50,1,0],[20,2,2,0],[20,6,2,0,"_polkadotUtil"],[20,19,2,0],[20,22,2,0,"require"],[20,29,2,0],[20,30,2,0,"_dependencyMap"],[20,44,2,0],[21,2,3,0],[21,6,3,0,"_polkadotUtilCrypto"],[21,25,3,0],[21,28,3,0,"require"],[21,35,3,0],[21,36,3,0,"_dependencyMap"],[21,50,3,0],[22,2,4,0],[22,6,4,0,"_genericAccountIndexJs"],[22,28,4,0],[22,31,4,0,"require"],[22,38,4,0],[22,39,4,0,"_dependencyMap"],[22,53,4,0],[23,2,5,0],[23,6,5,0,"_AccountIdJs"],[23,18,5,0],[23,21,5,0,"require"],[23,28,5,0],[23,29,5,0,"_dependencyMap"],[23,43,5,0],[24,2,6,7],[24,8,6,13,"ACCOUNT_ID_PREFIX"],[24,25,6,30],[24,28,6,33],[24,32,6,37,"Uint8Array"],[24,42,6,47],[24,43,6,48],[24,44,6,49],[24,48,6,53],[24,49,6,54],[24,50,6,55],[25,2,7,0],[26,2,8,0],[26,11,8,9,"decodeString"],[26,23,8,21,"decodeString"],[26,24,8,22,"registry"],[26,32,8,30],[26,34,8,32,"value"],[26,39,8,37],[26,41,8,39],[27,4,9,4],[27,10,9,10,"decoded"],[27,17,9,17],[27,20,9,20],[27,24,9,20,"decodeAddress"],[27,43,9,33],[27,44,9,33,"decodeAddress"],[27,57,9,33],[27,59,9,34,"value"],[27,64,9,39],[27,65,9,40],[28,4,10,4],[28,11,10,11,"decoded"],[28,18,10,18],[28,19,10,19,"length"],[28,25,10,25],[28,30,10,30],[28,32,10,32],[28,35,11,10,"registry"],[28,43,11,18],[28,44,11,19,"createTypeUnsafe"],[28,60,11,35],[28,61,11,36],[28,80,11,55],[28,82,11,57],[28,83,11,58,"decoded"],[28,90,11,65],[28,91,11,66],[28,92,11,67],[28,95,12,10,"registry"],[28,103,12,18],[28,104,12,19,"createTypeUnsafe"],[28,120,12,35],[28,121,12,36],[28,135,12,50],[28,137,12,52],[28,138,12,53],[28,142,12,53,"u8aToBn"],[28,155,12,60],[28,156,12,60,"u8aToBn"],[28,163,12,60],[28,165,12,61,"decoded"],[28,172,12,68],[28,173,12,69],[28,174,12,70],[28,175,12,71],[29,2,13,0],[30,2,14,0],[31,2,15,0],[31,11,15,9,"decodeU8a"],[31,20,15,18,"decodeU8a"],[31,21,15,19,"registry"],[31,29,15,27],[31,31,15,29,"value"],[31,36,15,34],[31,38,15,36],[32,4,16,4],[33,4,17,4],[34,4,18,4],[34,8,18,8,"value"],[34,13,18,13],[34,14,18,14,"length"],[34,20,18,20],[34,25,18,25],[34,27,18,27],[34,29,18,29],[35,6,19,8],[35,13,19,15,"registry"],[35,21,19,23],[35,22,19,24,"createTypeUnsafe"],[35,38,19,40],[35,39,19,41],[35,58,19,60],[35,60,19,62],[35,61,19,63,"value"],[35,66,19,68],[35,67,19,69],[35,68,19,70],[36,4,20,4],[36,5,20,5],[36,11,21,9],[36,15,21,13,"value"],[36,20,21,18],[36,21,21,19],[36,22,21,20],[36,23,21,21],[36,28,21,26],[36,32,21,30],[36,34,21,32],[37,6,22,8],[37,13,22,15,"registry"],[37,21,22,23],[37,22,22,24,"createTypeUnsafe"],[37,38,22,40],[37,39,22,41],[37,58,22,60],[37,60,22,62],[37,61,22,63,"value"],[37,66,22,68],[37,67,22,69,"subarray"],[37,75,22,77],[37,76,22,78],[37,77,22,79],[37,78,22,80],[37,79,22,81],[37,80,22,82],[38,4,23,4],[39,4,24,4],[39,10,24,10],[39,11,24,11,"offset"],[39,17,24,17],[39,19,24,19,"length"],[39,25,24,25],[39,26,24,26],[39,29,24,29,"GenericAccountIndex"],[39,51,24,48],[39,52,24,48,"GenericAccountIndex"],[39,71,24,48],[39,72,24,49,"readLength"],[39,82,24,59],[39,83,24,60,"value"],[39,88,24,65],[39,89,24,66],[40,4,25,4],[40,11,25,11,"registry"],[40,19,25,19],[40,20,25,20,"createTypeUnsafe"],[40,36,25,36],[40,37,25,37],[40,51,25,51],[40,53,25,53],[40,54,25,54],[40,58,25,54,"u8aToBn"],[40,71,25,61],[40,72,25,61,"u8aToBn"],[40,79,25,61],[40,81,25,62,"value"],[40,86,25,67],[40,87,25,68,"subarray"],[40,95,25,76],[40,96,25,77,"offset"],[40,102,25,83],[40,104,25,85,"offset"],[40,110,25,91],[40,113,25,94,"length"],[40,119,25,100],[40,120,25,101],[40,121,25,102],[40,122,25,103],[40,123,25,104],[41,2,26,0],[42,2,27,0],[42,11,27,9,"decodeAddressOrIndex"],[42,31,27,29,"decodeAddressOrIndex"],[42,32,27,30,"registry"],[42,40,27,38],[42,42,27,40,"value"],[42,47,27,45],[42,49,27,47],[43,4,28,4],[43,11,28,11,"value"],[43,16,28,16],[43,28,28,28,"GenericEthereumLookupSource"],[43,55,28,55],[43,58,29,10,"value"],[43,63,29,15],[43,64,29,16,"inner"],[43,69,29,21],[43,72,30,10,"value"],[43,77,30,15],[43,89,30,27,"GenericEthereumAccountId"],[43,101,30,51],[43,102,30,51,"GenericEthereumAccountId"],[43,126,30,51],[43,130,30,55,"value"],[43,135,30,60],[43,147,30,72,"GenericAccountIndex"],[43,169,30,91],[43,170,30,91,"GenericAccountIndex"],[43,189,30,91],[43,192,31,14,"value"],[43,197,31,19],[43,200,32,14],[43,204,32,14,"isU8a"],[43,217,32,19],[43,218,32,19,"isU8a"],[43,223,32,19],[43,225,32,20,"value"],[43,230,32,25],[43,231,32,26],[43,235,32,30,"Array"],[43,240,32,35],[43,241,32,36,"isArray"],[43,248,32,43],[43,249,32,44,"value"],[43,254,32,49],[43,255,32,50],[43,259,32,54],[43,263,32,54,"isHex"],[43,276,32,59],[43,277,32,59,"isHex"],[43,282,32,59],[43,284,32,60,"value"],[43,289,32,65],[43,290,32,66],[43,293,33,18,"decodeU8a"],[43,302,33,27],[43,303,33,28,"registry"],[43,311,33,36],[43,313,33,38],[43,317,33,38,"u8aToU8a"],[43,330,33,46],[43,331,33,46,"u8aToU8a"],[43,339,33,46],[43,341,33,47,"value"],[43,346,33,52],[43,347,33,53],[43,348,33,54],[43,351,34,18],[43,355,34,18,"isBn"],[43,368,34,22],[43,369,34,22,"isBn"],[43,373,34,22],[43,375,34,23,"value"],[43,380,34,28],[43,381,34,29],[43,385,34,33],[43,389,34,33,"isNumber"],[43,402,34,41],[43,403,34,41,"isNumber"],[43,411,34,41],[43,413,34,42,"value"],[43,418,34,47],[43,419,34,48],[43,423,34,52],[43,427,34,52,"isBigInt"],[43,440,34,60],[43,441,34,60,"isBigInt"],[43,449,34,60],[43,451,34,61,"value"],[43,456,34,66],[43,457,34,67],[43,460,35,22,"registry"],[43,468,35,30],[43,469,35,31,"createTypeUnsafe"],[43,485,35,47],[43,486,35,48],[43,500,35,62],[43,502,35,64],[43,503,35,65,"value"],[43,508,35,70],[43,509,35,71],[43,510,35,72],[43,513,36,22,"decodeString"],[43,525,36,34],[43,526,36,35,"registry"],[43,534,36,43],[43,536,36,45,"value"],[43,541,36,50],[43,542,36,51],[44,2,37,0],[45,2,38,0],[46,0,39,0],[47,0,40,0],[48,0,41,0],[49,0,42,0],[50,0,43,0],[51,0,44,0],[52,0,45,0],[53,2,46,7],[53,8,46,13,"GenericEthereumLookupSource"],[53,35,46,40],[53,44,46,49,"AbstractBase"],[53,63,46,61],[53,64,46,61,"AbstractBase"],[53,76,46,61],[53,77,46,62],[54,4,47,4,"constructor"],[54,15,47,15,"constructor"],[54,16,47,16,"registry"],[54,24,47,24],[54,26,47,26,"value"],[54,31,47,31],[54,34,47,34],[54,38,47,38,"Uint8Array"],[54,48,47,48],[54,49,47,49],[54,50,47,50],[54,52,47,52],[55,6,48,8],[55,11,48,13],[55,12,48,14,"registry"],[55,20,48,22],[55,22,48,24,"decodeAddressOrIndex"],[55,42,48,44],[55,43,48,45,"registry"],[55,51,48,53],[55,53,48,55,"value"],[55,58,48,60],[55,59,48,61],[55,60,48,62],[56,4,49,4],[57,4,50,4],[58,0,51,0],[59,0,52,0],[60,4,53,4],[60,8,53,8,"encodedLength"],[60,21,53,21,"encodedLength"],[60,22,53,21],[60,24,53,24],[61,6,54,8],[61,12,54,14,"rawLength"],[61,21,54,23],[61,24,54,26],[61,28,54,30],[61,29,54,31,"_rawLength"],[61,39,54,41],[62,6,55,8],[62,13,55,15,"rawLength"],[62,22,55,24],[63,6,56,8],[64,6,57,8,"rawLength"],[64,15,57,17],[64,18,57,20],[64,19,57,21],[64,22,58,14],[64,23,58,15],[64,26,59,14],[64,27,59,15],[64,28,59,16],[65,4,60,4],[66,4,61,4],[67,0,62,0],[68,0,63,0],[69,4,64,4],[69,8,64,8,"_rawLength"],[69,18,64,18,"_rawLength"],[69,19,64,18],[69,21,64,21],[70,6,65,8],[70,13,65,15],[70,17,65,19],[70,18,65,20,"inner"],[70,23,65,25],[70,35,65,37,"GenericAccountIndex"],[70,57,65,56],[70,58,65,56,"GenericAccountIndex"],[70,77,65,56],[70,80,66,14,"GenericAccountIndex"],[70,102,66,33],[70,103,66,33,"GenericAccountIndex"],[70,122,66,33],[70,123,66,34,"calcLength"],[70,133,66,44],[70,134,66,45],[70,138,66,49],[70,139,66,50,"inner"],[70,144,66,55],[70,145,66,56],[70,148,67,14],[70,152,67,18],[70,153,67,19,"inner"],[70,158,67,24],[70,159,67,25,"encodedLength"],[70,172,67,38],[71,4,68,4],[72,4,69,4],[73,0,70,0],[74,0,71,0],[75,4,72,4,"toHex"],[75,9,72,9,"toHex"],[75,10,72,9],[75,12,72,12],[76,6,73,8],[76,13,73,15],[76,17,73,15,"u8aToHex"],[76,30,73,23],[76,31,73,23,"u8aToHex"],[76,39,73,23],[76,41,73,24],[76,45,73,28],[76,46,73,29,"toU8a"],[76,51,73,34],[76,52,73,35],[76,53,73,36],[76,54,73,37],[77,4,74,4],[78,4,75,4],[79,0,76,0],[80,0,77,0],[81,4,78,4,"toRawType"],[81,13,78,13,"toRawType"],[81,14,78,13],[81,16,78,16],[82,6,79,8],[82,13,79,15],[82,22,79,24],[83,4,80,4],[84,4,81,4],[85,0,82,0],[86,0,83,0],[87,0,84,0],[88,4,85,4,"toU8a"],[88,9,85,9,"toU8a"],[88,10,85,10,"isBare"],[88,16,85,16],[88,18,85,18],[89,6,86,8],[89,12,86,14,"encoded"],[89,19,86,21],[89,22,86,24],[89,26,86,28],[89,27,86,29,"inner"],[89,32,86,34],[89,33,86,35,"toU8a"],[89,38,86,40],[89,39,86,41],[89,40,86,42],[89,41,86,43,"subarray"],[89,49,86,51],[89,50,86,52],[89,51,86,53],[89,53,86,55],[89,57,86,59],[89,58,86,60,"_rawLength"],[89,68,86,70],[89,69,86,71],[90,6,87,8],[90,13,87,15,"isBare"],[90,19,87,21],[90,22,88,14,"encoded"],[90,29,88,21],[90,32,89,14],[90,36,89,14,"u8aConcat"],[90,49,89,23],[90,50,89,23,"u8aConcat"],[90,59,89,23],[90,61,89,24],[90,65,89,28],[90,66,89,29,"inner"],[90,71,89,34],[90,83,89,46,"GenericAccountIndex"],[90,105,89,65],[90,106,89,65,"GenericAccountIndex"],[90,125,89,65],[90,128,90,18,"GenericAccountIndex"],[90,150,90,37],[90,151,90,37,"GenericAccountIndex"],[90,170,90,37],[90,171,90,38,"writeLength"],[90,182,90,49],[90,183,90,50,"encoded"],[90,190,90,57],[90,191,90,58],[90,194,91,18,"ACCOUNT_ID_PREFIX"],[90,211,91,35],[90,213,91,37,"encoded"],[90,220,91,44],[90,221,91,45],[91,4,92,4],[92,2,93,0],[93,0,93,1],[93,3]],"functionMap":{"names":["<global>","decodeString","decodeU8a","decodeAddressOrIndex","GenericEthereumLookupSource","GenericEthereumLookupSource#constructor","GenericEthereumLookupSource#get__encodedLength","GenericEthereumLookupSource#get___rawLength","GenericEthereumLookupSource#toHex","GenericEthereumLookupSource#toRawType","GenericEthereumLookupSource#toU8a"],"mappings":"AAA;ACO;CDK;AEE;CFW;AGC;CHU;OIS;ICC;KDE;IEI;KFO;IGI;KHI;III;KJE;IKI;KLE;IMK;KNO;CJC"},"hasCjsExports":false},"type":"js/module"}]}