MetaplexFixedPriceSaleProgram.withdraw constructor
MetaplexFixedPriceSaleProgram.withdraw({
- required SolAddress market,
- required SolAddress sellingResource,
- required SolAddress metadata,
- required SolAddress treasuryHolder,
- required SolAddress treasuryMint,
- required SolAddress owner,
- required SolAddress destination,
- required SolAddress funder,
- required SolAddress payer,
- required SolAddress payoutTicket,
- required SolAddress clock,
- required SolAddress associatedTokenProgram,
- required MetaplexFixedPriceSaleWithdrawLayout layout,
- List<
AccountMeta> anchorRemainingAccounts = const [], - SolAddress rent = SystemProgramConst.sysvarRentPubkey,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress systemProgram = SystemProgramConst.programId,
Implementation
factory MetaplexFixedPriceSaleProgram.withdraw({
required SolAddress market,
required SolAddress sellingResource,
required SolAddress metadata,
required SolAddress treasuryHolder,
required SolAddress treasuryMint,
required SolAddress owner,
required SolAddress destination,
required SolAddress funder,
required SolAddress payer,
required SolAddress payoutTicket,
required SolAddress clock,
required SolAddress associatedTokenProgram,
required MetaplexFixedPriceSaleWithdrawLayout layout,
List<AccountMeta> anchorRemainingAccounts = const [],
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress systemProgram = SystemProgramConst.programId,
}) {
return MetaplexFixedPriceSaleProgram(keys: [
market.toReadOnly(),
sellingResource.toReadOnly(),
metadata.toReadOnly(),
treasuryHolder.toWritable(),
treasuryMint.toReadOnly(),
owner.toReadOnly(),
destination.toWritable(),
funder.toReadOnly(),
payer.toSignerAndWritable(),
payoutTicket.toWritable(),
rent.toReadOnly(),
clock.toReadOnly(),
tokenProgram.toReadOnly(),
associatedTokenProgram.toReadOnly(),
systemProgram.toReadOnly(),
...anchorRemainingAccounts
], programId: MetaplexFixedPriceSaleProgramConst.programId, layout: layout);
}