Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "helpers/util"

Index

Functions

Const add0x

  • add0x(txHash: string): string

Const bytes32ToIpfsHash

  • bytes32ToIpfsHash(bytes32Hex: string): string

Const getMaxUint256Value

  • getMaxUint256Value(): BigNumber
  • return the max uint256 value, which is 2^256 - 1

    Returns BigNumber

    max uint256 value as a BigNumber

Const ipfsHashToBytes32

  • ipfsHashToBytes32(ipfsListing: string): string

Const remove0x

  • remove0x(val: string): string

Const stringToBytes

  • stringToBytes(str: string, len: number): string

Const timestampNow

  • timestampNow(): number

Const toNBytes

  • toNBytes(str: string, n: number): string

Const toUtf8

  • toUtf8(hex: string): string

Generated using TypeDoc