StakeProgram.merge constructor
StakeProgram.merge({
- required SolAddress stakePubkey,
- required SolAddress authorizedPubkey,
- required SolAddress sourceStakePubKey,
Generate a Transaction that merges Stake accounts.
Implementation
factory StakeProgram.merge(
{required SolAddress stakePubkey,
required SolAddress authorizedPubkey,
required SolAddress sourceStakePubKey}) {
return StakeProgram(
layout: const StakeMergeLayout(),
keys: [
stakePubkey.toWritable(),
sourceStakePubKey.toWritable(),
SystemProgramConst.sysvarClockPubkey.toReadOnly(),
SystemProgramConst.sysvarStakeHistoryPubkey.toReadOnly(),
authorizedPubkey.toSigner(),
],
programId: StakeProgramConst.programId);
}