MetaplexAuctionHouseProgram.printBidReceipt constructor

MetaplexAuctionHouseProgram.printBidReceipt({
  1. required SolAddress receipt,
  2. required SolAddress bookkeeper,
  3. required SolAddress instruction,
  4. required MetaplexAuctionHousePrintBidReceiptLayout layout,
  5. SolAddress systemProgram = SystemProgramConst.programId,
  6. SolAddress rent = SystemProgramConst.sysvarRentPubkey,
})

Create a bid receipt by creating a bid_receipt account.

Implementation

factory MetaplexAuctionHouseProgram.printBidReceipt({
  required SolAddress receipt,
  required SolAddress bookkeeper,
  required SolAddress instruction,
  required MetaplexAuctionHousePrintBidReceiptLayout layout,
  SolAddress systemProgram = SystemProgramConst.programId,
  SolAddress rent = SystemProgramConst.sysvarRentPubkey,
}) {
  return MetaplexAuctionHouseProgram(keys: [
    receipt.toWritable(),
    bookkeeper.toSignerAndWritable(),
    systemProgram.toReadOnly(),
    rent.toReadOnly(),
    instruction.toReadOnly(),
  ], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}