MetaplexHydraProgram.setForTokenMemberStake constructor

MetaplexHydraProgram.setForTokenMemberStake({
  1. required SolAddress authority,
  2. required SolAddress member,
  3. required SolAddress fanout,
  4. required SolAddress membershipVoucher,
  5. required SolAddress membershipMint,
  6. required SolAddress membershipMintTokenAccount,
  7. required SolAddress memberStakeAccount,
  8. required MetaplexHydraSetForTokenMemberStakeLayout layout,
  9. SolAddress systemProgram = SystemProgramConst.programId,
  10. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
})

Implementation

factory MetaplexHydraProgram.setForTokenMemberStake(
    {required SolAddress authority,
    required SolAddress member,
    required SolAddress fanout,
    required SolAddress membershipVoucher,
    required SolAddress membershipMint,
    required SolAddress membershipMintTokenAccount,
    required SolAddress memberStakeAccount,
    required MetaplexHydraSetForTokenMemberStakeLayout layout,
    SolAddress systemProgram = SystemProgramConst.programId,
    SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId}) {
  return MetaplexHydraProgram(keys: [
    authority.toSignerAndWritable(),
    member.toReadOnly(),
    fanout.toWritable(),
    membershipVoucher.toWritable(),
    membershipMint.toWritable(),
    membershipMintTokenAccount.toWritable(),
    memberStakeAccount.toWritable(),
    systemProgram.toReadOnly(),
    tokenProgram.toReadOnly(),
  ], programId: MetaplexHydraProgramConst.programId, layout: layout);
}