MetaplexTokenMetaDataProgram.printV1 constructor
MetaplexTokenMetaDataProgram.printV1({
- required SolAddress editionMetadata,
- required SolAddress edition,
- required SolAddress editionMint,
- required SolAddress editionTokenAccountOwner,
- required SolAddress editionTokenAccount,
- required SolAddress editionMintAuthority,
- required SolAddress masterEdition,
- required SolAddress editionMarkerPda,
- required SolAddress payer,
- required SolAddress masterTokenAccountOwner,
- required SolAddress masterTokenAccount,
- required SolAddress masterMetadata,
- required SolAddress updateAuthority,
- required SolAddress splTokenProgram,
- required SolAddress splAtaProgram,
- required SolAddress sysvarInstructions,
- required MetaplexTokenMetaDataPrintV1Layout layout,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress? editionTokenRecord,
Implementation
factory MetaplexTokenMetaDataProgram.printV1({
required SolAddress editionMetadata,
required SolAddress edition,
required SolAddress editionMint,
required SolAddress editionTokenAccountOwner,
required SolAddress editionTokenAccount,
required SolAddress editionMintAuthority,
required SolAddress masterEdition,
required SolAddress editionMarkerPda,
required SolAddress payer,
required SolAddress masterTokenAccountOwner,
required SolAddress masterTokenAccount,
required SolAddress masterMetadata,
required SolAddress updateAuthority,
required SolAddress splTokenProgram,
required SolAddress splAtaProgram,
required SolAddress sysvarInstructions,
required MetaplexTokenMetaDataPrintV1Layout layout,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress? editionTokenRecord,
}) {
return MetaplexTokenMetaDataProgram(keys: [
editionMetadata.toWritable(),
edition.toWritable(),
editionMint.toWritable(),
editionTokenAccountOwner.toReadOnly(),
editionTokenAccount.toWritable(),
editionMintAuthority.toSigner(),
editionTokenRecord?.toWritable() ??
MetaplexTokenMetaDataProgramConst.programId.toReadOnly(),
masterEdition.toWritable(),
editionMarkerPda.toWritable(),
payer.toSignerAndWritable(),
masterTokenAccountOwner.toSigner(),
masterTokenAccount.toReadOnly(),
masterMetadata.toReadOnly(),
updateAuthority.toReadOnly(),
splTokenProgram.toReadOnly(),
splAtaProgram.toReadOnly(),
sysvarInstructions.toReadOnly(),
systemProgram.toReadOnly(),
], programId: MetaplexTokenMetaDataProgramConst.programId, layout: layout);
}