MetaplexAuctionHouseProgram.cancelBidReceipt constructor

MetaplexAuctionHouseProgram.cancelBidReceipt({
  1. required SolAddress receipt,
  2. required SolAddress instruction,
  3. SolAddress systemProgram = SystemProgramConst.programId,
})

Cancel an active bid receipt by setting the canceled_at field to the current time.

Implementation

factory MetaplexAuctionHouseProgram.cancelBidReceipt({
  required SolAddress receipt,
  required SolAddress instruction,
  SolAddress systemProgram = SystemProgramConst.programId,
}) {
  return MetaplexAuctionHouseProgram(
      keys: [
        receipt.toWritable(),
        systemProgram.toReadOnly(),
        instruction.toReadOnly(),
      ],
      programId: MetaplexAuctionHouseProgramConst.programId,
      layout: const MetaplexAuctionHouseCancelBidReceiptLayout());
}