mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 12:21:01 +00:00
1 line
15 KiB
Plaintext
1 line
15 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/types-codec","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":22,"index":122},"end":{"line":4,"column":54,"index":154}}],"key":"fW1yxuTjZe66ggmM4ihNuGjKSV0=","exportNames":["*"],"imports":1}},{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":15,"index":171},"end":{"line":5,"column":40,"index":196}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","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.Data = void 0;\n const types_codec_1 = require(_dependencyMap[0], \"@polkadot/types-codec\");\n const util_1 = 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, util_1.isU8a)(value) || (0, util_1.isString)(value)) {\n return decodeDataU8a(registry, (0, util_1.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 types_codec_1.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 exports.Data = Data;\n});","lineCount":123,"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,"Data"],[7,14,3,12],[7,17,3,15],[7,22,3,20],[7,23,3,21],[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],[11,2,7,0],[11,11,7,9,"decodeDataU8a"],[11,24,7,22,"decodeDataU8a"],[11,25,7,23,"registry"],[11,33,7,31],[11,35,7,33,"value"],[11,40,7,38],[11,42,7,40],[12,4,8,4],[12,10,8,10,"indicator"],[12,19,8,19],[12,22,8,22,"value"],[12,27,8,27],[12,28,8,28],[12,29,8,29],[12,30,8,30],[13,4,9,4],[13,8,9,8],[13,9,9,9,"indicator"],[13,18,9,18],[13,20,9,20],[14,6,10,8],[14,13,10,15],[14,14,10,16,"undefined"],[14,23,10,25],[14,25,10,27,"undefined"],[14,34,10,36],[14,35,10,37],[15,4,11,4],[15,5,11,5],[15,11,12,9],[15,15,12,13,"indicator"],[15,24,12,22],[15,28,12,26],[15,29,12,27],[15,33,12,31,"indicator"],[15,42,12,40],[15,46,12,44],[15,48,12,46],[15,50,12,48],[16,6,13,8],[16,12,13,14,"length"],[16,18,13,20],[16,21,13,23,"indicator"],[16,30,13,32],[16,33,13,35],[16,34,13,36],[17,6,14,8],[17,12,14,14,"data"],[17,16,14,18],[17,19,14,21,"value"],[17,24,14,26],[17,25,14,27,"subarray"],[17,33,14,35],[17,34,14,36],[17,35,14,37],[17,37,14,39,"length"],[17,43,14,45],[17,46,14,48],[17,47,14,49],[17,48,14,50],[18,6,15,8],[19,6,16,8],[19,13,16,15],[19,14,16,16,"registry"],[19,22,16,24],[19,23,16,25,"createTypeUnsafe"],[19,39,16,41],[19,40,16,42],[19,45,16,47],[19,47,16,49],[19,48,16,50,"data"],[19,52,16,54],[19,53,16,55],[19,54,16,56],[19,56,16,58],[19,57,16,59],[19,58,16,60],[20,4,17,4],[20,5,17,5],[20,11,18,9],[20,15,18,13,"indicator"],[20,24,18,22],[20,28,18,26],[20,30,18,28],[20,34,18,32,"indicator"],[20,43,18,41],[20,47,18,45],[20,49,18,47],[20,51,18,49],[21,6,19,8],[21,13,19,15],[21,14,19,16,"value"],[21,19,19,21],[21,20,19,22,"subarray"],[21,28,19,30],[21,29,19,31],[21,30,19,32],[21,32,19,34],[21,34,19,36],[21,37,19,39],[21,38,19,40],[21,39,19,41],[21,41,19,43,"indicator"],[21,50,19,52],[21,53,19,55],[21,55,19,57],[21,56,19,58],[21,57,19,59],[21,58,19,60],[22,4,20,4],[23,4,21,4],[23,10,21,10],[23,14,21,14,"Error"],[23,19,21,19],[23,20,21,20],[23,69,21,69,"indicator"],[23,78,21,78],[23,80,21,80],[23,81,21,81],[24,2,22,0],[25,2,23,0],[26,2,24,0],[26,11,24,9,"decodeData"],[26,21,24,19,"decodeData"],[26,22,24,20,"registry"],[26,30,24,28],[26,32,24,30,"value"],[26,37,24,35],[26,39,24,37],[27,4,25,4],[27,8,25,8],[27,9,25,9],[27,10,25,10],[27,12,25,12,"util_1"],[27,18,25,18],[27,19,25,19,"isU8a"],[27,24,25,24],[27,26,25,26,"value"],[27,31,25,31],[27,32,25,32],[27,36,25,36],[27,37,25,37],[27,38,25,38],[27,40,25,40,"util_1"],[27,46,25,46],[27,47,25,47,"isString"],[27,55,25,55],[27,57,25,57,"value"],[27,62,25,62],[27,63,25,63],[27,65,25,65],[28,6,26,8],[28,13,26,15,"decodeDataU8a"],[28,26,26,28],[28,27,26,29,"registry"],[28,35,26,37],[28,37,26,39],[28,38,26,40],[28,39,26,41],[28,41,26,43,"util_1"],[28,47,26,49],[28,48,26,50,"u8aToU8a"],[28,56,26,58],[28,58,26,60,"value"],[28,63,26,65],[28,64,26,66],[28,65,26,67],[29,4,27,4],[29,5,27,5],[29,11,28,9],[29,15,28,13],[29,16,28,14,"value"],[29,21,28,19],[29,23,28,21],[30,6,29,8],[30,13,29,15],[30,14,29,16,"undefined"],[30,23,29,25],[30,25,29,27,"undefined"],[30,34,29,36],[30,35,29,37],[31,4,30,4],[32,4,31,4],[33,4,32,4],[33,11,32,11],[33,12,32,12,"value"],[33,17,32,17],[33,19,32,19,"undefined"],[33,28,32,28],[33,29,32,29],[34,2,33,0],[35,2,34,0],[36,0,35,0],[37,0,36,0],[38,0,37,0],[39,0,38,0],[40,2,39,0],[40,8,39,6,"Data"],[40,12,39,10],[40,21,39,19,"types_codec_1"],[40,34,39,32],[40,35,39,33,"Enum"],[40,39,39,37],[40,40,39,38],[41,4,40,4,"constructor"],[41,15,40,15,"constructor"],[41,16,40,16,"registry"],[41,24,40,24],[41,26,40,26,"value"],[41,31,40,31],[41,33,40,33],[42,6,41,8],[42,11,41,13],[42,12,41,14,"registry"],[42,20,41,22],[42,22,41,24],[43,8,42,12,"None"],[43,12,42,16],[43,14,42,18],[43,20,42,24],[44,8,42,26],[45,8,43,12,"Raw"],[45,11,43,15],[45,13,43,17],[45,20,43,24],[46,8,43,26],[47,8,44,12],[48,8,45,12,"BlakeTwo256"],[48,19,45,23],[48,21,45,25],[48,27,45,31],[49,8,45,33],[50,8,46,12,"Sha256"],[50,14,46,18],[50,16,46,20],[50,22,46,26],[51,8,46,28],[52,8,47,12],[53,8,48,12,"Keccak256"],[53,17,48,21],[53,19,48,23],[53,25,48,29],[54,8,48,31],[55,8,49,12,"ShaThree256"],[55,19,49,23],[55,21,49,25],[55,27,49,31],[55,28,49,32],[56,6,50,8],[56,7,50,9],[56,9,50,11],[56,12,50,14,"decodeData"],[56,22,50,24],[56,23,50,25,"registry"],[56,31,50,33],[56,33,50,35,"value"],[56,38,50,40],[56,39,50,41],[56,40,50,42],[57,6,51,8],[57,10,51,12],[57,14,51,16],[57,15,51,17,"isRaw"],[57,20,51,22],[57,24,51,26],[57,28,51,30],[57,29,51,31,"asRaw"],[57,34,51,36],[57,35,51,37,"length"],[57,41,51,43],[57,44,51,46],[57,46,51,48],[57,48,51,50],[58,8,52,12],[58,14,52,18],[58,18,52,22,"Error"],[58,23,52,27],[58,24,52,28],[58,85,52,89],[58,86,52,90],[59,6,53,8],[60,4,54,4],[61,4,55,4],[61,8,55,8,"asBlakeTwo256"],[61,21,55,21,"asBlakeTwo256"],[61,22,55,21],[61,24,55,24],[62,6,56,8],[62,13,56,15],[62,17,56,19],[62,18,56,20,"value"],[62,23,56,25],[63,4,57,4],[64,4,58,4],[64,8,58,8,"asKeccak256"],[64,19,58,19,"asKeccak256"],[64,20,58,19],[64,22,58,22],[65,6,59,8],[65,13,59,15],[65,17,59,19],[65,18,59,20,"value"],[65,23,59,25],[66,4,60,4],[67,4,61,4],[67,8,61,8,"asRaw"],[67,13,61,13,"asRaw"],[67,14,61,13],[67,16,61,16],[68,6,62,8],[68,13,62,15],[68,17,62,19],[68,18,62,20,"value"],[68,23,62,25],[69,4,63,4],[70,4,64,4],[70,8,64,8,"asSha256"],[70,16,64,16,"asSha256"],[70,17,64,16],[70,19,64,19],[71,6,65,8],[71,13,65,15],[71,17,65,19],[71,18,65,20,"value"],[71,23,65,25],[72,4,66,4],[73,4,67,4],[73,8,67,8,"asShaThree256"],[73,21,67,21,"asShaThree256"],[73,22,67,21],[73,24,67,24],[74,6,68,8],[74,13,68,15],[74,17,68,19],[74,18,68,20,"value"],[74,23,68,25],[75,4,69,4],[76,4,70,4],[76,8,70,8,"isBlakeTwo256"],[76,21,70,21,"isBlakeTwo256"],[76,22,70,21],[76,24,70,24],[77,6,71,8],[77,13,71,15],[77,17,71,19],[77,18,71,20,"index"],[77,23,71,25],[77,28,71,30],[77,29,71,31],[78,4,72,4],[79,4,73,4],[79,8,73,8,"isKeccak256"],[79,19,73,19,"isKeccak256"],[79,20,73,19],[79,22,73,22],[80,6,74,8],[80,13,74,15],[80,17,74,19],[80,18,74,20,"index"],[80,23,74,25],[80,28,74,30],[80,29,74,31],[81,4,75,4],[82,4,76,4],[82,8,76,8,"isNone"],[82,14,76,14,"isNone"],[82,15,76,14],[82,17,76,17],[83,6,77,8],[83,13,77,15],[83,17,77,19],[83,18,77,20,"index"],[83,23,77,25],[83,28,77,30],[83,29,77,31],[84,4,78,4],[85,4,79,4],[85,8,79,8,"isRaw"],[85,13,79,13,"isRaw"],[85,14,79,13],[85,16,79,16],[86,6,80,8],[86,13,80,15],[86,17,80,19],[86,18,80,20,"index"],[86,23,80,25],[86,28,80,30],[86,29,80,31],[87,4,81,4],[88,4,82,4],[88,8,82,8,"isSha256"],[88,16,82,16,"isSha256"],[88,17,82,16],[88,19,82,19],[89,6,83,8],[89,13,83,15],[89,17,83,19],[89,18,83,20,"index"],[89,23,83,25],[89,28,83,30],[89,29,83,31],[90,4,84,4],[91,4,85,4],[91,8,85,8,"isShaThree256"],[91,21,85,21,"isShaThree256"],[91,22,85,21],[91,24,85,24],[92,6,86,8],[92,13,86,15],[92,17,86,19],[92,18,86,20,"index"],[92,23,86,25],[92,28,86,30],[92,29,86,31],[93,4,87,4],[94,4,88,4],[95,0,89,0],[96,0,90,0],[97,4,91,4],[97,8,91,8,"encodedLength"],[97,21,91,21,"encodedLength"],[97,22,91,21],[97,24,91,24],[98,6,92,8],[98,13,92,15],[98,17,92,19],[98,18,92,20,"toU8a"],[98,23,92,25],[98,24,92,26],[98,25,92,27],[98,26,92,28,"length"],[98,32,92,34],[99,4,93,4],[100,4,94,4],[101,0,95,0],[102,0,96,0],[103,4,97,4,"toU8a"],[103,9,97,9,"toU8a"],[103,10,97,9],[103,12,97,12],[104,6,98,8],[104,10,98,12],[104,14,98,16],[104,15,98,17,"index"],[104,20,98,22],[104,25,98,27],[104,26,98,28],[104,28,98,30],[105,8,99,12],[105,15,99,19],[105,19,99,23,"Uint8Array"],[105,29,99,33],[105,30,99,34],[105,31,99,35],[105,32,99,36],[106,6,100,8],[106,7,100,9],[106,13,101,13],[106,17,101,17],[106,21,101,21],[106,22,101,22,"index"],[106,27,101,27],[106,32,101,32],[106,33,101,33],[106,35,101,35],[107,8,102,12],[108,8,103,12],[108,14,103,18,"data"],[108,18,103,22],[108,21,103,25],[108,25,103,29],[108,26,103,30,"value"],[108,31,103,35],[108,32,103,36,"toU8a"],[108,37,103,41],[108,38,103,42],[108,42,103,46],[108,43,103,47],[109,8,104,12],[109,14,104,18,"length"],[109,20,104,24],[109,23,104,27,"Math"],[109,27,104,31],[109,28,104,32,"min"],[109,31,104,35],[109,32,104,36,"data"],[109,36,104,40],[109,37,104,41,"length"],[109,43,104,47],[109,45,104,49],[109,47,104,51],[109,48,104,52],[110,8,105,12],[110,14,105,18,"u8a"],[110,17,105,21],[110,20,105,24],[110,24,105,28,"Uint8Array"],[110,34,105,38],[110,35,105,39,"length"],[110,41,105,45],[110,44,105,48],[110,45,105,49],[110,46,105,50],[111,8,106,12,"u8a"],[111,11,106,15],[111,12,106,16,"set"],[111,15,106,19],[111,16,106,20],[111,17,106,21,"length"],[111,23,106,27],[111,26,106,30],[111,27,106,31],[111,28,106,32],[111,30,106,34],[111,31,106,35],[111,32,106,36],[112,8,107,12,"u8a"],[112,11,107,15],[112,12,107,16,"set"],[112,15,107,19],[112,16,107,20,"data"],[112,20,107,24],[112,21,107,25,"subarray"],[112,29,107,33],[112,30,107,34],[112,31,107,35],[112,33,107,37,"length"],[112,39,107,43],[112,40,107,44],[112,42,107,46],[112,43,107,47],[112,44,107,48],[113,8,108,12],[113,15,108,19,"u8a"],[113,18,108,22],[114,6,109,8],[115,6,110,8],[116,6,111,8],[116,12,111,14,"u8a"],[116,15,111,17],[116,18,111,20],[116,22,111,24,"Uint8Array"],[116,32,111,34],[116,33,111,35],[116,35,111,37],[116,36,111,38],[117,6,112,8,"u8a"],[117,9,112,11],[117,10,112,12,"set"],[117,13,112,15],[117,14,112,16],[117,15,112,17],[117,19,112,21],[117,20,112,22,"index"],[117,25,112,27],[117,28,112,30],[117,30,112,32],[117,31,112,33],[117,33,112,35],[117,34,112,36],[117,35,112,37],[118,6,113,8,"u8a"],[118,9,113,11],[118,10,113,12,"set"],[118,13,113,15],[118,14,113,16],[118,18,113,20],[118,19,113,21,"value"],[118,24,113,26],[118,25,113,27,"toU8a"],[118,30,113,32],[118,31,113,33],[118,32,113,34],[118,34,113,36],[118,35,113,37],[118,36,113,38],[119,6,114,8],[119,13,114,15,"u8a"],[119,16,114,18],[120,4,115,4],[121,2,116,0],[122,2,117,0,"exports"],[122,9,117,7],[122,10,117,8,"Data"],[122,14,117,12],[122,17,117,15,"Data"],[122,21,117,19],[123,0,117,20],[123,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;ACM;CDe;AEE;CFS;AGM;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":true},"type":"js/module"}]} |