2022-09-05 16:57:11 -04:00
|
|
|
/**
|
|
|
|
* A constant for the order N for the secp256k1 curve.
|
2022-12-09 18:24:58 -05:00
|
|
|
*
|
|
|
|
* (**i.e.** ``0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141n``)
|
2022-09-05 16:57:11 -04:00
|
|
|
*/
|
2022-11-30 15:44:23 -05:00
|
|
|
export const N = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");
|
2022-09-05 16:57:11 -04:00
|
|
|
/**
|
|
|
|
* A constant for the number of wei in a single ether.
|
2022-12-09 18:24:58 -05:00
|
|
|
*
|
|
|
|
* (**i.e.** ``1000000000000000000n``)
|
2022-09-05 16:57:11 -04:00
|
|
|
*/
|
2022-11-30 15:44:23 -05:00
|
|
|
export const WeiPerEther = BigInt("1000000000000000000");
|
2022-09-05 16:57:11 -04:00
|
|
|
/**
|
|
|
|
* A constant for the maximum value for a ``uint256``.
|
2022-12-09 18:24:58 -05:00
|
|
|
*
|
|
|
|
* (**i.e.** ``0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn``)
|
2022-09-05 16:57:11 -04:00
|
|
|
*/
|
2022-11-30 15:44:23 -05:00
|
|
|
export const MaxUint256 = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
2022-09-05 16:57:11 -04:00
|
|
|
/**
|
|
|
|
* A constant for the minimum value for an ``int256``.
|
2022-12-09 18:24:58 -05:00
|
|
|
*
|
|
|
|
* (**i.e.** ``-8000000000000000000000000000000000000000000000000000000000000000n``)
|
2022-09-05 16:57:11 -04:00
|
|
|
*/
|
2022-11-30 15:44:23 -05:00
|
|
|
export const MinInt256 = BigInt("0x8000000000000000000000000000000000000000000000000000000000000000") * BigInt(-1);
|
2022-09-05 16:57:11 -04:00
|
|
|
/**
|
|
|
|
* A constant for the maximum value for an ``int256``.
|
2022-12-09 18:24:58 -05:00
|
|
|
*
|
|
|
|
* (**i.e.** ``0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn``)
|
2022-09-05 16:57:11 -04:00
|
|
|
*/
|
2022-11-30 15:44:23 -05:00
|
|
|
export const MaxInt256 = BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");
|
2022-09-05 16:57:11 -04:00
|
|
|
//# sourceMappingURL=numbers.js.map
|