Constructors

Methods

  • Cancels a task.

    Parameters

    • taskId: string

      The ID of the task.

    Returns Promise<void>

    A promise that resolves when the task is canceled.

  • Completes a task.

    Parameters

    • taskId: string

      The ID of the task.

    • result: string

      The result of the task.

    Returns Promise<void>

    A promise that resolves when the task is completed.

  • Creates a new task.

    Parameters

    • params: TaskCreationParams

      The parameters for task creation.

    Returns Promise<TaskData>

    A promise that resolves to the task ID.

  • Parameters

    • receipt: any
    • eventName: string

    Returns EventLog

  • Gets tasks by issuer.

    Parameters

    • issuer: string

      The issuer of the tasks.

    Returns Promise<bigint[]>

    A promise that resolves to the task IDs.

  • Assigns a rating to a task.

    Parameters

    • taskId: string

      The ID of the task.

    • rating: number

      The rating.

    Returns Promise<void>

    A promise that resolves when the task is assigned.