mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 07:41:01 +00:00
1 line
8.3 KiB
Plaintext
1 line
8.3 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":15,"index":121},"end":{"line":4,"column":40,"index":146}}],"key":"u0mzEw2nilnHoUWtEdZl0JKHutA=","exportNames":["*"],"imports":1}},{"name":"../base/Option.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":5,"column":20,"index":168},"end":{"line":5,"column":48,"index":196}}],"key":"osLHHl9b1vZ1V0odNJkqqeAmMKo=","exportNames":["*"],"imports":1}},{"name":"../native/Bool.js","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":6,"column":18,"index":216},"end":{"line":6,"column":46,"index":244}}],"key":"3eXNOkDYsp3U9FmbSqyeBKajQmQ=","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.OptionBool = void 0;\n const util_1 = require(_dependencyMap[0], \"@polkadot/util\");\n const Option_js_1 = require(_dependencyMap[1], \"../base/Option.js\");\n const Bool_js_1 = require(_dependencyMap[2], \"../native/Bool.js\");\n function decodeU8a(registry, value) {\n // Encoded as -\n // - 0 = None\n // - 1 = True\n // - 2 = False\n return value[0] === 0 ? null : new Bool_js_1.bool(registry, value[0] === 1);\n }\n /**\n * @name OptionBool\n * @description A specific implementation of Option<bool> than allows for single-byte encoding\n */\n class OptionBool extends Option_js_1.Option {\n constructor(registry, value) {\n super(registry, Bool_js_1.bool, (0, util_1.isU8a)(value) || (0, util_1.isHex)(value) ? decodeU8a(registry, (0, util_1.u8aToU8a)(value)) : value);\n this.initialU8aLength = 1;\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 Checks if the value is an empty value (always false)\n */\n get isFalse() {\n return this.isSome ? !this.value.valueOf() : false;\n }\n /**\n * @description Checks if the value is an empty value (always false)\n */\n get isTrue() {\n return this.isSome ? this.value.valueOf() : false;\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 the base runtime type name for this instance\n */\n toRawType(isBare) {\n return isBare ? 'bool' : 'Option<bool>';\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 if (isBare) {\n return super.toU8a(true);\n }\n return this.isSome ? new Uint8Array([this.isTrue ? 1 : 2]) : new Uint8Array([0]);\n }\n }\n exports.OptionBool = OptionBool;\n});","lineCount":71,"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,"OptionBool"],[7,20,3,18],[7,23,3,21],[7,28,3,26],[7,29,3,27],[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,"Option_js_1"],[9,19,5,17],[9,22,5,20,"require"],[9,29,5,27],[9,30,5,27,"_dependencyMap"],[9,44,5,27],[9,68,5,47],[9,69,5,48],[10,2,6,0],[10,8,6,6,"Bool_js_1"],[10,17,6,15],[10,20,6,18,"require"],[10,27,6,25],[10,28,6,25,"_dependencyMap"],[10,42,6,25],[10,66,6,45],[10,67,6,46],[11,2,7,0],[11,11,7,9,"decodeU8a"],[11,20,7,18,"decodeU8a"],[11,21,7,19,"registry"],[11,29,7,27],[11,31,7,29,"value"],[11,36,7,34],[11,38,7,36],[12,4,8,4],[13,4,9,4],[14,4,10,4],[15,4,11,4],[16,4,12,4],[16,11,12,11,"value"],[16,16,12,16],[16,17,12,17],[16,18,12,18],[16,19,12,19],[16,24,12,24],[16,25,12,25],[16,28,13,10],[16,32,13,14],[16,35,14,10],[16,39,14,14,"Bool_js_1"],[16,48,14,23],[16,49,14,24,"bool"],[16,53,14,28],[16,54,14,29,"registry"],[16,62,14,37],[16,64,14,39,"value"],[16,69,14,44],[16,70,14,45],[16,71,14,46],[16,72,14,47],[16,77,14,52],[16,78,14,53],[16,79,14,54],[17,2,15,0],[18,2,16,0],[19,0,17,0],[20,0,18,0],[21,0,19,0],[22,2,20,0],[22,8,20,6,"OptionBool"],[22,18,20,16],[22,27,20,25,"Option_js_1"],[22,38,20,36],[22,39,20,37,"Option"],[22,45,20,43],[22,46,20,44],[23,4,21,4,"constructor"],[23,15,21,15,"constructor"],[23,16,21,16,"registry"],[23,24,21,24],[23,26,21,26,"value"],[23,31,21,31],[23,33,21,33],[24,6,22,8],[24,11,22,13],[24,12,22,14,"registry"],[24,20,22,22],[24,22,22,24,"Bool_js_1"],[24,31,22,33],[24,32,22,34,"bool"],[24,36,22,38],[24,38,22,40],[24,39,22,41],[24,40,22,42],[24,42,22,44,"util_1"],[24,48,22,50],[24,49,22,51,"isU8a"],[24,54,22,56],[24,56,22,58,"value"],[24,61,22,63],[24,62,22,64],[24,66,22,68],[24,67,22,69],[24,68,22,70],[24,70,22,72,"util_1"],[24,76,22,78],[24,77,22,79,"isHex"],[24,82,22,84],[24,84,22,86,"value"],[24,89,22,91],[24,90,22,92],[24,93,23,14,"decodeU8a"],[24,102,23,23],[24,103,23,24,"registry"],[24,111,23,32],[24,113,23,34],[24,114,23,35],[24,115,23,36],[24,117,23,38,"util_1"],[24,123,23,44],[24,124,23,45,"u8aToU8a"],[24,132,23,53],[24,134,23,55,"value"],[24,139,23,60],[24,140,23,61],[24,141,23,62],[24,144,24,14,"value"],[24,149,24,19],[24,150,24,20],[25,6,25,8],[25,10,25,12],[25,11,25,13,"initialU8aLength"],[25,27,25,29],[25,30,25,32],[25,31,25,33],[26,4,26,4],[27,4,27,4],[28,0,28,0],[29,0,29,0],[30,4,30,4],[30,8,30,8,"encodedLength"],[30,21,30,21,"encodedLength"],[30,22,30,21],[30,24,30,24],[31,6,31,8],[31,13,31,15],[31,14,31,16],[31,17,31,19],[31,18,31,20],[32,4,32,4],[33,4,33,4],[34,0,34,0],[35,0,35,0],[36,4,36,4],[36,8,36,8,"isFalse"],[36,15,36,15,"isFalse"],[36,16,36,15],[36,18,36,18],[37,6,37,8],[37,13,37,15],[37,17,37,19],[37,18,37,20,"isSome"],[37,24,37,26],[37,27,38,14],[37,28,38,15],[37,32,38,19],[37,33,38,20,"value"],[37,38,38,25],[37,39,38,26,"valueOf"],[37,46,38,33],[37,47,38,34],[37,48,38,35],[37,51,39,14],[37,56,39,19],[38,4,40,4],[39,4,41,4],[40,0,42,0],[41,0,43,0],[42,4,44,4],[42,8,44,8,"isTrue"],[42,14,44,14,"isTrue"],[42,15,44,14],[42,17,44,17],[43,6,45,8],[43,13,45,15],[43,17,45,19],[43,18,45,20,"isSome"],[43,24,45,26],[43,27,46,14],[43,31,46,18],[43,32,46,19,"value"],[43,37,46,24],[43,38,46,25,"valueOf"],[43,45,46,32],[43,46,46,33],[43,47,46,34],[43,50,47,14],[43,55,47,19],[44,4,48,4],[45,4,49,4],[46,0,50,0],[47,0,51,0],[48,4,52,4,"inspect"],[48,11,52,11,"inspect"],[48,12,52,11],[48,14,52,14],[49,6,53,8],[49,13,53,15],[50,8,53,17,"outer"],[50,13,53,22],[50,15,53,24],[50,16,53,25],[50,20,53,29],[50,21,53,30,"toU8a"],[50,26,53,35],[50,27,53,36],[50,28,53,37],[51,6,53,39],[51,7,53,40],[52,4,54,4],[53,4,55,4],[54,0,56,0],[55,0,57,0],[56,4,58,4,"toRawType"],[56,13,58,13,"toRawType"],[56,14,58,14,"isBare"],[56,20,58,20],[56,22,58,22],[57,6,59,8],[57,13,59,15,"isBare"],[57,19,59,21],[57,22,60,14],[57,28,60,20],[57,31,61,14],[57,45,61,28],[58,4,62,4],[59,4,63,4],[60,0,64,0],[61,0,65,0],[62,0,66,0],[63,4,67,4,"toU8a"],[63,9,67,9,"toU8a"],[63,10,67,10,"isBare"],[63,16,67,16],[63,18,67,18],[64,6,68,8],[64,10,68,12,"isBare"],[64,16,68,18],[64,18,68,20],[65,8,69,12],[65,15,69,19],[65,20,69,24],[65,21,69,25,"toU8a"],[65,26,69,30],[65,27,69,31],[65,31,69,35],[65,32,69,36],[66,6,70,8],[67,6,71,8],[67,13,71,15],[67,17,71,19],[67,18,71,20,"isSome"],[67,24,71,26],[67,27,72,14],[67,31,72,18,"Uint8Array"],[67,41,72,28],[67,42,72,29],[67,43,72,30],[67,47,72,34],[67,48,72,35,"isTrue"],[67,54,72,41],[67,57,72,44],[67,58,72,45],[67,61,72,48],[67,62,72,49],[67,63,72,50],[67,64,72,51],[67,67,73,14],[67,71,73,18,"Uint8Array"],[67,81,73,28],[67,82,73,29],[67,83,73,30],[67,84,73,31],[67,85,73,32],[67,86,73,33],[68,4,74,4],[69,2,75,0],[70,2,76,0,"exports"],[70,9,76,7],[70,10,76,8,"OptionBool"],[70,20,76,18],[70,23,76,21,"OptionBool"],[70,33,76,31],[71,0,76,32],[71,3]],"functionMap":{"names":["<global>","decodeU8a","OptionBool","constructor","get__encodedLength","get__isFalse","get__isTrue","inspect","toRawType","toU8a"],"mappings":"AAA;ACM;CDQ;AEK;ICC;KDK;IEI;KFE;IGI;KHI;III;KJI;IKI;KLE;IMI;KNI;IOK;KPO;CFC"},"hasCjsExports":true},"type":"js/module"}]} |