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