MetaplexFixedPriceSaleProgram.claimResource constructor
MetaplexFixedPriceSaleProgram.claimResource({
- required SolAddress market,
- required SolAddress treasuryHolder,
- required SolAddress sellingResource,
- required SolAddress sellingResourceOwner,
- required SolAddress vault,
- required SolAddress metadata,
- required SolAddress owner,
- required SolAddress destination,
- required SolAddress clock,
- required SolAddress tokenMetadataProgram,
- required MetaplexFixedPriceSaleClaimResourceLayout layout,
- List<
AccountMeta> anchorRemainingAccounts = const [], - SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress systemProgram = SystemProgramConst.programId,
Implementation
factory MetaplexFixedPriceSaleProgram.claimResource({
required SolAddress market,
required SolAddress treasuryHolder,
required SolAddress sellingResource,
required SolAddress sellingResourceOwner,
required SolAddress vault,
required SolAddress metadata,
required SolAddress owner,
required SolAddress destination,
required SolAddress clock,
required SolAddress tokenMetadataProgram,
required MetaplexFixedPriceSaleClaimResourceLayout layout,
List<AccountMeta> anchorRemainingAccounts = const [],
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress systemProgram = SystemProgramConst.programId,
}) {
return MetaplexFixedPriceSaleProgram(keys: [
market.toReadOnly(),
treasuryHolder.toReadOnly(),
sellingResource.toReadOnly(),
sellingResourceOwner.toSigner(),
vault.toWritable(),
metadata.toWritable(),
owner.toReadOnly(),
destination.toWritable(),
clock.toReadOnly(),
tokenProgram.toReadOnly(),
tokenMetadataProgram.toReadOnly(),
systemProgram.toReadOnly(),
...anchorRemainingAccounts
], programId: MetaplexFixedPriceSaleProgramConst.programId, layout: layout);
}