MetaplexAuctionHouseProgram.auctioneerSell constructor
MetaplexAuctionHouseProgram.auctioneerSell({
- required SolAddress wallet,
- required SolAddress tokenAccount,
- required SolAddress metadata,
- required SolAddress authority,
- required SolAddress auctioneerAuthority,
- required SolAddress auctionHouse,
- required SolAddress auctionHouseFeeAccount,
- required SolAddress sellerTradeState,
- required SolAddress freeSellerTradeState,
- required SolAddress ahAuctioneerPda,
- required SolAddress programAsSigner,
- required MetaplexAuctionHouseAuctioneerSellLayout layout,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
Implementation
factory MetaplexAuctionHouseProgram.auctioneerSell(
{required SolAddress wallet,
required SolAddress tokenAccount,
required SolAddress metadata,
required SolAddress authority,
required SolAddress auctioneerAuthority,
required SolAddress auctionHouse,
required SolAddress auctionHouseFeeAccount,
required SolAddress sellerTradeState,
required SolAddress freeSellerTradeState,
required SolAddress ahAuctioneerPda,
required SolAddress programAsSigner,
required MetaplexAuctionHouseAuctioneerSellLayout layout,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress rent = SystemProgramConst.sysvarRentPubkey}) {
return MetaplexAuctionHouseProgram(keys: [
wallet.toWritable(),
tokenAccount.toWritable(),
metadata.toReadOnly(),
authority.toReadOnly(),
auctioneerAuthority.toSigner(),
auctionHouse.toReadOnly(),
auctionHouseFeeAccount.toWritable(),
sellerTradeState.toWritable(),
freeSellerTradeState.toWritable(),
ahAuctioneerPda.toReadOnly(),
programAsSigner.toReadOnly(),
tokenProgram.toReadOnly(),
systemProgram.toReadOnly(),
rent.toReadOnly(),
], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}