mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 08:51:01 +00:00
1 line
3.0 KiB
Plaintext
1 line
3.0 KiB
Plaintext
{"dependencies":[{"name":"../u8a/index.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":43,"index":43}}],"key":"ni7N8kFqexhxzrkt71zvvxQnrBA=","exportNames":["*"],"imports":1}},{"name":"./toU8a.js","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":44},"end":{"line":2,"column":37,"index":81}}],"key":"3bOyH77e/8Wc8K55bqHxvmXdM0A=","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.bnToHex = bnToHex;\n var _u8aIndexJs = require(_dependencyMap[0], \"../u8a/index.js\");\n var _toU8aJs = require(_dependencyMap[1], \"./toU8a.js\");\n /**\n * @name bnToHex\n * @summary Creates a hex value from a BN.js bignumber object.\n * @description\n * `null` inputs returns a `0x` result, BN values return the actual value as a `0x` prefixed hex value. Anything that is not a BN object throws an error. With `bitLength` set, it fixes the number to the specified length.\n * @example\n * <BR>\n *\n * ```javascript\n * import BN from 'bn.js';\n * import { bnToHex } from '@polkadot/util';\n *\n * bnToHex(new BN(0x123456)); // => '0x123456'\n * ```\n */\n function bnToHex(value, {\n bitLength = -1,\n isLe = false,\n isNegative = false\n } = {}) {\n return (0, _u8aIndexJs.u8aToHex)((0, _toU8aJs.bnToU8a)(value, {\n bitLength,\n isLe,\n isNegative\n }));\n }\n});","lineCount":36,"map":[[7,2,18,0,"exports"],[7,9,18,0],[7,10,18,0,"bnToHex"],[7,17,18,0],[7,20,18,0,"bnToHex"],[7,27,18,0],[8,2,1,0],[8,6,1,0,"_u8aIndexJs"],[8,17,1,0],[8,20,1,0,"require"],[8,27,1,0],[8,28,1,0,"_dependencyMap"],[8,42,1,0],[9,2,2,0],[9,6,2,0,"_toU8aJs"],[9,14,2,0],[9,17,2,0,"require"],[9,24,2,0],[9,25,2,0,"_dependencyMap"],[9,39,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,2,18,7],[25,11,18,16,"bnToHex"],[25,18,18,23,"bnToHex"],[25,19,18,24,"value"],[25,24,18,29],[25,26,18,31],[26,4,18,33,"bitLength"],[26,13,18,42],[26,16,18,45],[26,17,18,46],[26,18,18,47],[27,4,18,49,"isLe"],[27,8,18,53],[27,11,18,56],[27,16,18,61],[28,4,18,63,"isNegative"],[28,14,18,73],[28,17,18,76],[29,2,18,82],[29,3,18,83],[29,6,18,86],[29,7,18,87],[29,8,18,88],[29,10,18,90],[30,4,19,4],[30,11,19,11],[30,15,19,11,"u8aToHex"],[30,26,19,19],[30,27,19,19,"u8aToHex"],[30,35,19,19],[30,37,19,20],[30,41,19,20,"bnToU8a"],[30,49,19,27],[30,50,19,27,"bnToU8a"],[30,57,19,27],[30,59,19,28,"value"],[30,64,19,33],[30,66,19,35],[31,6,19,37,"bitLength"],[31,15,19,46],[32,6,19,48,"isLe"],[32,10,19,52],[33,6,19,54,"isNegative"],[34,4,19,65],[34,5,19,66],[34,6,19,67],[34,7,19,68],[35,2,20,0],[36,0,20,1],[36,3]],"functionMap":{"names":["<global>","bnToHex"],"mappings":"AAA;OCiB;CDE"},"hasCjsExports":false},"type":"js/module"}]} |