2020-11-14 17:42:36 -05:00
|
|
|
import { BigNumber } from "@ethersproject/bignumber";
|
|
|
|
|
|
|
|
const NegativeOne: BigNumber = (/*#__PURE__*/BigNumber.from(-1));
|
|
|
|
const Zero: BigNumber = (/*#__PURE__*/BigNumber.from(0));
|
|
|
|
const One: BigNumber = (/*#__PURE__*/BigNumber.from(1));
|
|
|
|
const Two: BigNumber = (/*#__PURE__*/BigNumber.from(2));
|
|
|
|
const WeiPerEther: BigNumber = (/*#__PURE__*/BigNumber.from("1000000000000000000"));
|
|
|
|
const MaxUint256: BigNumber = (/*#__PURE__*/BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));
|
|
|
|
|
2021-05-31 18:32:33 -04:00
|
|
|
const MinInt256: BigNumber = (/*#__PURE__*/BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000"));
|
|
|
|
const MaxInt256: BigNumber = (/*#__PURE__*/BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"));
|
|
|
|
|
2020-11-14 17:42:36 -05:00
|
|
|
export {
|
|
|
|
NegativeOne,
|
|
|
|
Zero,
|
|
|
|
One,
|
|
|
|
Two,
|
|
|
|
WeiPerEther,
|
2021-05-31 18:32:33 -04:00
|
|
|
MaxUint256,
|
|
|
|
MinInt256,
|
|
|
|
MaxInt256,
|
2020-11-14 17:42:36 -05:00
|
|
|
};
|