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