MetaplexHydraProgram.initForMint constructor

MetaplexHydraProgram.initForMint({
  1. required SolAddress authority,
  2. required SolAddress fanout,
  3. required SolAddress fanoutForMint,
  4. required SolAddress mintHoldingAccount,
  5. required SolAddress mint,
  6. required MetaplexHydraInitForMintLayout layout,
  7. SolAddress systemProgram = SystemProgramConst.programId,
  8. SolAddress rent = SystemProgramConst.sysvarRentPubkey,
})

Implementation

factory MetaplexHydraProgram.initForMint(
    {required SolAddress authority,
    required SolAddress fanout,
    required SolAddress fanoutForMint,
    required SolAddress mintHoldingAccount,
    required SolAddress mint,
    required MetaplexHydraInitForMintLayout layout,
    SolAddress systemProgram = SystemProgramConst.programId,
    SolAddress rent = SystemProgramConst.sysvarRentPubkey}) {
  return MetaplexHydraProgram(keys: [
    authority.toSignerAndWritable(),
    fanout.toWritable(),
    fanoutForMint.toWritable(),
    mintHoldingAccount.toWritable(),
    mint.toReadOnly(),
    systemProgram.toReadOnly(),
    rent.toReadOnly(),
  ], programId: MetaplexHydraProgramConst.programId, layout: layout);
}