diff --git a/packages/constants/src.ts/bignumbers.ts b/packages/constants/src.ts/bignumbers.ts index 3e827626e..7175087fc 100644 --- a/packages/constants/src.ts/bignumbers.ts +++ b/packages/constants/src.ts/bignumbers.ts @@ -7,11 +7,16 @@ const Two: BigNumber = (/*#__PURE__*/BigNumber.from(2)); const WeiPerEther: BigNumber = (/*#__PURE__*/BigNumber.from("1000000000000000000")); const MaxUint256: BigNumber = (/*#__PURE__*/BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")); +const MinInt256: BigNumber = (/*#__PURE__*/BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000")); +const MaxInt256: BigNumber = (/*#__PURE__*/BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")); + export { NegativeOne, Zero, One, Two, WeiPerEther, - MaxUint256 + MaxUint256, + MinInt256, + MaxInt256, }; diff --git a/packages/constants/src.ts/index.ts b/packages/constants/src.ts/index.ts index ba301df17..abc59a0a6 100644 --- a/packages/constants/src.ts/index.ts +++ b/packages/constants/src.ts/index.ts @@ -7,7 +7,9 @@ export { One, Two, WeiPerEther, - MaxUint256 + MaxUint256, + MinInt256, + MaxInt256 } from "./bignumbers"; export { HashZero } from "./hashes"; export { EtherSymbol } from "./strings";