UNPKG

2.04 kBJavaScriptView Raw
1import { BigInt } from '@polkadot/x-bigint';
2/**
3 * @name _0n
4 * @summary BigInt constant for 0.
5 */
6export const _0n = /*#__PURE__*/ BigInt(0);
7/**
8 * @name _1n
9 * @summary BigInt constant for 1.
10 */
11export const _1n = /*#__PURE__*/ BigInt(1);
12/**
13 * @name _2n
14 * @summary BigInt constant for 2.
15 */
16export const _2n = /*#__PURE__*/ BigInt(2);
17/**
18 * @name _3n
19 * @summary BigInt constant for 3.
20 */
21export const _3n = /*#__PURE__*/ BigInt(3);
22/**
23 * @name _4n
24 * @summary BigInt constant for 4.
25 */
26export const _4n = /*#__PURE__*/ BigInt(4);
27/**
28 * @name _5n
29 * @summary BigInt constant for 5.
30 */
31export const _5n = /*#__PURE__*/ BigInt(5);
32/**
33 * @name _6n
34 * @summary BigInt constant for 6.
35 */
36export const _6n = /*#__PURE__*/ BigInt(6);
37/**
38 * @name _7n
39 * @summary BigInt constant for 7.
40 */
41export const _7n = /*#__PURE__*/ BigInt(7);
42/**
43 * @name _8n
44 * @summary BigInt constant for 8.
45 */
46export const _8n = /*#__PURE__*/ BigInt(8);
47/**
48 * @name _9n
49 * @summary BigInt constant for 9.
50 */
51export const _9n = /*#__PURE__*/ BigInt(9);
52/**
53 * @name _10n
54 * @summary BigInt constant for 10.
55 */
56export const _10n = /*#__PURE__*/ BigInt(10);
57/**
58 * @name _100n
59 * @summary BigInt constant for 100.
60 */
61export const _100n = /*#__PURE__*/ BigInt(100);
62/**
63 * @name _1000n
64 * @summary BigInt constant for 1000.
65 */
66export const _1000n = /*#__PURE__*/ BigInt(1000);
67/**
68 * @name _1Mn
69 * @summary BigInt constant for 1,000,000 (million).
70 */
71export const _1Mn = /*#__PURE__*/ BigInt(1000000);
72/**
73* @name _1Bn
74* @summary BigInt constant for 1,000,000,000 (billion).
75*/
76export const _1Bn = /*#__PURE__*/ BigInt(1000000000);
77/**
78* @name _1Qn
79* @summary BigInt constant for 1,000,000,000,000,000,000 (quitillion).
80*/
81export const _1Qn = _1Bn * _1Bn;
82/**
83* @name _2pow53n
84* @summary BigInt constant for MAX_SAFE_INTEGER
85*/
86export const _2pow53n = /*#__PURE__*/ BigInt(Number.MAX_SAFE_INTEGER);
87/**
88 * @name _sqrt2pow53n
89 * @summary BigInt constant for Math.sqrt(MAX_SAFE_INTEGER)
90 */
91export const _sqrt2pow53n = /*#__PURE__*/ BigInt(94906265);