MetaplexHydraProgram.addMemberNft constructor
MetaplexHydraProgram.addMemberNft({
- required SolAddress authority,
- required SolAddress fanout,
- required SolAddress membershipAccount,
- required SolAddress mint,
- required SolAddress metadata,
- required MetaplexHydraAddMemberNftLayout layout,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress rent = SystemProgramConst.sysvarRentPubkey,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
Implementation
factory MetaplexHydraProgram.addMemberNft(
{required SolAddress authority,
required SolAddress fanout,
required SolAddress membershipAccount,
required SolAddress mint,
required SolAddress metadata,
required MetaplexHydraAddMemberNftLayout layout,
SolAddress systemProgram = SystemProgramConst.programId,
SolAddress rent = SystemProgramConst.sysvarRentPubkey,
SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId}) {
return MetaplexHydraProgram(keys: [
authority.toSignerAndWritable(),
fanout.toWritable(),
membershipAccount.toWritable(),
mint.toReadOnly(),
metadata.toReadOnly(),
systemProgram.toReadOnly(),
rent.toReadOnly(),
tokenProgram.toReadOnly(),
], programId: MetaplexHydraProgramConst.programId, layout: layout);
}