mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 21:31:02 +00:00
1 line
17 KiB
Plaintext
1 line
17 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":"./AccountId.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":4,"column":0,"index":222},"end":{"line":4,"column":50,"index":272}}],"key":"y86fCoqNqJ/4rLC70kegW0cVo04=","exportNames":["*"],"imports":1}},{"name":"./AccountIndex.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":5,"column":0,"index":273},"end":{"line":5,"column":56,"index":329}}],"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, \"ACCOUNT_ID_PREFIX\", {\n enumerable: true,\n get: function () {\n return ACCOUNT_ID_PREFIX;\n }\n });\n Object.defineProperty(exports, \"GenericLookupSource\", {\n enumerable: true,\n get: function () {\n return GenericLookupSource;\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 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 === 32 ? registry.createTypeUnsafe('AccountId', [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 === 32) {\n return registry.createTypeUnsafe('AccountId', [value]);\n } else if (value[0] === 0xff) {\n return registry.createTypeUnsafe('AccountId', [value.subarray(1)]);\n }\n const [offset, length] = _AccountIndexJs.GenericAccountIndex.readLength(value);\n return registry.createTypeUnsafe('AccountIndex', [(0, _polkadotUtil.u8aToBn)(value.subarray(offset, offset + length))]);\n }\n /** @internal */\n function decodeAddressOrIndex(registry, value) {\n return value instanceof GenericLookupSource ? value.inner : value instanceof _AccountIdJs.GenericAccountId || value instanceof _AccountIndexJs.GenericAccountIndex ? value : (0, _polkadotUtil.isBn)(value) || (0, _polkadotUtil.isNumber)(value) || (0, _polkadotUtil.isBigInt)(value) ? registry.createTypeUnsafe('AccountIndex', [value]) : Array.isArray(value) || (0, _polkadotUtil.isHex)(value) || (0, _polkadotUtil.isU8a)(value) ? decodeU8a(registry, (0, _polkadotUtil.u8aToU8a)(value)) : decodeString(registry, value);\n }\n /**\n * @name LookupSource\n * @description\n * A wrapper around an AccountId 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 GenericLookupSource 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 _AccountIndexJs.GenericAccountIndex ? _AccountIndexJs.GenericAccountIndex.calcLength(this.inner) : this.inner.encodedLength;\n }\n /**\n * @description Returns a breakdown of the hex encoding for this Codec\n */\n inspect() {\n const value = this.inner.toU8a().subarray(0, this._rawLength);\n return {\n outer: [new Uint8Array(this.inner instanceof _AccountIndexJs.GenericAccountIndex ? _AccountIndexJs.GenericAccountIndex.writeLength(value) : ACCOUNT_ID_PREFIX), value]\n };\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 _AccountIndexJs.GenericAccountIndex ? _AccountIndexJs.GenericAccountIndex.writeLength(encoded) : ACCOUNT_ID_PREFIX, encoded);\n }\n }\n});","lineCount":103,"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,47,0,"Object"],[13,8,47,0],[13,9,47,0,"defineProperty"],[13,23,47,0],[13,24,47,0,"exports"],[13,31,47,0],[14,4,47,0,"enumerable"],[14,14,47,0],[15,4,47,0,"get"],[15,7,47,0],[15,18,47,0,"get"],[15,19,47,0],[16,6,47,0],[16,13,47,0,"GenericLookupSource"],[16,32,47,0],[17,4,47,0],[18,2,47,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,"_AccountIdJs"],[22,18,4,0],[22,21,4,0,"require"],[22,28,4,0],[22,29,4,0,"_dependencyMap"],[22,43,4,0],[23,2,5,0],[23,6,5,0,"_AccountIndexJs"],[23,21,5,0],[23,24,5,0,"require"],[23,31,5,0],[23,32,5,0,"_dependencyMap"],[23,46,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,72,11,47],[28,74,11,49],[28,75,11,50,"decoded"],[28,82,11,57],[28,83,11,58],[28,84,11,59],[28,87,12,10,"registry"],[28,95,12,18],[28,96,12,19,"createTypeUnsafe"],[28,112,12,35],[28,113,12,36],[28,127,12,50],[28,129,12,52],[28,130,12,53],[28,134,12,53,"u8aToBn"],[28,147,12,60],[28,148,12,60,"u8aToBn"],[28,155,12,60],[28,157,12,61,"decoded"],[28,164,12,68],[28,165,12,69],[28,166,12,70],[28,167,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,50,19,52],[35,52,19,54],[35,53,19,55,"value"],[35,58,19,60],[35,59,19,61],[35,60,19,62],[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,50,22,52],[37,52,22,54],[37,53,22,55,"value"],[37,58,22,60],[37,59,22,61,"subarray"],[37,67,22,69],[37,68,22,70],[37,69,22,71],[37,70,22,72],[37,71,22,73],[37,72,22,74],[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,44,24,48],[39,45,24,48,"GenericAccountIndex"],[39,64,24,48],[39,65,24,49,"readLength"],[39,75,24,59],[39,76,24,60,"value"],[39,81,24,65],[39,82,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],[43,2,28,0],[43,11,28,9,"decodeAddressOrIndex"],[43,31,28,29,"decodeAddressOrIndex"],[43,32,28,30,"registry"],[43,40,28,38],[43,42,28,40,"value"],[43,47,28,45],[43,49,28,47],[44,4,29,4],[44,11,29,11,"value"],[44,16,29,16],[44,28,29,28,"GenericLookupSource"],[44,47,29,47],[44,50,30,10,"value"],[44,55,30,15],[44,56,30,16,"inner"],[44,61,30,21],[44,64,31,10,"value"],[44,69,31,15],[44,81,31,27,"GenericAccountId"],[44,93,31,43],[44,94,31,43,"GenericAccountId"],[44,110,31,43],[44,114,31,47,"value"],[44,119,31,52],[44,131,31,64,"GenericAccountIndex"],[44,146,31,83],[44,147,31,83,"GenericAccountIndex"],[44,166,31,83],[44,169,32,14,"value"],[44,174,32,19],[44,177,33,14],[44,181,33,14,"isBn"],[44,194,33,18],[44,195,33,18,"isBn"],[44,199,33,18],[44,201,33,19,"value"],[44,206,33,24],[44,207,33,25],[44,211,33,29],[44,215,33,29,"isNumber"],[44,228,33,37],[44,229,33,37,"isNumber"],[44,237,33,37],[44,239,33,38,"value"],[44,244,33,43],[44,245,33,44],[44,249,33,48],[44,253,33,48,"isBigInt"],[44,266,33,56],[44,267,33,56,"isBigInt"],[44,275,33,56],[44,277,33,57,"value"],[44,282,33,62],[44,283,33,63],[44,286,34,18,"registry"],[44,294,34,26],[44,295,34,27,"createTypeUnsafe"],[44,311,34,43],[44,312,34,44],[44,326,34,58],[44,328,34,60],[44,329,34,61,"value"],[44,334,34,66],[44,335,34,67],[44,336,34,68],[44,339,35,18,"Array"],[44,344,35,23],[44,345,35,24,"isArray"],[44,352,35,31],[44,353,35,32,"value"],[44,358,35,37],[44,359,35,38],[44,363,35,42],[44,367,35,42,"isHex"],[44,380,35,47],[44,381,35,47,"isHex"],[44,386,35,47],[44,388,35,48,"value"],[44,393,35,53],[44,394,35,54],[44,398,35,58],[44,402,35,58,"isU8a"],[44,415,35,63],[44,416,35,63,"isU8a"],[44,421,35,63],[44,423,35,64,"value"],[44,428,35,69],[44,429,35,70],[44,432,36,22,"decodeU8a"],[44,441,36,31],[44,442,36,32,"registry"],[44,450,36,40],[44,452,36,42],[44,456,36,42,"u8aToU8a"],[44,469,36,50],[44,470,36,50,"u8aToU8a"],[44,478,36,50],[44,480,36,51,"value"],[44,485,36,56],[44,486,36,57],[44,487,36,58],[44,490,37,22,"decodeString"],[44,502,37,34],[44,503,37,35,"registry"],[44,511,37,43],[44,513,37,45,"value"],[44,518,37,50],[44,519,37,51],[45,2,38,0],[46,2,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,0,46,0],[54,2,47,7],[54,8,47,13,"GenericLookupSource"],[54,27,47,32],[54,36,47,41,"AbstractBase"],[54,55,47,53],[54,56,47,53,"AbstractBase"],[54,68,47,53],[54,69,47,54],[55,4,48,4,"constructor"],[55,15,48,15,"constructor"],[55,16,48,16,"registry"],[55,24,48,24],[55,26,48,26,"value"],[55,31,48,31],[55,34,48,34],[55,38,48,38,"Uint8Array"],[55,48,48,48],[55,49,48,49],[55,50,48,50],[55,52,48,52],[56,6,49,8],[56,11,49,13],[56,12,49,14,"registry"],[56,20,49,22],[56,22,49,24,"decodeAddressOrIndex"],[56,42,49,44],[56,43,49,45,"registry"],[56,51,49,53],[56,53,49,55,"value"],[56,58,49,60],[56,59,49,61],[56,60,49,62],[57,4,50,4],[58,4,51,4],[59,0,52,0],[60,0,53,0],[61,4,54,4],[61,8,54,8,"encodedLength"],[61,21,54,21,"encodedLength"],[61,22,54,21],[61,24,54,24],[62,6,55,8],[62,12,55,14,"rawLength"],[62,21,55,23],[62,24,55,26],[62,28,55,30],[62,29,55,31,"_rawLength"],[62,39,55,41],[63,6,56,8],[63,13,56,15,"rawLength"],[63,22,56,24],[64,6,57,8],[65,6,58,8,"rawLength"],[65,15,58,17],[65,18,58,20],[65,19,58,21],[65,22,59,14],[65,23,59,15],[65,26,60,14],[65,27,60,15],[65,28,60,16],[66,4,61,4],[67,4,62,4],[68,0,63,0],[69,0,64,0],[70,4,65,4],[70,8,65,8,"_rawLength"],[70,18,65,18,"_rawLength"],[70,19,65,18],[70,21,65,21],[71,6,66,8],[71,13,66,15],[71,17,66,19],[71,18,66,20,"inner"],[71,23,66,25],[71,35,66,37,"GenericAccountIndex"],[71,50,66,56],[71,51,66,56,"GenericAccountIndex"],[71,70,66,56],[71,73,67,14,"GenericAccountIndex"],[71,88,67,33],[71,89,67,33,"GenericAccountIndex"],[71,108,67,33],[71,109,67,34,"calcLength"],[71,119,67,44],[71,120,67,45],[71,124,67,49],[71,125,67,50,"inner"],[71,130,67,55],[71,131,67,56],[71,134,68,14],[71,138,68,18],[71,139,68,19,"inner"],[71,144,68,24],[71,145,68,25,"encodedLength"],[71,158,68,38],[72,4,69,4],[73,4,70,4],[74,0,71,0],[75,0,72,0],[76,4,73,4,"inspect"],[76,11,73,11,"inspect"],[76,12,73,11],[76,14,73,14],[77,6,74,8],[77,12,74,14,"value"],[77,17,74,19],[77,20,74,22],[77,24,74,26],[77,25,74,27,"inner"],[77,30,74,32],[77,31,74,33,"toU8a"],[77,36,74,38],[77,37,74,39],[77,38,74,40],[77,39,74,41,"subarray"],[77,47,74,49],[77,48,74,50],[77,49,74,51],[77,51,74,53],[77,55,74,57],[77,56,74,58,"_rawLength"],[77,66,74,68],[77,67,74,69],[78,6,75,8],[78,13,75,15],[79,8,76,12,"outer"],[79,13,76,17],[79,15,76,19],[79,16,77,16],[79,20,77,20,"Uint8Array"],[79,30,77,30],[79,31,77,31],[79,35,77,35],[79,36,77,36,"inner"],[79,41,77,41],[79,53,77,53,"GenericAccountIndex"],[79,68,77,72],[79,69,77,72,"GenericAccountIndex"],[79,88,77,72],[79,91,78,22,"GenericAccountIndex"],[79,106,78,41],[79,107,78,41,"GenericAccountIndex"],[79,126,78,41],[79,127,78,42,"writeLength"],[79,138,78,53],[79,139,78,54,"value"],[79,144,78,59],[79,145,78,60],[79,148,79,22,"ACCOUNT_ID_PREFIX"],[79,165,79,39],[79,166,79,40],[79,168,80,16,"value"],[79,173,80,21],[80,6,82,8],[80,7,82,9],[81,4,83,4],[82,4,84,4],[83,0,85,0],[84,0,86,0],[85,4,87,4,"toHex"],[85,9,87,9,"toHex"],[85,10,87,9],[85,12,87,12],[86,6,88,8],[86,13,88,15],[86,17,88,15,"u8aToHex"],[86,30,88,23],[86,31,88,23,"u8aToHex"],[86,39,88,23],[86,41,88,24],[86,45,88,28],[86,46,88,29,"toU8a"],[86,51,88,34],[86,52,88,35],[86,53,88,36],[86,54,88,37],[87,4,89,4],[88,4,90,4],[89,0,91,0],[90,0,92,0],[91,4,93,4,"toRawType"],[91,13,93,13,"toRawType"],[91,14,93,13],[91,16,93,16],[92,6,94,8],[92,13,94,15],[92,22,94,24],[93,4,95,4],[94,4,96,4],[95,0,97,0],[96,0,98,0],[97,0,99,0],[98,4,100,4,"toU8a"],[98,9,100,9,"toU8a"],[98,10,100,10,"isBare"],[98,16,100,16],[98,18,100,18],[99,6,101,8],[99,12,101,14,"encoded"],[99,19,101,21],[99,22,101,24],[99,26,101,28],[99,27,101,29,"inner"],[99,32,101,34],[99,33,101,35,"toU8a"],[99,38,101,40],[99,39,101,41],[99,40,101,42],[99,41,101,43,"subarray"],[99,49,101,51],[99,50,101,52],[99,51,101,53],[99,53,101,55],[99,57,101,59],[99,58,101,60,"_rawLength"],[99,68,101,70],[99,69,101,71],[100,6,102,8],[100,13,102,15,"isBare"],[100,19,102,21],[100,22,103,14,"encoded"],[100,29,103,21],[100,32,104,14],[100,36,104,14,"u8aConcat"],[100,49,104,23],[100,50,104,23,"u8aConcat"],[100,59,104,23],[100,61,104,24],[100,65,104,28],[100,66,104,29,"inner"],[100,71,104,34],[100,83,104,46,"GenericAccountIndex"],[100,98,104,65],[100,99,104,65,"GenericAccountIndex"],[100,118,104,65],[100,121,105,18,"GenericAccountIndex"],[100,136,105,37],[100,137,105,37,"GenericAccountIndex"],[100,156,105,37],[100,157,105,38,"writeLength"],[100,168,105,49],[100,169,105,50,"encoded"],[100,176,105,57],[100,177,105,58],[100,180,106,18,"ACCOUNT_ID_PREFIX"],[100,197,106,35],[100,199,106,37,"encoded"],[100,206,106,44],[100,207,106,45],[101,4,107,4],[102,2,108,0],[103,0,108,1],[103,3]],"functionMap":{"names":["<global>","decodeString","decodeU8a","decodeAddressOrIndex","GenericLookupSource","GenericLookupSource#constructor","GenericLookupSource#get__encodedLength","GenericLookupSource#get___rawLength","GenericLookupSource#inspect","GenericLookupSource#toHex","GenericLookupSource#toRawType","GenericLookupSource#toU8a"],"mappings":"AAA;ACO;CDK;AEE;CFW;AGE;CHU;OIS;ICC;KDE;IEI;KFO;IGI;KHI;III;KJU;IKI;KLE;IMI;KNE;IOK;KPO;CJC"},"hasCjsExports":false},"type":"js/module"}]} |