MetaplexFixedPriceSaleProgram.initSellingResource constructor
MetaplexFixedPriceSaleProgram.initSellingResource({
- required SolAddress store,
- required SolAddress admin,
- required SolAddress sellingResource,
- required SolAddress sellingResourceOwner,
- required SolAddress resourceMint,
- required SolAddress masterEdition,
- required SolAddress metadata,
- required SolAddress vault,
- required SolAddress owner,
- required SolAddress resourceToken,
- required MetaplexFixedPriceSaleInitSellingResourceLayout layout,
- List<
AccountMeta> anchorRemainingAccounts = const [], - SolAddress rent = SystemProgramConst.sysvarRentPubkey,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress systemProgram = SystemProgramConst.programId,
Implementation
factory MetaplexFixedPriceSaleProgram.initSellingResource({
required SolAddress store,
required SolAddress admin,
required SolAddress sellingResource,
required SolAddress sellingResourceOwner,
required SolAddress resourceMint,
required SolAddress masterEdition,
required SolAddress metadata,
required SolAddress vault,
required SolAddress owner,
required SolAddress resourceToken,
required MetaplexFixedPriceSaleInitSellingResourceLayout layout,
List<AccountMeta> anchorRemainingAccounts = const [],
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress systemProgram = SystemProgramConst.programId,
}) {
return MetaplexFixedPriceSaleProgram(keys: [
store.toReadOnly(),
admin.toSignerAndWritable(),
sellingResource.toSignerAndWritable(),
sellingResourceOwner.toReadOnly(),
resourceMint.toReadOnly(),
masterEdition.toReadOnly(),
metadata.toReadOnly(),
vault.toWritable(),
owner.toReadOnly(),
resourceToken.toWritable(),
rent.toReadOnly(),
tokenProgram.toReadOnly(),
systemProgram.toReadOnly(),
...anchorRemainingAccounts,
], programId: MetaplexFixedPriceSaleProgramConst.programId, layout: layout);
}