mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 06:31:03 +00:00
1 line
14 KiB
Plaintext
1 line
14 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":59,"index":105}}],"key":"ISHU1ovvPMrCldqRjtd1JhW9dyo=","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, \"Data\", {\n enumerable: true,\n get: function () {\n return Data;\n }\n });\n var _polkadotTypesCodec = require(_dependencyMap[0], \"@polkadot/types-codec\");\n var _polkadotUtil = require(_dependencyMap[1], \"@polkadot/util\");\n /** @internal */\n function decodeDataU8a(registry, value) {\n const indicator = value[0];\n if (!indicator) {\n return [undefined, undefined];\n } else if (indicator >= 1 && indicator <= 33) {\n const length = indicator - 1;\n const data = value.subarray(1, length + 1);\n // in this case, we are passing a Raw back (since we have no length)\n return [registry.createTypeUnsafe('Raw', [data]), 1];\n } else if (indicator >= 34 && indicator <= 37) {\n return [value.subarray(1, 32 + 1), indicator - 32]; // 34 becomes 2\n }\n throw new Error(`Unable to decode Data, invalid indicator byte ${indicator}`);\n }\n /** @internal */\n function decodeData(registry, value) {\n if ((0, _polkadotUtil.isU8a)(value) || (0, _polkadotUtil.isString)(value)) {\n return decodeDataU8a(registry, (0, _polkadotUtil.u8aToU8a)(value));\n } else if (!value) {\n return [undefined, undefined];\n }\n // assume we have an Enum or an object input, handle this via the normal Enum decoding\n return [value, undefined];\n }\n /**\n * @name Data\n * @description\n * A [[Data]] container with node, raw or hashed data\n */\n class Data extends _polkadotTypesCodec.Enum {\n constructor(registry, value) {\n super(registry, {\n None: 'Null',\n // 0\n Raw: 'Bytes',\n // 1\n // eslint-disable-next-line sort-keys\n BlakeTwo256: 'H256',\n // 2\n Sha256: 'H256',\n // 3\n // eslint-disable-next-line sort-keys\n Keccak256: 'H256',\n // 4\n ShaThree256: 'H256' // 5\n }, ...decodeData(registry, value));\n if (this.isRaw && this.asRaw.length > 32) {\n throw new Error('Data.Raw values are limited to a maximum length of 32 bytes');\n }\n }\n get asBlakeTwo256() {\n return this.value;\n }\n get asKeccak256() {\n return this.value;\n }\n get asRaw() {\n return this.value;\n }\n get asSha256() {\n return this.value;\n }\n get asShaThree256() {\n return this.value;\n }\n get isBlakeTwo256() {\n return this.index === 2;\n }\n get isKeccak256() {\n return this.index === 4;\n }\n get isNone() {\n return this.index === 0;\n }\n get isRaw() {\n return this.index === 1;\n }\n get isSha256() {\n return this.index === 3;\n }\n get isShaThree256() {\n return this.index === 5;\n }\n /**\n * @description The encoded length\n */\n get encodedLength() {\n return this.toU8a().length;\n }\n /**\n * @description Encodes the value as a Uint8Array as per the SCALE specifications\n */\n toU8a() {\n if (this.index === 0) {\n return new Uint8Array(1);\n } else if (this.index === 1) {\n // don't add the length, just the data\n const data = this.value.toU8a(true);\n const length = Math.min(data.length, 32);\n const u8a = new Uint8Array(length + 1);\n u8a.set([length + 1], 0);\n u8a.set(data.subarray(0, length), 1);\n return u8a;\n }\n // otherwise we simply have a hash\n const u8a = new Uint8Array(33);\n u8a.set([this.index + 32], 0);\n u8a.set(this.value.toU8a(), 1);\n return u8a;\n }\n }\n});","lineCount":127,"map":[[7,2,36,0,"Object"],[7,8,36,0],[7,9,36,0,"defineProperty"],[7,23,36,0],[7,24,36,0,"exports"],[7,31,36,0],[8,4,36,0,"enumerable"],[8,14,36,0],[9,4,36,0,"get"],[9,7,36,0],[9,18,36,0,"get"],[9,19,36,0],[10,6,36,0],[10,13,36,0,"Data"],[10,17,36,0],[11,4,36,0],[12,2,36,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],[16,2,4,0],[16,11,4,9,"decodeDataU8a"],[16,24,4,22,"decodeDataU8a"],[16,25,4,23,"registry"],[16,33,4,31],[16,35,4,33,"value"],[16,40,4,38],[16,42,4,40],[17,4,5,4],[17,10,5,10,"indicator"],[17,19,5,19],[17,22,5,22,"value"],[17,27,5,27],[17,28,5,28],[17,29,5,29],[17,30,5,30],[18,4,6,4],[18,8,6,8],[18,9,6,9,"indicator"],[18,18,6,18],[18,20,6,20],[19,6,7,8],[19,13,7,15],[19,14,7,16,"undefined"],[19,23,7,25],[19,25,7,27,"undefined"],[19,34,7,36],[19,35,7,37],[20,4,8,4],[20,5,8,5],[20,11,9,9],[20,15,9,13,"indicator"],[20,24,9,22],[20,28,9,26],[20,29,9,27],[20,33,9,31,"indicator"],[20,42,9,40],[20,46,9,44],[20,48,9,46],[20,50,9,48],[21,6,10,8],[21,12,10,14,"length"],[21,18,10,20],[21,21,10,23,"indicator"],[21,30,10,32],[21,33,10,35],[21,34,10,36],[22,6,11,8],[22,12,11,14,"data"],[22,16,11,18],[22,19,11,21,"value"],[22,24,11,26],[22,25,11,27,"subarray"],[22,33,11,35],[22,34,11,36],[22,35,11,37],[22,37,11,39,"length"],[22,43,11,45],[22,46,11,48],[22,47,11,49],[22,48,11,50],[23,6,12,8],[24,6,13,8],[24,13,13,15],[24,14,13,16,"registry"],[24,22,13,24],[24,23,13,25,"createTypeUnsafe"],[24,39,13,41],[24,40,13,42],[24,45,13,47],[24,47,13,49],[24,48,13,50,"data"],[24,52,13,54],[24,53,13,55],[24,54,13,56],[24,56,13,58],[24,57,13,59],[24,58,13,60],[25,4,14,4],[25,5,14,5],[25,11,15,9],[25,15,15,13,"indicator"],[25,24,15,22],[25,28,15,26],[25,30,15,28],[25,34,15,32,"indicator"],[25,43,15,41],[25,47,15,45],[25,49,15,47],[25,51,15,49],[26,6,16,8],[26,13,16,15],[26,14,16,16,"value"],[26,19,16,21],[26,20,16,22,"subarray"],[26,28,16,30],[26,29,16,31],[26,30,16,32],[26,32,16,34],[26,34,16,36],[26,37,16,39],[26,38,16,40],[26,39,16,41],[26,41,16,43,"indicator"],[26,50,16,52],[26,53,16,55],[26,55,16,57],[26,56,16,58],[26,57,16,59],[26,58,16,60],[27,4,17,4],[28,4,18,4],[28,10,18,10],[28,14,18,14,"Error"],[28,19,18,19],[28,20,18,20],[28,69,18,69,"indicator"],[28,78,18,78],[28,80,18,80],[28,81,18,81],[29,2,19,0],[30,2,20,0],[31,2,21,0],[31,11,21,9,"decodeData"],[31,21,21,19,"decodeData"],[31,22,21,20,"registry"],[31,30,21,28],[31,32,21,30,"value"],[31,37,21,35],[31,39,21,37],[32,4,22,4],[32,8,22,8],[32,12,22,8,"isU8a"],[32,25,22,13],[32,26,22,13,"isU8a"],[32,31,22,13],[32,33,22,14,"value"],[32,38,22,19],[32,39,22,20],[32,43,22,24],[32,47,22,24,"isString"],[32,60,22,32],[32,61,22,32,"isString"],[32,69,22,32],[32,71,22,33,"value"],[32,76,22,38],[32,77,22,39],[32,79,22,41],[33,6,23,8],[33,13,23,15,"decodeDataU8a"],[33,26,23,28],[33,27,23,29,"registry"],[33,35,23,37],[33,37,23,39],[33,41,23,39,"u8aToU8a"],[33,54,23,47],[33,55,23,47,"u8aToU8a"],[33,63,23,47],[33,65,23,48,"value"],[33,70,23,53],[33,71,23,54],[33,72,23,55],[34,4,24,4],[34,5,24,5],[34,11,25,9],[34,15,25,13],[34,16,25,14,"value"],[34,21,25,19],[34,23,25,21],[35,6,26,8],[35,13,26,15],[35,14,26,16,"undefined"],[35,23,26,25],[35,25,26,27,"undefined"],[35,34,26,36],[35,35,26,37],[36,4,27,4],[37,4,28,4],[38,4,29,4],[38,11,29,11],[38,12,29,12,"value"],[38,17,29,17],[38,19,29,19,"undefined"],[38,28,29,28],[38,29,29,29],[39,2,30,0],[40,2,31,0],[41,0,32,0],[42,0,33,0],[43,0,34,0],[44,0,35,0],[45,2,36,7],[45,8,36,13,"Data"],[45,12,36,17],[45,21,36,26,"Enum"],[45,40,36,30],[45,41,36,30,"Enum"],[45,45,36,30],[45,46,36,31],[46,4,37,4,"constructor"],[46,15,37,15,"constructor"],[46,16,37,16,"registry"],[46,24,37,24],[46,26,37,26,"value"],[46,31,37,31],[46,33,37,33],[47,6,38,8],[47,11,38,13],[47,12,38,14,"registry"],[47,20,38,22],[47,22,38,24],[48,8,39,12,"None"],[48,12,39,16],[48,14,39,18],[48,20,39,24],[49,8,39,26],[50,8,40,12,"Raw"],[50,11,40,15],[50,13,40,17],[50,20,40,24],[51,8,40,26],[52,8,41,12],[53,8,42,12,"BlakeTwo256"],[53,19,42,23],[53,21,42,25],[53,27,42,31],[54,8,42,33],[55,8,43,12,"Sha256"],[55,14,43,18],[55,16,43,20],[55,22,43,26],[56,8,43,28],[57,8,44,12],[58,8,45,12,"Keccak256"],[58,17,45,21],[58,19,45,23],[58,25,45,29],[59,8,45,31],[60,8,46,12,"ShaThree256"],[60,19,46,23],[60,21,46,25],[60,27,46,31],[60,28,46,32],[61,6,47,8],[61,7,47,9],[61,9,47,11],[61,12,47,14,"decodeData"],[61,22,47,24],[61,23,47,25,"registry"],[61,31,47,33],[61,33,47,35,"value"],[61,38,47,40],[61,39,47,41],[61,40,47,42],[62,6,48,8],[62,10,48,12],[62,14,48,16],[62,15,48,17,"isRaw"],[62,20,48,22],[62,24,48,26],[62,28,48,30],[62,29,48,31,"asRaw"],[62,34,48,36],[62,35,48,37,"length"],[62,41,48,43],[62,44,48,46],[62,46,48,48],[62,48,48,50],[63,8,49,12],[63,14,49,18],[63,18,49,22,"Error"],[63,23,49,27],[63,24,49,28],[63,85,49,89],[63,86,49,90],[64,6,50,8],[65,4,51,4],[66,4,52,4],[66,8,52,8,"asBlakeTwo256"],[66,21,52,21,"asBlakeTwo256"],[66,22,52,21],[66,24,52,24],[67,6,53,8],[67,13,53,15],[67,17,53,19],[67,18,53,20,"value"],[67,23,53,25],[68,4,54,4],[69,4,55,4],[69,8,55,8,"asKeccak256"],[69,19,55,19,"asKeccak256"],[69,20,55,19],[69,22,55,22],[70,6,56,8],[70,13,56,15],[70,17,56,19],[70,18,56,20,"value"],[70,23,56,25],[71,4,57,4],[72,4,58,4],[72,8,58,8,"asRaw"],[72,13,58,13,"asRaw"],[72,14,58,13],[72,16,58,16],[73,6,59,8],[73,13,59,15],[73,17,59,19],[73,18,59,20,"value"],[73,23,59,25],[74,4,60,4],[75,4,61,4],[75,8,61,8,"asSha256"],[75,16,61,16,"asSha256"],[75,17,61,16],[75,19,61,19],[76,6,62,8],[76,13,62,15],[76,17,62,19],[76,18,62,20,"value"],[76,23,62,25],[77,4,63,4],[78,4,64,4],[78,8,64,8,"asShaThree256"],[78,21,64,21,"asShaThree256"],[78,22,64,21],[78,24,64,24],[79,6,65,8],[79,13,65,15],[79,17,65,19],[79,18,65,20,"value"],[79,23,65,25],[80,4,66,4],[81,4,67,4],[81,8,67,8,"isBlakeTwo256"],[81,21,67,21,"isBlakeTwo256"],[81,22,67,21],[81,24,67,24],[82,6,68,8],[82,13,68,15],[82,17,68,19],[82,18,68,20,"index"],[82,23,68,25],[82,28,68,30],[82,29,68,31],[83,4,69,4],[84,4,70,4],[84,8,70,8,"isKeccak256"],[84,19,70,19,"isKeccak256"],[84,20,70,19],[84,22,70,22],[85,6,71,8],[85,13,71,15],[85,17,71,19],[85,18,71,20,"index"],[85,23,71,25],[85,28,71,30],[85,29,71,31],[86,4,72,4],[87,4,73,4],[87,8,73,8,"isNone"],[87,14,73,14,"isNone"],[87,15,73,14],[87,17,73,17],[88,6,74,8],[88,13,74,15],[88,17,74,19],[88,18,74,20,"index"],[88,23,74,25],[88,28,74,30],[88,29,74,31],[89,4,75,4],[90,4,76,4],[90,8,76,8,"isRaw"],[90,13,76,13,"isRaw"],[90,14,76,13],[90,16,76,16],[91,6,77,8],[91,13,77,15],[91,17,77,19],[91,18,77,20,"index"],[91,23,77,25],[91,28,77,30],[91,29,77,31],[92,4,78,4],[93,4,79,4],[93,8,79,8,"isSha256"],[93,16,79,16,"isSha256"],[93,17,79,16],[93,19,79,19],[94,6,80,8],[94,13,80,15],[94,17,80,19],[94,18,80,20,"index"],[94,23,80,25],[94,28,80,30],[94,29,80,31],[95,4,81,4],[96,4,82,4],[96,8,82,8,"isShaThree256"],[96,21,82,21,"isShaThree256"],[96,22,82,21],[96,24,82,24],[97,6,83,8],[97,13,83,15],[97,17,83,19],[97,18,83,20,"index"],[97,23,83,25],[97,28,83,30],[97,29,83,31],[98,4,84,4],[99,4,85,4],[100,0,86,0],[101,0,87,0],[102,4,88,4],[102,8,88,8,"encodedLength"],[102,21,88,21,"encodedLength"],[102,22,88,21],[102,24,88,24],[103,6,89,8],[103,13,89,15],[103,17,89,19],[103,18,89,20,"toU8a"],[103,23,89,25],[103,24,89,26],[103,25,89,27],[103,26,89,28,"length"],[103,32,89,34],[104,4,90,4],[105,4,91,4],[106,0,92,0],[107,0,93,0],[108,4,94,4,"toU8a"],[108,9,94,9,"toU8a"],[108,10,94,9],[108,12,94,12],[109,6,95,8],[109,10,95,12],[109,14,95,16],[109,15,95,17,"index"],[109,20,95,22],[109,25,95,27],[109,26,95,28],[109,28,95,30],[110,8,96,12],[110,15,96,19],[110,19,96,23,"Uint8Array"],[110,29,96,33],[110,30,96,34],[110,31,96,35],[110,32,96,36],[111,6,97,8],[111,7,97,9],[111,13,98,13],[111,17,98,17],[111,21,98,21],[111,22,98,22,"index"],[111,27,98,27],[111,32,98,32],[111,33,98,33],[111,35,98,35],[112,8,99,12],[113,8,100,12],[113,14,100,18,"data"],[113,18,100,22],[113,21,100,25],[113,25,100,29],[113,26,100,30,"value"],[113,31,100,35],[113,32,100,36,"toU8a"],[113,37,100,41],[113,38,100,42],[113,42,100,46],[113,43,100,47],[114,8,101,12],[114,14,101,18,"length"],[114,20,101,24],[114,23,101,27,"Math"],[114,27,101,31],[114,28,101,32,"min"],[114,31,101,35],[114,32,101,36,"data"],[114,36,101,40],[114,37,101,41,"length"],[114,43,101,47],[114,45,101,49],[114,47,101,51],[114,48,101,52],[115,8,102,12],[115,14,102,18,"u8a"],[115,17,102,21],[115,20,102,24],[115,24,102,28,"Uint8Array"],[115,34,102,38],[115,35,102,39,"length"],[115,41,102,45],[115,44,102,48],[115,45,102,49],[115,46,102,50],[116,8,103,12,"u8a"],[116,11,103,15],[116,12,103,16,"set"],[116,15,103,19],[116,16,103,20],[116,17,103,21,"length"],[116,23,103,27],[116,26,103,30],[116,27,103,31],[116,28,103,32],[116,30,103,34],[116,31,103,35],[116,32,103,36],[117,8,104,12,"u8a"],[117,11,104,15],[117,12,104,16,"set"],[117,15,104,19],[117,16,104,20,"data"],[117,20,104,24],[117,21,104,25,"subarray"],[117,29,104,33],[117,30,104,34],[117,31,104,35],[117,33,104,37,"length"],[117,39,104,43],[117,40,104,44],[117,42,104,46],[117,43,104,47],[117,44,104,48],[118,8,105,12],[118,15,105,19,"u8a"],[118,18,105,22],[119,6,106,8],[120,6,107,8],[121,6,108,8],[121,12,108,14,"u8a"],[121,15,108,17],[121,18,108,20],[121,22,108,24,"Uint8Array"],[121,32,108,34],[121,33,108,35],[121,35,108,37],[121,36,108,38],[122,6,109,8,"u8a"],[122,9,109,11],[122,10,109,12,"set"],[122,13,109,15],[122,14,109,16],[122,15,109,17],[122,19,109,21],[122,20,109,22,"index"],[122,25,109,27],[122,28,109,30],[122,30,109,32],[122,31,109,33],[122,33,109,35],[122,34,109,36],[122,35,109,37],[123,6,110,8,"u8a"],[123,9,110,11],[123,10,110,12,"set"],[123,13,110,15],[123,14,110,16],[123,18,110,20],[123,19,110,21,"value"],[123,24,110,26],[123,25,110,27,"toU8a"],[123,30,110,32],[123,31,110,33],[123,32,110,34],[123,34,110,36],[123,35,110,37],[123,36,110,38],[124,6,111,8],[124,13,111,15,"u8a"],[124,16,111,18],[125,4,112,4],[126,2,113,0],[127,0,113,1],[127,3]],"functionMap":{"names":["<global>","decodeDataU8a","decodeData","Data","constructor","get__asBlakeTwo256","get__asKeccak256","get__asRaw","get__asSha256","get__asShaThree256","get__isBlakeTwo256","get__isKeccak256","get__isNone","get__isRaw","get__isSha256","get__isShaThree256","get__encodedLength","toU8a"],"mappings":"AAA;ACG;CDe;AEE;CFS;OGM;ICC;KDc;IEC;KFE;IGC;KHE;IIC;KJE;IKC;KLE;IMC;KNE;IOC;KPE;IQC;KRE;ISC;KTE;IUC;KVE;IWC;KXE;IYC;KZE;IaI;KbE;IcI;KdkB;CHC"},"hasCjsExports":false},"type":"js/module"}]} |