Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • countDecimalPlaces(value: Big): number
  • isBig(input: any): input is Big
  • shiftBigDown(value: Big, decimalPlaces: number): Big
  • shiftBigUp(value: Big, decimalPlaces: number): Big
  • stringToBytes(input: string): Uint8Array
  • toBN(bytes: string | number | bigint | Uint8Array | BN | Big): BN
  • Parameters

    • bytes: string | number | bigint | Uint8Array | BN | Big

      undefined | string | number | BN | Uint8Array | Big

    Returns BN

  • toBig(value: number | bigint | BN): Big
  • toBigInt(value: BN): BigInt
  • toBytes(data: string | number | bigint | BN | Big, length?: number): Uint8Array
  • toHexString(bytes: number | bigint | Uint8Array | BN | Big, padLength?: number, padRight?: boolean): string
  • Parameters

    • bytes: number | bigint | Uint8Array | BN | Big

      Uint8Array | BN | bigint

    • padLength: number = 0

      number - minimum desired byte length (left-pad with zeroes)

    • padRight: boolean = false

      boolean - causes padding to occur on right instead of left

    Returns string

  • toSignedBN(bytes: Uint8Array): BN

Generated using TypeDoc