DateTime: {
clone: (() => BN);
toString: ((base?: number | "hex", length?: number) => string) & (() => string);
toNumber: (() => number);
toJSON: (() => string);
toArray: ((endian?: Endianness, length?: number) => number[]);
toArrayLike: {
(ArrayType: BufferConstructor, endian?: Endianness, length?: number): Buffer;
(ArrayType: any[], endian?: Endianness, length?: number): any[];
};
toBuffer: ((endian?: Endianness, length?: number) => Buffer);
bitLength: (() => number);
zeroBits: (() => number);
byteLength: (() => number);
isNeg: (() => boolean);
isEven: (() => boolean);
isOdd: (() => boolean);
isZero: (() => boolean);
cmp: ((b: BN) => 0 | 1 | -1);
ucmp: ((b: BN) => 0 | 1 | -1);
cmpn: ((b: number) => 0 | 1 | -1);
lt: ((b: BN) => boolean);
ltn: ((b: number) => boolean);
lte: ((b: BN) => boolean);
lten: ((b: number) => boolean);
gt: ((b: BN) => boolean);
gtn: ((b: number) => boolean);
gte: ((b: BN) => boolean);
gten: ((b: number) => boolean);
eq: ((b: BN) => boolean);
eqn: ((b: number) => boolean);
toTwos: ((width: number) => BN);
fromTwos: ((width: number) => BN);
neg: (() => BN);
ineg: (() => BN);
abs: (() => BN);
iabs: (() => BN);
add: ((b: BN) => BN);
iadd: ((b: BN) => BN);
addn: ((b: number) => BN);
iaddn: ((b: number) => BN);
sub: ((b: BN) => BN);
isub: ((b: BN) => BN);
subn: ((b: number) => BN);
isubn: ((b: number) => BN);
mul: ((b: BN) => BN);
imul: ((b: BN) => BN);
muln: ((b: number) => BN);
imuln: ((b: number) => BN);
sqr: (() => BN);
isqr: (() => BN);
pow: ((b: BN) => BN);
div: ((b: BN) => BN);
divn: ((b: number) => BN);
idivn: ((b: number) => BN);
divmod: ((b: BN, mode?: "div" | "mod", positive?: boolean) => {
div: BN;
mod: BN;
});
mod: ((b: BN) => BN);
umod: ((b: BN) => BN);
modn: ((b: number) => number);
modrn: ((b: number) => number);
divRound: ((b: BN) => BN);
or: ((b: BN) => BN);
ior: ((b: BN) => BN);
uor: ((b: BN) => BN);
iuor: ((b: BN) => BN);
and: ((b: BN) => BN);
iand: ((b: BN) => BN);
uand: ((b: BN) => BN);
iuand: ((b: BN) => BN);
andln: ((b: number) => BN);
xor: ((b: BN) => BN);
ixor: ((b: BN) => BN);
uxor: ((b: BN) => BN);
iuxor: ((b: BN) => BN);
setn: ((b: number) => BN);
shln: ((b: number) => BN);
ishln: ((b: number) => BN);
ushln: ((b: number) => BN);
iushln: ((b: number) => BN);
shrn: ((b: number) => BN);
ishrn: ((b: number) => BN);
ushrn: ((b: number) => BN);
iushrn: ((b: number) => BN);
testn: ((b: number) => boolean);
maskn: ((b: number) => BN);
imaskn: ((b: number) => BN);
bincn: ((b: number) => BN);
notn: ((w: number) => BN);
inotn: ((w: number) => BN);
gcd: ((b: BN) => BN);
egcd: ((b: BN) => {
a: BN;
b: BN;
gcd: BN;
});
invm: ((b: BN) => BN);
toRed: ((reductionContext: ReductionContext) => RedBN);
__opaque__: "DateTime";
}
Type declaration
-
clone: (() => BN)
-
toString: ((base?: number | "hex", length?: number) => string) & (() => string)
-
toNumber: (() => number)
-
- (): number
-
Returns number
-
toJSON: (() => string)
-
- (): string
-
Returns string
-
toArray: ((endian?: Endianness, length?: number) => number[])
-
- (endian?: Endianness, length?: number): number[]
-
Parameters
-
Optional
endian: Endianness
-
Optional
length: number
Returns number[]
-
toArrayLike: {
(ArrayType: BufferConstructor, endian?: Endianness, length?: number): Buffer;
(ArrayType: any[], endian?: Endianness, length?: number): any[];
}
-
- (ArrayType: BufferConstructor, endian?: Endianness, length?: number): Buffer
-
Parameters
-
ArrayType: BufferConstructor
-
Optional
endian: Endianness
-
Optional
length: number
Returns Buffer
- (ArrayType: any[], endian?: Endianness, length?: number): any[]
-
Parameters
-
ArrayType: any[]
-
Optional
endian: Endianness
-
Optional
length: number
Returns any[]
-
toBuffer: ((endian?: Endianness, length?: number) => Buffer)
-
- (endian?: Endianness, length?: number): Buffer
-
Parameters
-
Optional
endian: Endianness
-
Optional
length: number
Returns Buffer
-
bitLength: (() => number)
-
- (): number
-
Returns number
-
zeroBits: (() => number)
-
- (): number
-
Returns number
-
byteLength: (() => number)
-
- (): number
-
Returns number
-
isNeg: (() => boolean)
-
- (): boolean
-
Returns boolean
-
isEven: (() => boolean)
-
- (): boolean
-
Returns boolean
-
isOdd: (() => boolean)
-
- (): boolean
-
Returns boolean
-
isZero: (() => boolean)
-
- (): boolean
-
Returns boolean
-
cmp: ((b: BN) => 0 | 1 | -1)
-
- (b: BN): 0 | 1 | -1
-
Returns 0 | 1 | -1
-
ucmp: ((b: BN) => 0 | 1 | -1)
-
- (b: BN): 0 | 1 | -1
-
Returns 0 | 1 | -1
-
cmpn: ((b: number) => 0 | 1 | -1)
-
- (b: number): 0 | 1 | -1
-
Returns 0 | 1 | -1
-
lt: ((b: BN) => boolean)
-
- (b: BN): boolean
-
Returns boolean
-
ltn: ((b: number) => boolean)
-
- (b: number): boolean
-
Returns boolean
-
lte: ((b: BN) => boolean)
-
- (b: BN): boolean
-
Returns boolean
-
lten: ((b: number) => boolean)
-
- (b: number): boolean
-
Returns boolean
-
gt: ((b: BN) => boolean)
-
- (b: BN): boolean
-
Returns boolean
-
gtn: ((b: number) => boolean)
-
- (b: number): boolean
-
Returns boolean
-
gte: ((b: BN) => boolean)
-
- (b: BN): boolean
-
Returns boolean
-
gten: ((b: number) => boolean)
-
- (b: number): boolean
-
Returns boolean
-
eq: ((b: BN) => boolean)
-
- (b: BN): boolean
-
Returns boolean
-
eqn: ((b: number) => boolean)
-
- (b: number): boolean
-
Returns boolean
-
toTwos: ((width: number) => BN)
-
- (width: number): BN
-
Returns BN
-
fromTwos: ((width: number) => BN)
-
- (width: number): BN
-
Returns BN
-
neg: (() => BN)
-
ineg: (() => BN)
-
abs: (() => BN)
-
iabs: (() => BN)
-
add: ((b: BN) => BN)
-
iadd: ((b: BN) => BN)
-
addn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
iaddn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
sub: ((b: BN) => BN)
-
isub: ((b: BN) => BN)
-
subn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
isubn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
mul: ((b: BN) => BN)
-
imul: ((b: BN) => BN)
-
muln: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
imuln: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
sqr: (() => BN)
-
isqr: (() => BN)
-
pow: ((b: BN) => BN)
-
div: ((b: BN) => BN)
-
divn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
idivn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
divmod: ((b: BN, mode?: "div" | "mod", positive?: boolean) => {
div: BN;
mod: BN;
})
-
- (b: BN, mode?: "div" | "mod", positive?: boolean): {
div: BN;
mod: BN;
}
-
Parameters
-
b: BN
-
Optional
mode: "div" | "mod"
-
Optional
positive: boolean
Returns {
div: BN;
mod: BN;
}
-
mod: ((b: BN) => BN)
-
umod: ((b: BN) => BN)
-
modn: ((b: number) => number)
-
- (b: number): number
-
Returns number
-
modrn: ((b: number) => number)
-
- (b: number): number
-
Returns number
-
divRound: ((b: BN) => BN)
-
or: ((b: BN) => BN)
-
ior: ((b: BN) => BN)
-
uor: ((b: BN) => BN)
-
iuor: ((b: BN) => BN)
-
and: ((b: BN) => BN)
-
iand: ((b: BN) => BN)
-
uand: ((b: BN) => BN)
-
iuand: ((b: BN) => BN)
-
andln: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
xor: ((b: BN) => BN)
-
ixor: ((b: BN) => BN)
-
uxor: ((b: BN) => BN)
-
iuxor: ((b: BN) => BN)
-
setn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
shln: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
ishln: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
ushln: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
iushln: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
shrn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
ishrn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
ushrn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
iushrn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
testn: ((b: number) => boolean)
-
- (b: number): boolean
-
Returns boolean
-
maskn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
imaskn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
bincn: ((b: number) => BN)
-
- (b: number): BN
-
Returns BN
-
notn: ((w: number) => BN)
-
- (w: number): BN
-
Returns BN
-
inotn: ((w: number) => BN)
-
- (w: number): BN
-
Returns BN
-
gcd: ((b: BN) => BN)
-
egcd: ((b: BN) => {
a: BN;
b: BN;
gcd: BN;
})
-
- (b: BN): {
a: BN;
b: BN;
gcd: BN;
}
-
Returns {
a: BN;
b: BN;
gcd: BN;
}
-
invm: ((b: BN) => BN)
-
toRed: ((reductionContext: ReductionContext) => RedBN)
-
- (reductionContext: ReductionContext): RedBN
-
Parameters
-
reductionContext: ReductionContext
Returns RedBN
-
__opaque__: "DateTime"
Description
clone number