constants.js 310 B

123456789101112
  1. // TODO: deprecate the old version in favor of this one
  2. const bigint = {
  3. MAX_UINT48: 2n ** 48n - 1n,
  4. MAX_UINT64: 2n ** 64n - 1n,
  5. };
  6. // TODO: remove toString() when bigint are supported
  7. module.exports = {
  8. MAX_UINT48: bigint.MAX_UINT48.toString(),
  9. MAX_UINT64: bigint.MAX_UINT64.toString(),
  10. bigint,
  11. };