MetaplexHydraProgram.unstake constructor
MetaplexHydraProgram.unstake({
- required SolAddress member,
- required SolAddress fanout,
- required SolAddress membershipVoucher,
- required SolAddress membershipMint,
- required SolAddress membershipMintTokenAccount,
- required SolAddress memberStakeAccount,
- required SolAddress instructions,
- SolAddress systemProgram = SystemProgramConst.programId,
- SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
Implementation
factory MetaplexHydraProgram.unstake(
{required SolAddress member,
required SolAddress fanout,
required SolAddress membershipVoucher,
required SolAddress membershipMint,
required SolAddress membershipMintTokenAccount,
required SolAddress memberStakeAccount,
required SolAddress instructions,
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(),
instructions.toReadOnly(),
],
programId: MetaplexHydraProgramConst.programId,
layout: MetaplexHydraUnstakeLayout());
}