A StateMachine class that manages states and transitions between them.

Constructors

Properties

id: string
litContracts: LitContracts
litNodeClient: LitNodeClient
status: MachineStatus = 'stopped'

Accessors

Methods

  • Pushes a value in the machine context. The value will be converted to an array if it is not If path does not exist, it is created

    Parameters

    • path: string | string[]

      the context path to write

    • value: unknown

      the value to write in the context path

    Returns void

  • Sets a value in the machine context If path does not exist, it is created

    Parameters

    • path: string | string[]

      the context path to write

    • value: unknown

      the value to write in the context path

    Returns void