mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 14:31:02 +00:00
1 line
17 KiB
Plaintext
1 line
17 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":118},"end":{"line":4,"column":40,"index":143}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../utils/index.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":19,"index":164},"end":{"line":5,"column":47,"index":192}}],"key":"j8ZYB2+3ieHcvBXwesUJUzLi2Jo=","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.Compact = void 0;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n const index_js_1 = require(_dependencyMap[1], \"../utils/index.js\");\n function decodeCompact(registry, Type, value) {\n if ((0, util_1.isU8a)(value)) {\n const [decodedLength, bn] = (value[0] & 0b11) < 0b11 ? (0, util_1.compactFromU8aLim)(value) : (0, util_1.compactFromU8a)(value);\n return [new Type(registry, bn), decodedLength];\n } else if (value instanceof Compact) {\n const raw = value.unwrap();\n return raw instanceof Type ? [raw, 0] : [new Type(registry, raw), 0];\n } else if (value instanceof Type) {\n return [value, 0];\n }\n return [new Type(registry, value), 0];\n }\n /**\n * @name Compact\n * @description\n * A compact length-encoding codec wrapper. It performs the same function as Length, however\n * differs in that it uses a variable number of bytes to do the actual encoding. This is mostly\n * used by other types to add length-prefixed encoding, or in the case of wrapped types, taking\n * a number and making the compact representation thereof\n */\n class Compact {\n #Type;\n #raw;\n constructor(registry, Type, value = 0, {\n definition,\n setDefinition = util_1.identity\n } = {}) {\n this.registry = registry;\n this.#Type = definition || setDefinition((0, index_js_1.typeToConstructor)(registry, Type));\n const [raw, decodedLength] = decodeCompact(registry, this.#Type, value);\n this.initialU8aLength = decodedLength;\n this.#raw = raw;\n }\n static with(Type) {\n let definition;\n // eslint-disable-next-line no-return-assign\n const setDefinition = d => definition = d;\n return class extends Compact {\n constructor(registry, value) {\n super(registry, Type, value, {\n definition,\n setDefinition\n });\n }\n };\n }\n /**\n * @description The length of the value when encoded as a Uint8Array\n */\n get encodedLength() {\n return this.toU8a().length;\n }\n /**\n * @description returns a hash of the contents\n */\n get hash() {\n return this.registry.hash(this.toU8a());\n }\n /**\n * @description Checks if the value is an empty value\n */\n get isEmpty() {\n return this.#raw.isEmpty;\n }\n /**\n * @description Returns the number of bits in the value\n */\n bitLength() {\n return this.#raw.bitLength();\n }\n /**\n * @description Compares the value of the input to see if there is a match\n */\n eq(other) {\n return this.#raw.eq(other instanceof Compact ? other.#raw : other);\n }\n /**\n * @description Returns a breakdown of the hex encoding for this Codec\n */\n inspect() {\n return {\n outer: [this.toU8a()]\n };\n }\n /**\n * @description Returns a BigInt representation of the number\n */\n toBigInt() {\n return this.#raw.toBigInt();\n }\n /**\n * @description Returns the BN representation of the number\n */\n toBn() {\n return this.#raw.toBn();\n }\n /**\n * @description Returns a hex string representation of the value. isLe returns a LE (number-only) representation\n */\n toHex(isLe) {\n return this.#raw.toHex(isLe);\n }\n /**\n * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information\n */\n toHuman(isExtended, disableAscii) {\n return this.#raw.toHuman(isExtended, disableAscii);\n }\n /**\n * @description Converts the Object to JSON, typically used for RPC transfers\n */\n toJSON() {\n return this.#raw.toJSON();\n }\n /**\n * @description Returns the number representation for the value\n */\n toNumber() {\n return this.#raw.toNumber();\n }\n /**\n * @description Converts the value in a best-fit primitive form\n */\n toPrimitive(disableAscii) {\n return this.#raw.toPrimitive(disableAscii);\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return `Compact<${this.registry.getClassName(this.#Type) || this.#raw.toRawType()}>`;\n }\n /**\n * @description Returns the string representation of the value\n */\n toString() {\n return this.#raw.toString();\n }\n /**\n * @description Encodes the value as a Uint8Array as per the SCALE specifications\n */\n toU8a(_isBare) {\n return (0, util_1.compactToU8a)(this.#raw.toBn());\n }\n /**\n * @description Returns the embedded [[UInt]] or [[Moment]] value\n */\n unwrap() {\n return this.#raw;\n }\n }\n exports.Compact = Compact;\n});","lineCount":162,"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,"Compact"],[7,17,3,15],[7,20,3,18],[7,25,3,23],[7,26,3,24],[8,2,4,0],[8,8,4,6,"util_1"],[8,14,4,12],[8,17,4,15,"require"],[8,24,4,22],[8,25,4,22,"_dependencyMap"],[8,39,4,22],[8,60,4,39],[8,61,4,40],[9,2,5,0],[9,8,5,6,"index_js_1"],[9,18,5,16],[9,21,5,19,"require"],[9,28,5,26],[9,29,5,26,"_dependencyMap"],[9,43,5,26],[9,67,5,46],[9,68,5,47],[10,2,6,0],[10,11,6,9,"decodeCompact"],[10,24,6,22,"decodeCompact"],[10,25,6,23,"registry"],[10,33,6,31],[10,35,6,33,"Type"],[10,39,6,37],[10,41,6,39,"value"],[10,46,6,44],[10,48,6,46],[11,4,7,4],[11,8,7,8],[11,9,7,9],[11,10,7,10],[11,12,7,12,"util_1"],[11,18,7,18],[11,19,7,19,"isU8a"],[11,24,7,24],[11,26,7,26,"value"],[11,31,7,31],[11,32,7,32],[11,34,7,34],[12,6,8,8],[12,12,8,14],[12,13,8,15,"decodedLength"],[12,26,8,28],[12,28,8,30,"bn"],[12,30,8,32],[12,31,8,33],[12,34,8,36],[12,35,8,37,"value"],[12,40,8,42],[12,41,8,43],[12,42,8,44],[12,43,8,45],[12,46,8,48],[12,50,8,52],[12,54,8,56],[12,58,8,60],[12,61,9,14],[12,62,9,15],[12,63,9,16],[12,65,9,18,"util_1"],[12,71,9,24],[12,72,9,25,"compactFromU8aLim"],[12,89,9,42],[12,91,9,44,"value"],[12,96,9,49],[12,97,9,50],[12,100,10,14],[12,101,10,15],[12,102,10,16],[12,104,10,18,"util_1"],[12,110,10,24],[12,111,10,25,"compactFromU8a"],[12,125,10,39],[12,127,10,41,"value"],[12,132,10,46],[12,133,10,47],[13,6,11,8],[13,13,11,15],[13,14,11,16],[13,18,11,20,"Type"],[13,22,11,24],[13,23,11,25,"registry"],[13,31,11,33],[13,33,11,35,"bn"],[13,35,11,37],[13,36,11,38],[13,38,11,40,"decodedLength"],[13,51,11,53],[13,52,11,54],[14,4,12,4],[14,5,12,5],[14,11,13,9],[14,15,13,13,"value"],[14,20,13,18],[14,32,13,30,"Compact"],[14,39,13,37],[14,41,13,39],[15,6,14,8],[15,12,14,14,"raw"],[15,15,14,17],[15,18,14,20,"value"],[15,23,14,25],[15,24,14,26,"unwrap"],[15,30,14,32],[15,31,14,33],[15,32,14,34],[16,6,15,8],[16,13,15,15,"raw"],[16,16,15,18],[16,28,15,30,"Type"],[16,32,15,34],[16,35,16,14],[16,36,16,15,"raw"],[16,39,16,18],[16,41,16,20],[16,42,16,21],[16,43,16,22],[16,46,17,14],[16,47,17,15],[16,51,17,19,"Type"],[16,55,17,23],[16,56,17,24,"registry"],[16,64,17,32],[16,66,17,34,"raw"],[16,69,17,37],[16,70,17,38],[16,72,17,40],[16,73,17,41],[16,74,17,42],[17,4,18,4],[17,5,18,5],[17,11,19,9],[17,15,19,13,"value"],[17,20,19,18],[17,32,19,30,"Type"],[17,36,19,34],[17,38,19,36],[18,6,20,8],[18,13,20,15],[18,14,20,16,"value"],[18,19,20,21],[18,21,20,23],[18,22,20,24],[18,23,20,25],[19,4,21,4],[20,4,22,4],[20,11,22,11],[20,12,22,12],[20,16,22,16,"Type"],[20,20,22,20],[20,21,22,21,"registry"],[20,29,22,29],[20,31,22,31,"value"],[20,36,22,36],[20,37,22,37],[20,39,22,39],[20,40,22,40],[20,41,22,41],[21,2,23,0],[22,2,24,0],[23,0,25,0],[24,0,26,0],[25,0,27,0],[26,0,28,0],[27,0,29,0],[28,0,30,0],[29,0,31,0],[30,2,32,0],[30,8,32,6,"Compact"],[30,15,32,13],[30,16,32,14],[31,4,37,4],[31,5,37,5,"Type"],[31,9,37,9],[32,4,38,4],[32,5,38,5,"raw"],[32,8,38,8],[33,4,39,4,"constructor"],[33,15,39,15,"constructor"],[33,16,39,16,"registry"],[33,24,39,24],[33,26,39,26,"Type"],[33,30,39,30],[33,32,39,32,"value"],[33,37,39,37],[33,40,39,40],[33,41,39,41],[33,43,39,43],[34,6,39,45,"definition"],[34,16,39,55],[35,6,39,57,"setDefinition"],[35,19,39,70],[35,22,39,73,"util_1"],[35,28,39,79],[35,29,39,80,"identity"],[36,4,39,89],[36,5,39,90],[36,8,39,93],[36,9,39,94],[36,10,39,95],[36,12,39,97],[37,6,40,8],[37,10,40,12],[37,11,40,13,"registry"],[37,19,40,21],[37,22,40,24,"registry"],[37,30,40,32],[38,6,41,8],[38,10,41,12],[38,11,41,13],[38,12,41,14,"Type"],[38,16,41,18],[38,19,41,21,"definition"],[38,29,41,31],[38,33,41,35,"setDefinition"],[38,46,41,48],[38,47,41,49],[38,48,41,50],[38,49,41,51],[38,51,41,53,"index_js_1"],[38,61,41,63],[38,62,41,64,"typeToConstructor"],[38,79,41,81],[38,81,41,83,"registry"],[38,89,41,91],[38,91,41,93,"Type"],[38,95,41,97],[38,96,41,98],[38,97,41,99],[39,6,42,8],[39,12,42,14],[39,13,42,15,"raw"],[39,16,42,18],[39,18,42,20,"decodedLength"],[39,31,42,33],[39,32,42,34],[39,35,42,37,"decodeCompact"],[39,48,42,50],[39,49,42,51,"registry"],[39,57,42,59],[39,59,42,61],[39,63,42,65],[39,64,42,66],[39,65,42,67,"Type"],[39,69,42,71],[39,71,42,73,"value"],[39,76,42,78],[39,77,42,79],[40,6,43,8],[40,10,43,12],[40,11,43,13,"initialU8aLength"],[40,27,43,29],[40,30,43,32,"decodedLength"],[40,43,43,45],[41,6,44,8],[41,10,44,12],[41,11,44,13],[41,12,44,14,"raw"],[41,15,44,17],[41,18,44,20,"raw"],[41,21,44,23],[42,4,45,4],[43,4,46,4],[43,11,46,11,"with"],[43,15,46,15,"with"],[43,16,46,16,"Type"],[43,20,46,20],[43,22,46,22],[44,6,47,8],[44,10,47,12,"definition"],[44,20,47,22],[45,6,48,8],[46,6,49,8],[46,12,49,14,"setDefinition"],[46,25,49,27],[46,28,49,31,"d"],[46,29,49,32],[46,33,49,38,"definition"],[46,43,49,48],[46,46,49,51,"d"],[46,47,49,53],[47,6,50,8],[47,13,50,15],[47,27,50,29,"Compact"],[47,34,50,36],[47,35,50,37],[48,8,51,12,"constructor"],[48,19,51,23,"constructor"],[48,20,51,24,"registry"],[48,28,51,32],[48,30,51,34,"value"],[48,35,51,39],[48,37,51,41],[49,10,52,16],[49,15,52,21],[49,16,52,22,"registry"],[49,24,52,30],[49,26,52,32,"Type"],[49,30,52,36],[49,32,52,38,"value"],[49,37,52,43],[49,39,52,45],[50,12,52,47,"definition"],[50,22,52,57],[51,12,52,59,"setDefinition"],[52,10,52,73],[52,11,52,74],[52,12,52,75],[53,8,53,12],[54,6,54,8],[54,7,54,9],[55,4,55,4],[56,4,56,4],[57,0,57,0],[58,0,58,0],[59,4,59,4],[59,8,59,8,"encodedLength"],[59,21,59,21,"encodedLength"],[59,22,59,21],[59,24,59,24],[60,6,60,8],[60,13,60,15],[60,17,60,19],[60,18,60,20,"toU8a"],[60,23,60,25],[60,24,60,26],[60,25,60,27],[60,26,60,28,"length"],[60,32,60,34],[61,4,61,4],[62,4,62,4],[63,0,63,0],[64,0,64,0],[65,4,65,4],[65,8,65,8,"hash"],[65,12,65,12,"hash"],[65,13,65,12],[65,15,65,15],[66,6,66,8],[66,13,66,15],[66,17,66,19],[66,18,66,20,"registry"],[66,26,66,28],[66,27,66,29,"hash"],[66,31,66,33],[66,32,66,34],[66,36,66,38],[66,37,66,39,"toU8a"],[66,42,66,44],[66,43,66,45],[66,44,66,46],[66,45,66,47],[67,4,67,4],[68,4,68,4],[69,0,69,0],[70,0,70,0],[71,4,71,4],[71,8,71,8,"isEmpty"],[71,15,71,15,"isEmpty"],[71,16,71,15],[71,18,71,18],[72,6,72,8],[72,13,72,15],[72,17,72,19],[72,18,72,20],[72,19,72,21,"raw"],[72,22,72,24],[72,23,72,25,"isEmpty"],[72,30,72,32],[73,4,73,4],[74,4,74,4],[75,0,75,0],[76,0,76,0],[77,4,77,4,"bitLength"],[77,13,77,13,"bitLength"],[77,14,77,13],[77,16,77,16],[78,6,78,8],[78,13,78,15],[78,17,78,19],[78,18,78,20],[78,19,78,21,"raw"],[78,22,78,24],[78,23,78,25,"bitLength"],[78,32,78,34],[78,33,78,35],[78,34,78,36],[79,4,79,4],[80,4,80,4],[81,0,81,0],[82,0,82,0],[83,4,83,4,"eq"],[83,6,83,6,"eq"],[83,7,83,7,"other"],[83,12,83,12],[83,14,83,14],[84,6,84,8],[84,13,84,15],[84,17,84,19],[84,18,84,20],[84,19,84,21,"raw"],[84,22,84,24],[84,23,84,25,"eq"],[84,25,84,27],[84,26,84,28,"other"],[84,31,84,33],[84,43,84,45,"Compact"],[84,50,84,52],[84,53,85,14,"other"],[84,58,85,19],[84,59,85,20],[84,60,85,21,"raw"],[84,63,85,24],[84,66,86,14,"other"],[84,71,86,19],[84,72,86,20],[85,4,87,4],[86,4,88,4],[87,0,89,0],[88,0,90,0],[89,4,91,4,"inspect"],[89,11,91,11,"inspect"],[89,12,91,11],[89,14,91,14],[90,6,92,8],[90,13,92,15],[91,8,93,12,"outer"],[91,13,93,17],[91,15,93,19],[91,16,93,20],[91,20,93,24],[91,21,93,25,"toU8a"],[91,26,93,30],[91,27,93,31],[91,28,93,32],[92,6,94,8],[92,7,94,9],[93,4,95,4],[94,4,96,4],[95,0,97,0],[96,0,98,0],[97,4,99,4,"toBigInt"],[97,12,99,12,"toBigInt"],[97,13,99,12],[97,15,99,15],[98,6,100,8],[98,13,100,15],[98,17,100,19],[98,18,100,20],[98,19,100,21,"raw"],[98,22,100,24],[98,23,100,25,"toBigInt"],[98,31,100,33],[98,32,100,34],[98,33,100,35],[99,4,101,4],[100,4,102,4],[101,0,103,0],[102,0,104,0],[103,4,105,4,"toBn"],[103,8,105,8,"toBn"],[103,9,105,8],[103,11,105,11],[104,6,106,8],[104,13,106,15],[104,17,106,19],[104,18,106,20],[104,19,106,21,"raw"],[104,22,106,24],[104,23,106,25,"toBn"],[104,27,106,29],[104,28,106,30],[104,29,106,31],[105,4,107,4],[106,4,108,4],[107,0,109,0],[108,0,110,0],[109,4,111,4,"toHex"],[109,9,111,9,"toHex"],[109,10,111,10,"isLe"],[109,14,111,14],[109,16,111,16],[110,6,112,8],[110,13,112,15],[110,17,112,19],[110,18,112,20],[110,19,112,21,"raw"],[110,22,112,24],[110,23,112,25,"toHex"],[110,28,112,30],[110,29,112,31,"isLe"],[110,33,112,35],[110,34,112,36],[111,4,113,4],[112,4,114,4],[113,0,115,0],[114,0,116,0],[115,4,117,4,"toHuman"],[115,11,117,11,"toHuman"],[115,12,117,12,"isExtended"],[115,22,117,22],[115,24,117,24,"disableAscii"],[115,36,117,36],[115,38,117,38],[116,6,118,8],[116,13,118,15],[116,17,118,19],[116,18,118,20],[116,19,118,21,"raw"],[116,22,118,24],[116,23,118,25,"toHuman"],[116,30,118,32],[116,31,118,33,"isExtended"],[116,41,118,43],[116,43,118,45,"disableAscii"],[116,55,118,57],[116,56,118,58],[117,4,119,4],[118,4,120,4],[119,0,121,0],[120,0,122,0],[121,4,123,4,"toJSON"],[121,10,123,10,"toJSON"],[121,11,123,10],[121,13,123,13],[122,6,124,8],[122,13,124,15],[122,17,124,19],[122,18,124,20],[122,19,124,21,"raw"],[122,22,124,24],[122,23,124,25,"toJSON"],[122,29,124,31],[122,30,124,32],[122,31,124,33],[123,4,125,4],[124,4,126,4],[125,0,127,0],[126,0,128,0],[127,4,129,4,"toNumber"],[127,12,129,12,"toNumber"],[127,13,129,12],[127,15,129,15],[128,6,130,8],[128,13,130,15],[128,17,130,19],[128,18,130,20],[128,19,130,21,"raw"],[128,22,130,24],[128,23,130,25,"toNumber"],[128,31,130,33],[128,32,130,34],[128,33,130,35],[129,4,131,4],[130,4,132,4],[131,0,133,0],[132,0,134,0],[133,4,135,4,"toPrimitive"],[133,15,135,15,"toPrimitive"],[133,16,135,16,"disableAscii"],[133,28,135,28],[133,30,135,30],[134,6,136,8],[134,13,136,15],[134,17,136,19],[134,18,136,20],[134,19,136,21,"raw"],[134,22,136,24],[134,23,136,25,"toPrimitive"],[134,34,136,36],[134,35,136,37,"disableAscii"],[134,47,136,49],[134,48,136,50],[135,4,137,4],[136,4,138,4],[137,0,139,0],[138,0,140,0],[139,4,141,4,"toRawType"],[139,13,141,13,"toRawType"],[139,14,141,13],[139,16,141,16],[140,6,142,8],[140,13,142,15],[140,24,142,26],[140,28,142,30],[140,29,142,31,"registry"],[140,37,142,39],[140,38,142,40,"getClassName"],[140,50,142,52],[140,51,142,53],[140,55,142,57],[140,56,142,58],[140,57,142,59,"Type"],[140,61,142,63],[140,62,142,64],[140,66,142,68],[140,70,142,72],[140,71,142,73],[140,72,142,74,"raw"],[140,75,142,77],[140,76,142,78,"toRawType"],[140,85,142,87],[140,86,142,88],[140,87,142,89],[140,90,142,92],[141,4,143,4],[142,4,144,4],[143,0,145,0],[144,0,146,0],[145,4,147,4,"toString"],[145,12,147,12,"toString"],[145,13,147,12],[145,15,147,15],[146,6,148,8],[146,13,148,15],[146,17,148,19],[146,18,148,20],[146,19,148,21,"raw"],[146,22,148,24],[146,23,148,25,"toString"],[146,31,148,33],[146,32,148,34],[146,33,148,35],[147,4,149,4],[148,4,150,4],[149,0,151,0],[150,0,152,0],[151,4,153,4,"toU8a"],[151,9,153,9,"toU8a"],[151,10,153,10,"_isBare"],[151,17,153,17],[151,19,153,19],[152,6,154,8],[152,13,154,15],[152,14,154,16],[152,15,154,17],[152,17,154,19,"util_1"],[152,23,154,25],[152,24,154,26,"compactToU8a"],[152,36,154,38],[152,38,154,40],[152,42,154,44],[152,43,154,45],[152,44,154,46,"raw"],[152,47,154,49],[152,48,154,50,"toBn"],[152,52,154,54],[152,53,154,55],[152,54,154,56],[152,55,154,57],[153,4,155,4],[154,4,156,4],[155,0,157,0],[156,0,158,0],[157,4,159,4,"unwrap"],[157,10,159,10,"unwrap"],[157,11,159,10],[157,13,159,13],[158,6,160,8],[158,13,160,15],[158,17,160,19],[158,18,160,20],[158,19,160,21,"raw"],[158,22,160,24],[159,4,161,4],[160,2,162,0],[161,2,163,0,"exports"],[161,9,163,7],[161,10,163,8,"Compact"],[161,17,163,15],[161,20,163,18,"Compact"],[161,27,163,25],[162,0,163,26],[162,3]],"functionMap":{"names":["<global>","decodeCompact","Compact","constructor","_with","setDefinition","<anonymous>","get__encodedLength","get__hash","get__isEmpty","bitLength","eq","inspect","toBigInt","toBn","toHex","toHuman","toJSON","toNumber","toPrimitive","toRawType","toString","toU8a","unwrap"],"mappings":"AAA;ACK;CDiB;AES;ICO;KDM;IEC;8BCG,uBD;eEC;YHC;aGE;SFC;KFC;IKI;KLE;IMI;KNE;IOI;KPE;IQI;KRE;ISI;KTI;IUI;KVI;IWI;KXE;IYI;KZE;IaI;KbE;IcI;KdE;IeI;KfE;IgBI;KhBE;IiBI;KjBE;IkBI;KlBE;ImBI;KnBE;IoBI;KpBE;IqBI;KrBE;CFC"},"hasCjsExports":true},"type":"js/module"}]} |