1 | // Copyright 2017-2022 @polkadot/util authors & contributors
|
2 | // SPDX-License-Identifier: Apache-2.0
|
3 | import { BigInt } from '@polkadot/x-bigint';
|
4 | /**
|
5 | * @name _0n
|
6 | * @summary BigInt constant for 0.
|
7 | */
|
8 |
|
9 | export const _0n = BigInt(0);
|
10 | /**
|
11 | * @name _1n
|
12 | * @summary BigInt constant for 1.
|
13 | */
|
14 |
|
15 | export const _1n = BigInt(1);
|
16 | /**
|
17 | * @name _1Mn
|
18 | * @summary BigInt constant for 1,000,000.
|
19 | */
|
20 |
|
21 | export const _1Mn = BigInt(1000000);
|
22 | /**
|
23 | * @name _1Bn
|
24 | * @summary BigInt constant for 1,000,000,000.
|
25 | */
|
26 |
|
27 | export const _1Bn = BigInt(1000000000);
|
28 | /**
|
29 | * @name _1Qn
|
30 | * @summary BigInt constant for 1,000,000,000,000,000,000.
|
31 | */
|
32 |
|
33 | export const _1Qn = _1Bn * _1Bn;
|
34 | /**
|
35 | * @name _2pow53n
|
36 | * @summary BigInt constant for MAX_SAFE_INTEGER
|
37 | */
|
38 |
|
39 | export const _2pow53n = BigInt(Number.MAX_SAFE_INTEGER); |
\ | No newline at end of file |