MetaplexAuctionHouseProgram.auctioneerExecuteSale constructor
MetaplexAuctionHouseProgram.auctioneerExecuteSale({
- required SolAddress buyer,
- required SolAddress seller,
- required SolAddress tokenAccount,
- required SolAddress tokenMint,
- required SolAddress metadata,
- required SolAddress treasuryMint,
- required SolAddress escrowPaymentAccount,
- required SolAddress sellerPaymentReceiptAccount,
- required SolAddress buyerReceiptTokenAccount,
- required SolAddress authority,
- required SolAddress auctioneerAuthority,
- required SolAddress auctionHouse,
- required SolAddress auctionHouseFeeAccount,
- required SolAddress auctionHouseTreasury,
- required SolAddress buyerTradeState,
- required SolAddress sellerTradeState,
- required SolAddress freeTradeState,
- required SolAddress ahAuctioneerPda,
- required SolAddress programAsSigner,
- required MetaplexAuctionHouseAuctioneerExecuteSaleLayout layout,
- SolAddress ataProgram = AssociatedTokenAccountProgramConst.associatedTokenProgramId,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
Implementation
factory MetaplexAuctionHouseProgram.auctioneerExecuteSale(
{required SolAddress buyer,
required SolAddress seller,
required SolAddress tokenAccount,
required SolAddress tokenMint,
required SolAddress metadata,
required SolAddress treasuryMint,
required SolAddress escrowPaymentAccount,
required SolAddress sellerPaymentReceiptAccount,
required SolAddress buyerReceiptTokenAccount,
required SolAddress authority,
required SolAddress auctioneerAuthority,
required SolAddress auctionHouse,
required SolAddress auctionHouseFeeAccount,
required SolAddress auctionHouseTreasury,
required SolAddress buyerTradeState,
required SolAddress sellerTradeState,
required SolAddress freeTradeState,
required SolAddress ahAuctioneerPda,
required SolAddress programAsSigner,
required MetaplexAuctionHouseAuctioneerExecuteSaleLayout layout,
SolAddress ataProgram =
AssociatedTokenAccountProgramConst.associatedTokenProgramId,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress rent = SystemProgramConst.sysvarRentPubkey}) {
return MetaplexAuctionHouseProgram(keys: [
buyer.toWritable(),
seller.toWritable(),
tokenAccount.toWritable(),
tokenMint.toReadOnly(),
metadata.toReadOnly(),
treasuryMint.toReadOnly(),
escrowPaymentAccount.toWritable(),
sellerPaymentReceiptAccount.toWritable(),
buyerReceiptTokenAccount.toWritable(),
authority.toReadOnly(),
auctioneerAuthority.toSigner(),
auctionHouse.toReadOnly(),
auctionHouseFeeAccount.toWritable(),
auctionHouseTreasury.toWritable(),
buyerTradeState.toWritable(),
sellerTradeState.toWritable(),
freeTradeState.toWritable(),
ahAuctioneerPda.toReadOnly(),
tokenProgram.toReadOnly(),
systemProgram.toReadOnly(),
ataProgram.toReadOnly(),
programAsSigner.toReadOnly(),
rent.toReadOnly(),
], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}