StakeProgram.deactivate constructor
StakeProgram.deactivate({
- required SolAddress stakePubkey,
- required SolAddress authorizedPubkey,
Generate a Transaction that deactivates Stake tokens.
Implementation
factory StakeProgram.deactivate(
{required SolAddress stakePubkey, required SolAddress authorizedPubkey}) {
return StakeProgram(
layout: StakeDeactivateLayout(),
keys: [
stakePubkey.toWritable(),
SystemProgramConst.sysvarClockPubkey.toReadOnly(),
authorizedPubkey.toSigner(),
],
programId: StakeProgramConst.programId);
}