Module spl_single_pool::instruction
source · Expand description
Instruction types
Enums
- Instructions supported by the SinglePool program.
Functions
- Creates necessary instructions to create and delegate a new stake account to a given validator. Uses a fixed address for each wallet and vote account combination to make it easier to find for deposits. This is an optional helper function; deposits can come from any owned stake account without lockup.
- Creates a
CreateTokenMetadatainstruction. - Creates all necessary instructions to deposit stake.
- Creates a
DepositStakeinstruction. - Creates all necessary instructions to initialize the stake pool.
- Creates an
InitializePoolinstruction. - Creates a
ReactivatePoolStakeinstruction. - Creates an
UpdateTokenMetadatainstruction. - Creates all necessary instructions to withdraw stake into a given stake account. If a new stake account is required, the user should first include
system_instruction::create_accountwith account sizestd::mem::size_of::<stake::state::StakeStateV2>()and ownerstake::program::id(). - Creates a
WithdrawStakeinstruction.