MetaplexHydraProgram.setTokenMemberStake constructor

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

Implementation

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