Function complete_allocation

Source
pub fn complete_allocation(
    state: OpState,
    op_id: u64,
    pending_withdrawal: Option<WithdrawalRequest>,
) -> TransitionRes
Expand description

Complete allocation and transition to next state.

§Arguments

  • state - Current state (must be Allocating)
  • op_id - Operation ID to verify correlation
  • pending_withdrawal - Optional pending withdrawal to process next

§Returns

  • Ok(TransitionResult) with Idle or Withdrawing state