Module spl_stake_pool::instruction[][src]

Expand description

Instruction types

Enums

StakePoolInstruction

Instructions supported by the StakePool program.

Functions

add_validator_to_pool

Creates AddValidatorToPool instruction (add new validator stake account to the pool)

add_validator_to_pool_with_vote

Create an AddValidatorToPool instruction given an existing stake pool and vote account

create_validator_stake_account

Creates CreateValidatorStakeAccount instruction (create new stake account for the validator)

create_validator_stake_account_with_vote

Creates CreateValidatorStakeAccount instruction with a vote account

decrease_validator_stake

Creates DecreaseValidatorStake instruction (rebalance from validator account to transient account)

decrease_validator_stake_with_vote

Create a DecreaseValidatorStake instruction given an existing stake pool and vote account

deposit

Creates instructions required to deposit into a stake pool, given a stake account owned by the user.

deposit_with_authority

Creates instructions required to deposit into a stake pool, given a stake account owned by the user. The difference with deposit() is that a deposit authority must sign this instruction, which is required for private pools.

increase_validator_stake

Creates IncreaseValidatorStake instruction (rebalance from reserve account to transient account)

increase_validator_stake_with_vote

Create an IncreaseValidatorStake instruction given an existing stake pool and vote account

initialize

Creates an ‘initialize’ instruction.

remove_validator_from_pool

Creates RemoveValidatorFromPool instruction (remove validator stake account from the pool)

remove_validator_from_pool_with_vote

Create an RemoveValidatorFromPool instruction given an existing stake pool and vote account

set_fee

Creates a ‘set fee’ instruction.

set_manager

Creates a ‘set manager’ instruction.

set_staker

Creates a ‘set staker’ instruction.

update_stake_pool

Creates all UpdateValidatorListBalance and UpdateStakePoolBalance instructions for fully updating a stake pool each epoch

update_stake_pool_balance

Creates UpdateStakePoolBalance instruction (pool balance from the stake account list balances)

update_validator_list_balance

Creates UpdateValidatorListBalance instruction (update validator stake account balances)

withdraw

Creates a ‘withdraw’ instruction.