MetaplexAuctionHouseProgram.updateAuctionHouse constructor
MetaplexAuctionHouseProgram.updateAuctionHouse({
- required SolAddress treasuryMint,
- required SolAddress payer,
- required SolAddress authority,
- required SolAddress newAuthority,
- required SolAddress feeWithdrawalDestination,
- required SolAddress treasuryWithdrawalDestination,
- required SolAddress treasuryWithdrawalDestinationOwner,
- required SolAddress auctionHouse,
- required MetaplexAuctionHouseUpdateAuctionHouseLayout layout,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
- SolAddress ataProgram = AssociatedTokenAccountProgramConst.associatedTokenProgramId,
Update Auction House values such as seller fee basis points, update authority, treasury account, etc.
Implementation
factory MetaplexAuctionHouseProgram.updateAuctionHouse(
{
/// Treasury mint account, either native SOL mint or a SPL token mint.
required SolAddress treasuryMint,
/// Key paying SOL fees for setting up the Auction House.
required SolAddress payer,
/// Authority key for the Auction House.
required SolAddress authority,
/// New authority key for the Auction House.
required SolAddress newAuthority,
/// Account that pays for fees if the marketplace executes sales.
required SolAddress feeWithdrawalDestination,
/// SOL or SPL token account to receive Auction House fees. If treasury mint is native this will be the same as the `treasury_withdrawl_destination_owner`.
required SolAddress treasuryWithdrawalDestination,
/// Owner of the `treasury_withdrawal_destination` account or the same address if the `treasury_mint` is native.
required SolAddress treasuryWithdrawalDestinationOwner,
/// Auction House instance PDA account.
required SolAddress auctionHouse,
required MetaplexAuctionHouseUpdateAuctionHouseLayout layout,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
SolAddress ataProgram =
AssociatedTokenAccountProgramConst.associatedTokenProgramId}) {
return MetaplexAuctionHouseProgram(keys: [
treasuryMint.toReadOnly(),
payer.toSigner(),
authority.toSigner(),
newAuthority.toReadOnly(),
feeWithdrawalDestination.toWritable(),
treasuryWithdrawalDestination.toWritable(),
treasuryWithdrawalDestinationOwner.toReadOnly(),
auctionHouse.toWritable(),
tokenProgram.toReadOnly(),
systemProgram.toReadOnly(),
ataProgram.toReadOnly(),
rent.toReadOnly()
], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}