Functions
countDecimalPlaces
- countDecimalPlaces(value: Big): number
isBig
- isBig(input: any): input is Big
Parameters
Returns input is Big
shiftBigDown
- shiftBigDown(value: Big, decimalPlaces: number): Big
Parameters
value: Big
decimalPlaces: number
Returns Big
shiftBigUp
- shiftBigUp(value: Big, decimalPlaces: number): Big
Parameters
value: Big
decimalPlaces: number
Returns Big
stringToBytes
- stringToBytes(input: string): Uint8Array
Parameters
Returns Uint8Array
toBN
- toBN(bytes: string | number | bigint | Uint8Array | BN | Big): BN
Parameters
bytes: string | number | bigint | Uint8Array | BN | Big
Returns BN
toBig
- toBig(value: number | bigint | BN): Big
Parameters
value: number | bigint | BN
Returns Big
toBigInt
- toBigInt(value: BN): BigInt
toBytes
- toBytes(data: string | number | bigint | BN | Big, length?: number): Uint8Array
Parameters
data: string | number | bigint | BN | Big
length: number = 0
Returns Uint8Array
toHexString
- toHexString(bytes: number | bigint | Uint8Array | BN | Big, padLength?: number, padRight?: boolean): string
Parameters
bytes: number | bigint | Uint8Array | BN | Big
padLength: number = 0
padRight: boolean = false
Returns string
toSignedBN
- toSignedBN(bytes: Uint8Array): BN
undefined | string | number | BN | Uint8Array | Big