Single-use handle for reserved pre-trade state.

lock() and accountAdjustments() may be read while the reservation is live. commit() and rollback() each consume the handle; calling either a second time (or after the other) throws LifecycleError.

Methods

  • Returns void

  • Returns the account adjustments produced by this reservation.

    Errors

    Throws LifecycleError when the reservation has been finalized.

    Returns AccountAdjustmentOutcome[]

  • Commits the reserved state.

    Errors

    Throws LifecycleError when the reservation has already been finalized.

    Returns void

  • Returns void

  • Returns the lock payload accumulated for this reservation.

    Errors

    Throws LifecycleError when the reservation has been finalized.

    Returns Lock

  • Rolls back the reserved state.

    Errors

    Throws LifecycleError when the reservation has already been finalized.

    Returns void