MetaplexTokenMetaDataProgram.deprecatedMintNewEditionFromMasterEditionViaPrintingToken constructor
MetaplexTokenMetaDataProgram.deprecatedMintNewEditionFromMasterEditionViaPrintingToken({
- required SolAddress metadata,
- required SolAddress edition,
- required SolAddress masterEdition,
- required SolAddress mint,
- required SolAddress mintAuthority,
- required SolAddress printingMint,
- required SolAddress masterTokenAccount,
- required SolAddress editionMarker,
- required SolAddress burnAuthority,
- required SolAddress payer,
- required SolAddress masterUpdateAuthority,
- required SolAddress masterMetadata,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
- SolAddress? reservationList,
Implementation
factory MetaplexTokenMetaDataProgram.deprecatedMintNewEditionFromMasterEditionViaPrintingToken({
required SolAddress metadata,
required SolAddress edition,
required SolAddress masterEdition,
required SolAddress mint,
required SolAddress mintAuthority,
required SolAddress printingMint,
required SolAddress masterTokenAccount,
required SolAddress editionMarker,
required SolAddress burnAuthority,
required SolAddress payer,
required SolAddress masterUpdateAuthority,
required SolAddress masterMetadata,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
SolAddress? reservationList,
}) {
return MetaplexTokenMetaDataProgram(
keys: [
metadata.toWritable(),
edition.toWritable(),
masterEdition.toWritable(),
mint.toWritable(),
mintAuthority.toSigner(),
printingMint.toWritable(),
masterTokenAccount.toWritable(),
editionMarker.toWritable(),
burnAuthority.toSigner(),
payer.toSigner(),
masterUpdateAuthority.toReadOnly(),
masterMetadata.toReadOnly(),
tokenProgram.toReadOnly(),
systemProgram.toReadOnly(),
rent.toReadOnly(),
if (reservationList != null) reservationList.toWritable()
],
programId: MetaplexTokenMetaDataProgramConst.programId,
layout:
MetaplexTokenMetaDataDeprecatedMintNewEditionFromMasterEditionViaPrintingTokenLayout());
}