MetaplexHydraProgram.signMetadata constructor

MetaplexHydraProgram.signMetadata({
  1. required SolAddress authority,
  2. required SolAddress fanout,
  3. required SolAddress holdingAccount,
  4. required SolAddress metadata,
  5. SolAddress tokenMetadataProgram = SPLTokenProgramConst.metaDataProgramId,
})

Implementation

factory MetaplexHydraProgram.signMetadata({
  required SolAddress authority,
  required SolAddress fanout,
  required SolAddress holdingAccount,
  required SolAddress metadata,
  SolAddress tokenMetadataProgram = SPLTokenProgramConst.metaDataProgramId,
}) {
  return MetaplexHydraProgram(
      keys: [
        authority.toSignerAndWritable(),
        fanout.toReadOnly(),
        holdingAccount.toReadOnly(),
        metadata.toWritable(),
        tokenMetadataProgram.toReadOnly()
      ],
      programId: MetaplexHydraProgramConst.programId,
      layout: MetaplexHydraSignMetadataLayout());
}