Added MinInt256 and MaxInt256 constants (#1576).
This commit is contained in:
parent
819b1ace5c
commit
bfcd05fcbb
@ -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,
|
||||
};
|
||||
|
@ -7,7 +7,9 @@ export {
|
||||
One,
|
||||
Two,
|
||||
WeiPerEther,
|
||||
MaxUint256
|
||||
MaxUint256,
|
||||
MinInt256,
|
||||
MaxInt256
|
||||
} from "./bignumbers";
|
||||
export { HashZero } from "./hashes";
|
||||
export { EtherSymbol } from "./strings";
|
||||
|
Loading…
Reference in New Issue
Block a user