Module instruction

Source
Expand description

Instruction types

Enums§

SinglePoolInstruction
Instructions supported by the SinglePool program.

Functions§

create_and_delegate_user_stake
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.
create_token_metadata
Creates a CreateTokenMetadata instruction.
deposit
Creates all necessary instructions to deposit stake.
deposit_stake
Creates a DepositStake instruction.
initialize
Creates all necessary instructions to initialize the stake pool.
initialize_pool
Creates an InitializePool instruction.
reactivate_pool_stake
Creates a ReactivatePoolStake instruction.
update_token_metadata
Creates an UpdateTokenMetadata instruction.
withdraw
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_account with account size std::mem::size_of::<stake::state::StakeStateV2>() and owner stake::program::id().
withdraw_stake
Creates a WithdrawStake instruction.