numbers.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.MaxInt256 = exports.MinInt256 = exports.MaxUint256 = exports.WeiPerEther = exports.N = void 0;
  4. /**
  5. * A constant for the order N for the secp256k1 curve.
  6. *
  7. * (**i.e.** ``0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141n``)
  8. */
  9. exports.N = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");
  10. /**
  11. * A constant for the number of wei in a single ether.
  12. *
  13. * (**i.e.** ``1000000000000000000n``)
  14. */
  15. exports.WeiPerEther = BigInt("1000000000000000000");
  16. /**
  17. * A constant for the maximum value for a ``uint256``.
  18. *
  19. * (**i.e.** ``0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn``)
  20. */
  21. exports.MaxUint256 = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
  22. /**
  23. * A constant for the minimum value for an ``int256``.
  24. *
  25. * (**i.e.** ``-8000000000000000000000000000000000000000000000000000000000000000n``)
  26. */
  27. exports.MinInt256 = BigInt("0x8000000000000000000000000000000000000000000000000000000000000000") * BigInt(-1);
  28. /**
  29. * A constant for the maximum value for an ``int256``.
  30. *
  31. * (**i.e.** ``0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn``)
  32. */
  33. exports.MaxInt256 = BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
  34. //# sourceMappingURL=numbers.js.map