MetaplexTokenMetaDataProgram.setTokenStandard constructor

MetaplexTokenMetaDataProgram.setTokenStandard({
  1. required SolAddress metadata,
  2. required SolAddress updateAuthority,
  3. required SolAddress mint,
  4. SolAddress? edition,
})

Implementation

factory MetaplexTokenMetaDataProgram.setTokenStandard({
  required SolAddress metadata,
  required SolAddress updateAuthority,
  required SolAddress mint,
  SolAddress? edition,
}) {
  return MetaplexTokenMetaDataProgram(
      keys: [
        metadata.toWritable(),
        updateAuthority.toSigner(),
        mint.toReadOnly(),
        if (edition != null) edition.toReadOnly()
      ],
      programId: MetaplexTokenMetaDataProgramConst.programId,
      layout: MetaplexTokenMetaDataSetTokenStandardLayout());
}