MetaplexTokenMetaDataProgram.verify constructor

MetaplexTokenMetaDataProgram.verify({
  1. required SolAddress authority,
  2. required SolAddress metadata,
  3. required SolAddress sysvarInstructions,
  4. required MetaplexTokenMetaDataVerifyCollectionV1Layout layout,
  5. SolAddress? delegateRecord,
  6. SolAddress? collectionMint,
  7. SolAddress? collectionMetadata,
  8. SolAddress? collectionMasterEdition,
  9. 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);
}