mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 22:41:02 +00:00
auto-commit for d4766860-f253-4ebc-a836-6c1ca9f17d9a
This commit is contained in:
+1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
{"dependencies":[{"name":"../bn/bn.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":33,"index":33}}],"key":"pRz0ltMTvp81oHyR6ilywDAbGkE=","exportNames":["*"],"imports":1}},{"name":"./stripPrefix.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":34},"end":{"line":2,"column":50,"index":84}}],"key":"5z2nEFowA0/wBFZfE5+Cv/x1ONs=","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.hexToBn = hexToBn;\n var _bnBnJs = require(_dependencyMap[0], \"../bn/bn.js\");\n var _stripPrefixJs = require(_dependencyMap[1], \"./stripPrefix.js\");\n /**\n * @name hexToBn\n * @summary Creates a BN.js object from a hex string.\n * @description\n * `null` inputs returns a `BN(0)` result. Hex input values return the actual value converted to a BN. Anything that is not a hex string (including the `0x` prefix) throws an error.\n * @param _value The value to convert\n * @param _options Options to pass while converting\n * @param _options.isLe Convert using Little Endian\n * @param _options.isNegative Convert using two's complement\n * @example\n * <BR>\n *\n * ```javascript\n * import { hexToBn } from '@polkadot/util';\n *\n * hexToBn('0x123480001f'); // => BN(0x123480001f)\n * ```\n */\n function hexToBn(value) {\n var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},\n _ref$isLe = _ref.isLe,\n isLe = _ref$isLe === void 0 ? false : _ref$isLe,\n _ref$isNegative = _ref.isNegative,\n isNegative = _ref$isNegative === void 0 ? false : _ref$isNegative;\n if (!value || value === '0x') {\n return new _bnBnJs.BN(0);\n }\n var stripped = (0, _stripPrefixJs.hexStripPrefix)(value);\n var bn = new _bnBnJs.BN(stripped, 16, isLe ? 'le' : 'be');\n // fromTwos takes as parameter the number of bits, which is the hex length\n // multiplied by 4 (2 bytes being 8 bits)\n return isNegative ? bn.fromTwos(stripped.length * 4) : bn;\n }\n});","lineCount":43,"map":[[7,2,21,0,"exports"],[7,9,21,0],[7,10,21,0,"hexToBn"],[7,17,21,0],[7,20,21,0,"hexToBn"],[7,27,21,0],[8,2,1,0],[8,6,1,0,"_bnBnJs"],[8,13,1,0],[8,16,1,0,"require"],[8,23,1,0],[8,24,1,0,"_dependencyMap"],[8,38,1,0],[9,2,2,0],[9,6,2,0,"_stripPrefixJs"],[9,20,2,0],[9,23,2,0,"require"],[9,30,2,0],[9,31,2,0,"_dependencyMap"],[9,45,2,0],[10,2,3,0],[11,0,4,0],[12,0,5,0],[13,0,6,0],[14,0,7,0],[15,0,8,0],[16,0,9,0],[17,0,10,0],[18,0,11,0],[19,0,12,0],[20,0,13,0],[21,0,14,0],[22,0,15,0],[23,0,16,0],[24,0,17,0],[25,0,18,0],[26,0,19,0],[27,0,20,0],[28,2,21,7],[28,11,21,16,"hexToBn"],[28,18,21,23,"hexToBn"],[28,19,21,24,"value"],[28,24,21,29],[28,26,21,74],[29,4,21,74],[29,8,21,74,"_ref"],[29,12,21,74],[29,15,21,74,"arguments"],[29,24,21,74],[29,25,21,74,"length"],[29,31,21,74],[29,39,21,74,"arguments"],[29,48,21,74],[29,56,21,74,"undefined"],[29,65,21,74],[29,68,21,74,"arguments"],[29,77,21,74],[29,83,21,70],[29,84,21,71],[29,85,21,72],[30,6,21,72,"_ref$isLe"],[30,15,21,72],[30,18,21,72,"_ref"],[30,22,21,72],[30,23,21,33,"isLe"],[30,27,21,37],[31,6,21,33,"isLe"],[31,10,21,37],[31,13,21,37,"_ref$isLe"],[31,22,21,37],[31,36,21,40],[31,41,21,45],[31,44,21,45,"_ref$isLe"],[31,53,21,45],[32,6,21,45,"_ref$isNegative"],[32,21,21,45],[32,24,21,45,"_ref"],[32,28,21,45],[32,29,21,47,"isNegative"],[32,39,21,57],[33,6,21,47,"isNegative"],[33,16,21,57],[33,19,21,57,"_ref$isNegative"],[33,34,21,57],[33,48,21,60],[33,53,21,65],[33,56,21,65,"_ref$isNegative"],[33,71,21,65],[34,4,22,4],[34,8,22,8],[34,9,22,9,"value"],[34,14,22,14],[34,18,22,18,"value"],[34,23,22,23],[34,28,22,28],[34,32,22,32],[34,34,22,34],[35,6,23,8],[35,13,23,15],[35,17,23,19,"BN"],[35,24,23,21],[35,25,23,21,"BN"],[35,27,23,21],[35,28,23,22],[35,29,23,23],[35,30,23,24],[36,4,24,4],[37,4,25,4],[37,8,25,10,"stripped"],[37,16,25,18],[37,19,25,21],[37,23,25,21,"hexStripPrefix"],[37,37,25,35],[37,38,25,35,"hexStripPrefix"],[37,52,25,35],[37,54,25,36,"value"],[37,59,25,41],[37,60,25,42],[38,4,26,4],[38,8,26,10,"bn"],[38,10,26,12],[38,13,26,15],[38,17,26,19,"BN"],[38,24,26,21],[38,25,26,21,"BN"],[38,27,26,21],[38,28,26,22,"stripped"],[38,36,26,30],[38,38,26,32],[38,40,26,34],[38,42,26,36,"isLe"],[38,46,26,40],[38,49,26,43],[38,53,26,47],[38,56,26,50],[38,60,26,54],[38,61,26,55],[39,4,27,4],[40,4,28,4],[41,4,29,4],[41,11,29,11,"isNegative"],[41,21,29,21],[41,24,30,10,"bn"],[41,26,30,12],[41,27,30,13,"fromTwos"],[41,35,30,21],[41,36,30,22,"stripped"],[41,44,30,30],[41,45,30,31,"length"],[41,51,30,37],[41,54,30,40],[41,55,30,41],[41,56,30,42],[41,59,31,10,"bn"],[41,61,31,12],[42,2,32,0],[43,0,32,1],[43,3]],"functionMap":{"names":["<global>","hexToBn"],"mappings":"AAA;OCoB;CDW"},"hasCjsExports":false},"type":"js/module"}]}
|
||||
+1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user