MetaplexAuctionHouseProgram.printPurchaseReceipt constructor
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,
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);
}