MetaplexHydraProgram.initForMint constructor
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,
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);
}