MetaplexAuctionHouseProgram.printPurchaseReceipt constructor

MetaplexAuctionHouseProgram.printPurchaseReceipt({
  1. required SolAddress purchaseReceipt,
  2. required SolAddress listingReceipt,
  3. required SolAddress bidReceipt,
  4. required SolAddress bookkeeper,
  5. required SolAddress instruction,
  6. required MetaplexAuctionHousePrintPurchaseReceiptLayout layout,
  7. SolAddress systemProgram = SystemProgramConst.programId,
  8. SolAddress rent = SystemProgramConst.sysvarRentPubkey,
})

Create a purchase receipt by creating a purchase_receipt account.

Implementation

factory MetaplexAuctionHouseProgram.printPurchaseReceipt({
  required SolAddress purchaseReceipt,
  required SolAddress listingReceipt,
  required SolAddress bidReceipt,
  required SolAddress bookkeeper,
  required SolAddress instruction,
  required MetaplexAuctionHousePrintPurchaseReceiptLayout layout,
  SolAddress systemProgram = SystemProgramConst.programId,
  SolAddress rent = SystemProgramConst.sysvarRentPubkey,
}) {
  return MetaplexAuctionHouseProgram(keys: [
    purchaseReceipt.toWritable(),
    listingReceipt.toWritable(),
    bidReceipt.toWritable(),
    bookkeeper.toSignerAndWritable(),
    systemProgram.toReadOnly(),
    rent.toReadOnly(),
    instruction.toReadOnly()
  ], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}