MetaplexTokenMetaDataProgram.mintNewEditionFromMasterEditionViaToken constructor
MetaplexTokenMetaDataProgram.mintNewEditionFromMasterEditionViaToken({
- required SolAddress newMetadata,
- required SolAddress newEdition,
- required SolAddress masterEdition,
- required SolAddress newMint,
- required SolAddress editionMarkPda,
- required SolAddress newMintAuthority,
- required SolAddress payer,
- required SolAddress tokenAccountOwner,
- required SolAddress tokenAccount,
- required SolAddress newMetadataUpdateAuthority,
- required SolAddress metadata,
- required MetaplexTokenMetaDataMintNewEditionFromMasterEditionViaTokenLayout layout,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress? rent,
Implementation
factory MetaplexTokenMetaDataProgram.mintNewEditionFromMasterEditionViaToken({
required SolAddress newMetadata,
required SolAddress newEdition,
required SolAddress masterEdition,
required SolAddress newMint,
required SolAddress editionMarkPda,
required SolAddress newMintAuthority,
required SolAddress payer,
required SolAddress tokenAccountOwner,
required SolAddress tokenAccount,
required SolAddress newMetadataUpdateAuthority,
required SolAddress metadata,
required MetaplexTokenMetaDataMintNewEditionFromMasterEditionViaTokenLayout
layout,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress? rent,
}) {
return MetaplexTokenMetaDataProgram(keys: [
newMetadata.toWritable(),
newEdition.toWritable(),
masterEdition.toWritable(),
newMint.toWritable(),
editionMarkPda.toWritable(),
newMintAuthority.toSigner(),
payer.toSignerAndWritable(),
tokenAccountOwner.toSigner(),
tokenAccount.toReadOnly(),
newMetadataUpdateAuthority.toReadOnly(),
metadata.toReadOnly(),
tokenProgram.toReadOnly(),
systemProgram.toReadOnly(),
if (rent != null) rent.toReadOnly()
], programId: MetaplexTokenMetaDataProgramConst.programId, layout: layout);
}