MetaplexHydraProgram.init constructor

MetaplexHydraProgram.init({
  1. required SolAddress authority,
  2. required SolAddress fanout,
  3. required SolAddress holdingAccount,
  4. required SolAddress membershipMint,
  5. required MetaplexHydraInitLayout layout,
  6. SolAddress systemProgram = SystemProgramConst.programId,
  7. SolAddress rent = SystemProgramConst.sysvarRentPubkey,
  8. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
})

Implementation

factory MetaplexHydraProgram.init(
    {required SolAddress authority,
    required SolAddress fanout,
    required SolAddress holdingAccount,
    required SolAddress membershipMint,
    required MetaplexHydraInitLayout layout,
    SolAddress systemProgram = SystemProgramConst.programId,
    SolAddress rent = SystemProgramConst.sysvarRentPubkey,
    SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId}) {
  return MetaplexHydraProgram(keys: [
    authority.toSignerAndWritable(),
    fanout.toWritable(),
    holdingAccount.toWritable(),
    systemProgram.toReadOnly(),
    membershipMint.toWritable(),
    rent.toReadOnly(),
    tokenProgram.toReadOnly(),
  ], programId: MetaplexHydraProgramConst.programId, layout: layout);
}