UNPKG

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