mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 14:31:02 +00:00
1 line
10 KiB
Plaintext
1 line
10 KiB
Plaintext
{"dependencies":[{"name":"@polkadot/util","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":90,"index":90}}],"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, \"Float\", {\n enumerable: true,\n get: function () {\n return Float;\n }\n });\n var _polkadotUtil = require(_dependencyMap[0], \"@polkadot/util\");\n /**\n * @name Float\n * @description\n * A Codec wrapper for F32 & F64 values. You generally don't want to be using\n * f32/f64 in your runtime, operations on fixed points numbers are preferable. This class\n * was explicitly added since scale-codec has a flag that enables this and it is available\n * in some eth_* RPCs\n */\n class Float extends Number {\n #bitLength;\n constructor(registry, value, {\n bitLength = 32\n } = {}) {\n super((0, _polkadotUtil.isU8a)(value) || (0, _polkadotUtil.isHex)(value) ? value.length === 0 ? 0 : (0, _polkadotUtil.u8aToFloat)((0, _polkadotUtil.u8aToU8a)(value), {\n bitLength\n }) : value || 0);\n this.#bitLength = bitLength;\n this.encodedLength = bitLength / 8;\n this.initialU8aLength = this.encodedLength;\n this.registry = registry;\n }\n static with(bitLength) {\n return class extends Float {\n constructor(registry, value) {\n super(registry, value, {\n bitLength\n });\n }\n };\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 Returns true if the type wraps an empty/default all-0 value\n */\n get isEmpty() {\n return this.valueOf() === 0;\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() === Number(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, _polkadotUtil.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.toString();\n }\n /**\n * @description Converts the Object to JSON, typically used for RPC transfers\n */\n toJSON() {\n // Not sure if this is actually a hex or a string value\n // (would need to check against RPCs to see the result here)\n return this.toHex();\n }\n /**\n * @description Returns the number representation (Same as valueOf)\n */\n toNumber() {\n return this.valueOf();\n }\n /**\n * @description Converts the value in a best-fit primitive form\n */\n toPrimitive() {\n return this.toNumber();\n }\n /**\n * @description Returns the base runtime type name for this instance\n */\n toRawType() {\n return `f${this.#bitLength}`;\n }\n /**\n * @description Encodes the value as a Uint8Array as per the SCALE specifications\n */\n toU8a(_isBare) {\n return (0, _polkadotUtil.floatToU8a)(this, {\n bitLength: this.#bitLength\n });\n }\n }\n});","lineCount":117,"map":[[7,2,10,0,"Object"],[7,8,10,0],[7,9,10,0,"defineProperty"],[7,23,10,0],[7,24,10,0,"exports"],[7,31,10,0],[8,4,10,0,"enumerable"],[8,14,10,0],[9,4,10,0,"get"],[9,7,10,0],[9,18,10,0,"get"],[9,19,10,0],[10,6,10,0],[10,13,10,0,"Float"],[10,18,10,0],[11,4,10,0],[12,2,10,0],[13,2,1,0],[13,6,1,0,"_polkadotUtil"],[13,19,1,0],[13,22,1,0,"require"],[13,29,1,0],[13,30,1,0,"_dependencyMap"],[13,44,1,0],[14,2,2,0],[15,0,3,0],[16,0,4,0],[17,0,5,0],[18,0,6,0],[19,0,7,0],[20,0,8,0],[21,0,9,0],[22,2,10,7],[22,8,10,13,"Float"],[22,13,10,18],[22,22,10,27,"Number"],[22,28,10,33],[22,29,10,34],[23,4,16,4],[23,5,16,5,"bitLength"],[23,14,16,14],[24,4,17,4,"constructor"],[24,15,17,15,"constructor"],[24,16,17,16,"registry"],[24,24,17,24],[24,26,17,26,"value"],[24,31,17,31],[24,33,17,33],[25,6,17,35,"bitLength"],[25,15,17,44],[25,18,17,47],[26,4,17,50],[26,5,17,51],[26,8,17,54],[26,9,17,55],[26,10,17,56],[26,12,17,58],[27,6,18,8],[27,11,18,13],[27,12,18,14],[27,16,18,14,"isU8a"],[27,29,18,19],[27,30,18,19,"isU8a"],[27,35,18,19],[27,37,18,20,"value"],[27,42,18,25],[27,43,18,26],[27,47,18,30],[27,51,18,30,"isHex"],[27,64,18,35],[27,65,18,35,"isHex"],[27,70,18,35],[27,72,18,36,"value"],[27,77,18,41],[27,78,18,42],[27,81,19,14,"value"],[27,86,19,19],[27,87,19,20,"length"],[27,93,19,26],[27,98,19,31],[27,99,19,32],[27,102,20,18],[27,103,20,19],[27,106,21,18],[27,110,21,18,"u8aToFloat"],[27,123,21,28],[27,124,21,28,"u8aToFloat"],[27,134,21,28],[27,136,21,29],[27,140,21,29,"u8aToU8a"],[27,153,21,37],[27,154,21,37,"u8aToU8a"],[27,162,21,37],[27,164,21,38,"value"],[27,169,21,43],[27,170,21,44],[27,172,21,46],[28,8,21,48,"bitLength"],[29,6,21,58],[29,7,21,59],[29,8,21,60],[29,11,22,15,"value"],[29,16,22,20],[29,20,22,24],[29,21,22,26],[29,22,22,27],[30,6,23,8],[30,10,23,12],[30,11,23,13],[30,12,23,14,"bitLength"],[30,21,23,23],[30,24,23,26,"bitLength"],[30,33,23,35],[31,6,24,8],[31,10,24,12],[31,11,24,13,"encodedLength"],[31,24,24,26],[31,27,24,29,"bitLength"],[31,36,24,38],[31,39,24,41],[31,40,24,42],[32,6,25,8],[32,10,25,12],[32,11,25,13,"initialU8aLength"],[32,27,25,29],[32,30,25,32],[32,34,25,36],[32,35,25,37,"encodedLength"],[32,48,25,50],[33,6,26,8],[33,10,26,12],[33,11,26,13,"registry"],[33,19,26,21],[33,22,26,24,"registry"],[33,30,26,32],[34,4,27,4],[35,4,28,4],[35,11,28,11,"with"],[35,15,28,15,"with"],[35,16,28,16,"bitLength"],[35,25,28,25],[35,27,28,27],[36,6,29,8],[36,13,29,15],[36,27,29,29,"Float"],[36,32,29,34],[36,33,29,35],[37,8,30,12,"constructor"],[37,19,30,23,"constructor"],[37,20,30,24,"registry"],[37,28,30,32],[37,30,30,34,"value"],[37,35,30,39],[37,37,30,41],[38,10,31,16],[38,15,31,21],[38,16,31,22,"registry"],[38,24,31,30],[38,26,31,32,"value"],[38,31,31,37],[38,33,31,39],[39,12,31,41,"bitLength"],[40,10,31,51],[40,11,31,52],[40,12,31,53],[41,8,32,12],[42,6,33,8],[42,7,33,9],[43,4,34,4],[44,4,35,4],[45,0,36,0],[46,0,37,0],[47,4,38,4],[47,8,38,8,"hash"],[47,12,38,12,"hash"],[47,13,38,12],[47,15,38,15],[48,6,39,8],[48,13,39,15],[48,17,39,19],[48,18,39,20,"registry"],[48,26,39,28],[48,27,39,29,"hash"],[48,31,39,33],[48,32,39,34],[48,36,39,38],[48,37,39,39,"toU8a"],[48,42,39,44],[48,43,39,45],[48,44,39,46],[48,45,39,47],[49,4,40,4],[50,4,41,4],[51,0,42,0],[52,0,43,0],[53,4,44,4],[53,8,44,8,"isEmpty"],[53,15,44,15,"isEmpty"],[53,16,44,15],[53,18,44,18],[54,6,45,8],[54,13,45,15],[54,17,45,19],[54,18,45,20,"valueOf"],[54,25,45,27],[54,26,45,28],[54,27,45,29],[54,32,45,34],[54,33,45,35],[55,4,46,4],[56,4,47,4],[57,0,48,0],[58,0,49,0],[59,4,50,4,"eq"],[59,6,50,6,"eq"],[59,7,50,7,"other"],[59,12,50,12],[59,14,50,14],[60,6,51,8],[60,13,51,15],[60,17,51,19],[60,18,51,20,"valueOf"],[60,25,51,27],[60,26,51,28],[60,27,51,29],[60,32,51,34,"Number"],[60,38,51,40],[60,39,51,41,"other"],[60,44,51,46],[60,45,51,47],[61,4,52,4],[62,4,53,4],[63,0,54,0],[64,0,55,0],[65,4,56,4,"inspect"],[65,11,56,11,"inspect"],[65,12,56,11],[65,14,56,14],[66,6,57,8],[66,13,57,15],[67,8,58,12,"outer"],[67,13,58,17],[67,15,58,19],[67,16,58,20],[67,20,58,24],[67,21,58,25,"toU8a"],[67,26,58,30],[67,27,58,31],[67,28,58,32],[68,6,59,8],[68,7,59,9],[69,4,60,4],[70,4,61,4],[71,0,62,0],[72,0,63,0],[73,4,64,4,"toHex"],[73,9,64,9,"toHex"],[73,10,64,9],[73,12,64,12],[74,6,65,8],[74,13,65,15],[74,17,65,15,"u8aToHex"],[74,30,65,23],[74,31,65,23,"u8aToHex"],[74,39,65,23],[74,41,65,24],[74,45,65,28],[74,46,65,29,"toU8a"],[74,51,65,34],[74,52,65,35],[74,53,65,36],[74,54,65,37],[75,4,66,4],[76,4,67,4],[77,0,68,0],[78,0,69,0],[79,4,70,4,"toHuman"],[79,11,70,11,"toHuman"],[79,12,70,11],[79,14,70,14],[80,6,71,8],[80,13,71,15],[80,17,71,19],[80,18,71,20,"toString"],[80,26,71,28],[80,27,71,29],[80,28,71,30],[81,4,72,4],[82,4,73,4],[83,0,74,0],[84,0,75,0],[85,4,76,4,"toJSON"],[85,10,76,10,"toJSON"],[85,11,76,10],[85,13,76,13],[86,6,77,8],[87,6,78,8],[88,6,79,8],[88,13,79,15],[88,17,79,19],[88,18,79,20,"toHex"],[88,23,79,25],[88,24,79,26],[88,25,79,27],[89,4,80,4],[90,4,81,4],[91,0,82,0],[92,0,83,0],[93,4,84,4,"toNumber"],[93,12,84,12,"toNumber"],[93,13,84,12],[93,15,84,15],[94,6,85,8],[94,13,85,15],[94,17,85,19],[94,18,85,20,"valueOf"],[94,25,85,27],[94,26,85,28],[94,27,85,29],[95,4,86,4],[96,4,87,4],[97,0,88,0],[98,0,89,0],[99,4,90,4,"toPrimitive"],[99,15,90,15,"toPrimitive"],[99,16,90,15],[99,18,90,18],[100,6,91,8],[100,13,91,15],[100,17,91,19],[100,18,91,20,"toNumber"],[100,26,91,28],[100,27,91,29],[100,28,91,30],[101,4,92,4],[102,4,93,4],[103,0,94,0],[104,0,95,0],[105,4,96,4,"toRawType"],[105,13,96,13,"toRawType"],[105,14,96,13],[105,16,96,16],[106,6,97,8],[106,13,97,15],[106,17,97,19],[106,21,97,23],[106,22,97,24],[106,23,97,25,"bitLength"],[106,32,97,34],[106,34,97,36],[107,4,98,4],[108,4,99,4],[109,0,100,0],[110,0,101,0],[111,4,102,4,"toU8a"],[111,9,102,9,"toU8a"],[111,10,102,10,"_isBare"],[111,17,102,17],[111,19,102,19],[112,6,103,8],[112,13,103,15],[112,17,103,15,"floatToU8a"],[112,30,103,25],[112,31,103,25,"floatToU8a"],[112,41,103,25],[112,43,103,26],[112,47,103,30],[112,49,103,32],[113,8,104,12,"bitLength"],[113,17,104,21],[113,19,104,23],[113,23,104,27],[113,24,104,28],[113,25,104,29,"bitLength"],[114,6,105,8],[114,7,105,9],[114,8,105,10],[115,4,106,4],[116,2,107,0],[117,0,107,1],[117,3]],"functionMap":{"names":["<global>","Float","constructor","_with","<anonymous>","get__hash","get__isEmpty","eq","inspect","toHex","toHuman","toJSON","toNumber","toPrimitive","toRawType","toU8a"],"mappings":"AAA;OCS;ICO;KDU;IEC;eCC;YFC;aEE;SDC;KFC;III;KJE;IKI;KLE;IMI;KNE;IOI;KPI;IQI;KRE;ISI;KTE;IUI;KVI;IWI;KXE;IYI;KZE;IaI;KbE;IcI;KdI;CDC"},"hasCjsExports":false},"type":"js/module"}]} |