Options
All
  • Public
  • Public/Protected
  • All
Menu

Export Registry Provider

Hierarchy

  • UtilsProvider

Index

Constructors

Methods

  • makeWalletAddressShorter(walletAddress: string): string
  • The function to collapse the wallet address shorter

    Parameters

    • walletAddress: string

    Returns string

  • pause(sec: number): Promise<unknown>
  • The function to pause current process.

    Parameters

    • sec: number

    Returns Promise<unknown>

  • randomize(): string
  • The function to randomize a string based on base58 hash algorithm

    Returns string

  • withInterval(handler: (() => void | Promise<void>), msec: number): (() => void)
  • The function to provide interval operation with setTimeout behind the scene.

    Parameters

    • handler: (() => void | Promise<void>)
        • (): void | Promise<void>
        • Returns void | Promise<void>

    • msec: number

    Returns (() => void)

      • (): void
      • The stop handler

        Returns void

  • withTimeout<Result>(handler: (() => Result | Promise<Result>), msec: number): Promise<Result>
  • The function to provide a wrapper to return null if the process duration exceeds a certain msec.

    Type Parameters

    • Result

    Parameters

    • handler: (() => Result | Promise<Result>)
        • (): Result | Promise<Result>
        • Returns Result | Promise<Result>

    • msec: number

    Returns Promise<Result>

Generated using TypeDoc