mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-29 22:21:05 +00:00
1 line
9.3 KiB
Plaintext
1 line
9.3 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":115},"end":{"line":4,"column":40,"index":140}}],"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.bool = void 0;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n /**\n * @name bool\n * @description\n * Representation for a boolean value in the system. It extends the base JS `Boolean` class\n * @noInheritDoc\n */\n class bool extends Boolean {\n initialU8aLength = 1;\n constructor(registry, value = false) {\n super((0, util_1.isU8a)(value) ? value[0] === 1 : value instanceof Boolean ? value.valueOf() : !!value);\n this.registry = registry;\n }\n /**\n * @description The length of the value when encoded as a Uint8Array\n */\n get encodedLength() {\n return 1 | 0;\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 (true when it wraps false/default)\n */\n get isEmpty() {\n return this.isFalse;\n }\n /**\n * @description Checks if the value is an empty value (always false)\n */\n get isFalse() {\n return !this.isTrue;\n }\n /**\n * @description Checks if the value is an empty value (always false)\n */\n get isTrue() {\n return this.valueOf();\n }\n /**\n * @description Compares the value of the input to see if there is a match\n */\n eq(other) {\n return this.valueOf() === (other instanceof Boolean ? other.valueOf() : 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 hex string representation of the value\n */\n toHex() {\n return (0, util_1.u8aToHex)(this.toU8a());\n }\n /**\n * @description Converts the Object to to a human-friendly JSON, with additional fields, expansion and formatting of information\n */\n toHuman() {\n return this.toJSON();\n }\n /**\n * @description Converts the Object to JSON, typically used for RPC transfers\n */\n toJSON() {\n return this.valueOf();\n }\n /**\n * @description Converts the value in a best-fit primitive form\n */\n toPrimitive() {\n return this.toJSON();\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return 'bool';\n }\n /**\n * @description Returns the string representation of the value\n */\n toString() {\n return this.toJSON().toString();\n }\n /**\n * @description Encodes the value as a Uint8Array as per the SCALE specifications\n */\n toU8a(_isBare) {\n return new Uint8Array([this.valueOf() ? 1 : 0]);\n }\n }\n exports.bool = bool;\n});","lineCount":109,"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,"bool"],[7,14,3,12],[7,17,3,15],[7,22,3,20],[7,23,3,21],[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],[10,0,6,0],[11,0,7,0],[12,0,8,0],[13,0,9,0],[14,0,10,0],[15,2,11,0],[15,8,11,6,"bool"],[15,12,11,10],[15,21,11,19,"Boolean"],[15,28,11,26],[15,29,11,27],[16,4,14,4,"initialU8aLength"],[16,20,14,20],[16,23,14,23],[16,24,14,24],[17,4,16,4,"constructor"],[17,15,16,15,"constructor"],[17,16,16,16,"registry"],[17,24,16,24],[17,26,16,26,"value"],[17,31,16,31],[17,34,16,34],[17,39,16,39],[17,41,16,41],[18,6,17,8],[18,11,17,13],[18,12,17,14],[18,13,17,15],[18,14,17,16],[18,16,17,18,"util_1"],[18,22,17,24],[18,23,17,25,"isU8a"],[18,28,17,30],[18,30,17,32,"value"],[18,35,17,37],[18,36,17,38],[18,39,18,14,"value"],[18,44,18,19],[18,45,18,20],[18,46,18,21],[18,47,18,22],[18,52,18,27],[18,53,18,28],[18,56,19,14,"value"],[18,61,19,19],[18,73,19,31,"Boolean"],[18,80,19,38],[18,83,20,18,"value"],[18,88,20,23],[18,89,20,24,"valueOf"],[18,96,20,31],[18,97,20,32],[18,98,20,33],[18,101,21,18],[18,102,21,19],[18,103,21,20,"value"],[18,108,21,25],[18,109,21,26],[19,6,22,8],[19,10,22,12],[19,11,22,13,"registry"],[19,19,22,21],[19,22,22,24,"registry"],[19,30,22,32],[20,4,23,4],[21,4,24,4],[22,0,25,0],[23,0,26,0],[24,4,27,4],[24,8,27,8,"encodedLength"],[24,21,27,21,"encodedLength"],[24,22,27,21],[24,24,27,24],[25,6,28,8],[25,13,28,15],[25,14,28,16],[25,17,28,19],[25,18,28,20],[26,4,29,4],[27,4,30,4],[28,0,31,0],[29,0,32,0],[30,4,33,4],[30,8,33,8,"hash"],[30,12,33,12,"hash"],[30,13,33,12],[30,15,33,15],[31,6,34,8],[31,13,34,15],[31,17,34,19],[31,18,34,20,"registry"],[31,26,34,28],[31,27,34,29,"hash"],[31,31,34,33],[31,32,34,34],[31,36,34,38],[31,37,34,39,"toU8a"],[31,42,34,44],[31,43,34,45],[31,44,34,46],[31,45,34,47],[32,4,35,4],[33,4,36,4],[34,0,37,0],[35,0,38,0],[36,4,39,4],[36,8,39,8,"isEmpty"],[36,15,39,15,"isEmpty"],[36,16,39,15],[36,18,39,18],[37,6,40,8],[37,13,40,15],[37,17,40,19],[37,18,40,20,"isFalse"],[37,25,40,27],[38,4,41,4],[39,4,42,4],[40,0,43,0],[41,0,44,0],[42,4,45,4],[42,8,45,8,"isFalse"],[42,15,45,15,"isFalse"],[42,16,45,15],[42,18,45,18],[43,6,46,8],[43,13,46,15],[43,14,46,16],[43,18,46,20],[43,19,46,21,"isTrue"],[43,25,46,27],[44,4,47,4],[45,4,48,4],[46,0,49,0],[47,0,50,0],[48,4,51,4],[48,8,51,8,"isTrue"],[48,14,51,14,"isTrue"],[48,15,51,14],[48,17,51,17],[49,6,52,8],[49,13,52,15],[49,17,52,19],[49,18,52,20,"valueOf"],[49,25,52,27],[49,26,52,28],[49,27,52,29],[50,4,53,4],[51,4,54,4],[52,0,55,0],[53,0,56,0],[54,4,57,4,"eq"],[54,6,57,6,"eq"],[54,7,57,7,"other"],[54,12,57,12],[54,14,57,14],[55,6,58,8],[55,13,58,15],[55,17,58,19],[55,18,58,20,"valueOf"],[55,25,58,27],[55,26,58,28],[55,27,58,29],[55,33,58,35,"other"],[55,38,58,40],[55,50,58,52,"Boolean"],[55,57,58,59],[55,60,59,14,"other"],[55,65,59,19],[55,66,59,20,"valueOf"],[55,73,59,27],[55,74,59,28],[55,75,59,29],[55,78,60,14,"other"],[55,83,60,19],[55,84,60,20],[56,4,61,4],[57,4,62,4],[58,0,63,0],[59,0,64,0],[60,4,65,4,"inspect"],[60,11,65,11,"inspect"],[60,12,65,11],[60,14,65,14],[61,6,66,8],[61,13,66,15],[62,8,67,12,"outer"],[62,13,67,17],[62,15,67,19],[62,16,67,20],[62,20,67,24],[62,21,67,25,"toU8a"],[62,26,67,30],[62,27,67,31],[62,28,67,32],[63,6,68,8],[63,7,68,9],[64,4,69,4],[65,4,70,4],[66,0,71,0],[67,0,72,0],[68,4,73,4,"toHex"],[68,9,73,9,"toHex"],[68,10,73,9],[68,12,73,12],[69,6,74,8],[69,13,74,15],[69,14,74,16],[69,15,74,17],[69,17,74,19,"util_1"],[69,23,74,25],[69,24,74,26,"u8aToHex"],[69,32,74,34],[69,34,74,36],[69,38,74,40],[69,39,74,41,"toU8a"],[69,44,74,46],[69,45,74,47],[69,46,74,48],[69,47,74,49],[70,4,75,4],[71,4,76,4],[72,0,77,0],[73,0,78,0],[74,4,79,4,"toHuman"],[74,11,79,11,"toHuman"],[74,12,79,11],[74,14,79,14],[75,6,80,8],[75,13,80,15],[75,17,80,19],[75,18,80,20,"toJSON"],[75,24,80,26],[75,25,80,27],[75,26,80,28],[76,4,81,4],[77,4,82,4],[78,0,83,0],[79,0,84,0],[80,4,85,4,"toJSON"],[80,10,85,10,"toJSON"],[80,11,85,10],[80,13,85,13],[81,6,86,8],[81,13,86,15],[81,17,86,19],[81,18,86,20,"valueOf"],[81,25,86,27],[81,26,86,28],[81,27,86,29],[82,4,87,4],[83,4,88,4],[84,0,89,0],[85,0,90,0],[86,4,91,4,"toPrimitive"],[86,15,91,15,"toPrimitive"],[86,16,91,15],[86,18,91,18],[87,6,92,8],[87,13,92,15],[87,17,92,19],[87,18,92,20,"toJSON"],[87,24,92,26],[87,25,92,27],[87,26,92,28],[88,4,93,4],[89,4,94,4],[90,0,95,0],[91,0,96,0],[92,4,97,4,"toRawType"],[92,13,97,13,"toRawType"],[92,14,97,13],[92,16,97,16],[93,6,98,8],[93,13,98,15],[93,19,98,21],[94,4,99,4],[95,4,100,4],[96,0,101,0],[97,0,102,0],[98,4,103,4,"toString"],[98,12,103,12,"toString"],[98,13,103,12],[98,15,103,15],[99,6,104,8],[99,13,104,15],[99,17,104,19],[99,18,104,20,"toJSON"],[99,24,104,26],[99,25,104,27],[99,26,104,28],[99,27,104,29,"toString"],[99,35,104,37],[99,36,104,38],[99,37,104,39],[100,4,105,4],[101,4,106,4],[102,0,107,0],[103,0,108,0],[104,4,109,4,"toU8a"],[104,9,109,9,"toU8a"],[104,10,109,10,"_isBare"],[104,17,109,17],[104,19,109,19],[105,6,110,8],[105,13,110,15],[105,17,110,19,"Uint8Array"],[105,27,110,29],[105,28,110,30],[105,29,110,31],[105,33,110,35],[105,34,110,36,"valueOf"],[105,41,110,43],[105,42,110,44],[105,43,110,45],[105,46,110,48],[105,47,110,49],[105,50,110,52],[105,51,110,53],[105,52,110,54],[105,53,110,55],[106,4,111,4],[107,2,112,0],[108,2,113,0,"exports"],[108,9,113,7],[108,10,113,8,"bool"],[108,14,113,12],[108,17,113,15,"bool"],[108,21,113,19],[109,0,113,20],[109,3]],"functionMap":{"names":["<global>","bool","bool#constructor","bool#get__encodedLength","bool#get__hash","bool#get__isEmpty","bool#get__isFalse","bool#get__isTrue","bool#eq","bool#inspect","bool#toHex","bool#toHuman","bool#toJSON","bool#toPrimitive","bool#toRawType","bool#toString","bool#toU8a"],"mappings":"AAA;ACU;ICK;KDO;IEI;KFE;IGI;KHE;III;KJE;IKI;KLE;IMI;KNE;IOI;KPI;IQI;KRI;ISI;KTE;IUI;KVE;IWI;KXE;IYI;KZE;IaI;KbE;IcI;KdE;IeI;KfE;CDC"},"hasCjsExports":true},"type":"js/module"}]} |