28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
|
import { Bytes, Hexable } from "@ethersproject/bytes";
|
||
|
export declare type BigNumberish = BigNumber | Bytes | string | number;
|
||
|
export declare class BigNumber implements Hexable {
|
||
|
readonly _hex: string;
|
||
|
constructor(constructorGuard: any, hex: string);
|
||
|
fromTwos(value: number): BigNumber;
|
||
|
toTwos(value: number): BigNumber;
|
||
|
abs(): BigNumber;
|
||
|
add(other: BigNumberish): BigNumber;
|
||
|
sub(other: BigNumberish): BigNumber;
|
||
|
div(other: BigNumberish): BigNumber;
|
||
|
mul(other: BigNumberish): BigNumber;
|
||
|
mod(other: BigNumberish): BigNumber;
|
||
|
pow(other: BigNumberish): BigNumber;
|
||
|
maskn(value: number): BigNumber;
|
||
|
eq(other: BigNumberish): boolean;
|
||
|
lt(other: BigNumberish): boolean;
|
||
|
lte(other: BigNumberish): boolean;
|
||
|
gt(other: BigNumberish): boolean;
|
||
|
gte(other: BigNumberish): boolean;
|
||
|
isZero(): boolean;
|
||
|
toNumber(): number;
|
||
|
toString(): string;
|
||
|
toHexString(): string;
|
||
|
static from(value: any): BigNumber;
|
||
|
static isBigNumber(value: any): value is BigNumber;
|
||
|
}
|