MetaplexTokenMetaDataProgram.verify constructor
MetaplexTokenMetaDataProgram.verify({
- required SolAddress authority,
- required SolAddress metadata,
- required SolAddress sysvarInstructions,
- required MetaplexTokenMetaDataVerifyCollectionV1Layout layout,
- SolAddress? delegateRecord,
- SolAddress? collectionMint,
- SolAddress? collectionMetadata,
- SolAddress? collectionMasterEdition,
- SolAddress systemProgram = SystemProgramConst.programId,
Implementation
factory MetaplexTokenMetaDataProgram.verify({
required SolAddress authority,
required SolAddress metadata,
required SolAddress sysvarInstructions,
required MetaplexTokenMetaDataVerifyCollectionV1Layout layout,
SolAddress? delegateRecord,
SolAddress? collectionMint,
SolAddress? collectionMetadata,
SolAddress? collectionMasterEdition,
SolAddress systemProgram = SystemProgramConst.programId,
}) {
return MetaplexTokenMetaDataProgram(keys: [
authority.toSigner(),
delegateRecord?.toReadOnly() ??
MetaplexTokenMetaDataProgramConst.programId.toReadOnly(),
metadata.toWritable(),
collectionMint?.toReadOnly() ??
MetaplexTokenMetaDataProgramConst.programId.toReadOnly(),
collectionMetadata?.toWritable() ??
MetaplexTokenMetaDataProgramConst.programId.toReadOnly(),
collectionMasterEdition?.toReadOnly() ??
MetaplexTokenMetaDataProgramConst.programId.toReadOnly(),
systemProgram.toReadOnly(),
sysvarInstructions.toReadOnly()
], programId: MetaplexTokenMetaDataProgramConst.programId, layout: layout);
}