pub fn change_auction_status(
    program: &Program,
    auction_id: u64,
    auction_owner: Pubkey,
    new_status: u8
) -> Instruction
Expand description

This instruction changes the status of an auction

This instruction can be used to change the status of an auction between Halted, Trading, or Expired. Once Expired, the auction will not be revivable.

Arguments

  • auction_id An unsigned 64 bit integer. The auction ID used as a seed to generate the program derived address
  • auction_owner The public key of the auction_owner account.
  • new_status The new status for the given auction, specified by the auction ID parameter. A value of 0 indicates Trading. A value of 1 indicates Halted. A value of 2 indicates expired. All other values result in a failed transaction.

Returns an instruction