You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.2 KiB
31 lines
1.2 KiB
/** |
|
* A constant for the order N for the secp256k1 curve. |
|
* |
|
* (**i.e.** ``0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141n``) |
|
*/ |
|
export const N = BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"); |
|
/** |
|
* A constant for the number of wei in a single ether. |
|
* |
|
* (**i.e.** ``1000000000000000000n``) |
|
*/ |
|
export const WeiPerEther = BigInt("1000000000000000000"); |
|
/** |
|
* A constant for the maximum value for a ``uint256``. |
|
* |
|
* (**i.e.** ``0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn``) |
|
*/ |
|
export const MaxUint256 = BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); |
|
/** |
|
* A constant for the minimum value for an ``int256``. |
|
* |
|
* (**i.e.** ``-8000000000000000000000000000000000000000000000000000000000000000n``) |
|
*/ |
|
export const MinInt256 = BigInt("0x8000000000000000000000000000000000000000000000000000000000000000") * BigInt(-1); |
|
/** |
|
* A constant for the maximum value for an ``int256``. |
|
* |
|
* (**i.e.** ``0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn``) |
|
*/ |
|
export const MaxInt256 = BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"); |
|
//# sourceMappingURL=numbers.js.map
|