Added MinInt256 and MaxInt256 constants (#1576).

This commit is contained in:
Richard Moore 2021-05-31 18:32:33 -04:00
parent 819b1ace5c
commit bfcd05fcbb
No known key found for this signature in database
GPG Key ID: 665176BE8E9DC651
2 changed files with 9 additions and 2 deletions

@ -7,11 +7,16 @@ const Two: BigNumber = (/*#__PURE__*/BigNumber.from(2));
const WeiPerEther: BigNumber = (/*#__PURE__*/BigNumber.from("1000000000000000000")); const WeiPerEther: BigNumber = (/*#__PURE__*/BigNumber.from("1000000000000000000"));
const MaxUint256: BigNumber = (/*#__PURE__*/BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")); const MaxUint256: BigNumber = (/*#__PURE__*/BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));
const MinInt256: BigNumber = (/*#__PURE__*/BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000"));
const MaxInt256: BigNumber = (/*#__PURE__*/BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));
export { export {
NegativeOne, NegativeOne,
Zero, Zero,
One, One,
Two, Two,
WeiPerEther, WeiPerEther,
MaxUint256 MaxUint256,
MinInt256,
MaxInt256,
}; };

@ -7,7 +7,9 @@ export {
One, One,
Two, Two,
WeiPerEther, WeiPerEther,
MaxUint256 MaxUint256,
MinInt256,
MaxInt256
} from "./bignumbers"; } from "./bignumbers";
export { HashZero } from "./hashes"; export { HashZero } from "./hashes";
export { EtherSymbol } from "./strings"; export { EtherSymbol } from "./strings";