MetaplexHydraProgram.addMemberWallet constructor

MetaplexHydraProgram.addMemberWallet({
  1. required SolAddress authority,
  2. required SolAddress member,
  3. required SolAddress fanout,
  4. required SolAddress membershipAccount,
  5. required MetaplexHydraAddMemberWalletLayout layout,
  6. SolAddress systemProgram = SystemProgramConst.programId,
  7. SolAddress rent = SystemProgramConst.sysvarRentPubkey,
  8. 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);
}