Expand description
Instruction types
Enums§
- Single
Pool Instruction - Instructions supported by the
SinglePoolprogram.
Functions§
- create_
and_ delegate_ user_ stake Deprecated - 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_
pool_ onramp - Creates a
InitializePoolOnRampinstruction plus the transfer to fund it. This is for convenience, for users who need to create an on-ramp for existing pools. We don’t use it internally, becauseinitialize()carries the necessary logic. - create_
token_ metadata - Creates a
CreateTokenMetadatainstruction. - deposit
- Creates all necessary instructions to deposit stake.
- deposit_
stake - Creates a
DepositStakeinstruction. - initialize
- Creates all necessary instructions to initialize the stake pool.
- initialize_
pool - Creates an
InitializePoolinstruction. - initialize_
pool_ onramp - Creates a
InitializePoolOnRampinstruction. - replenish_
pool - Creates a
ReplenishPoolinstruction. - update_
token_ metadata - Creates an
UpdateTokenMetadatainstruction. - 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_accountwith account sizestd::mem::size_of::<stake::state::StakeStateV2>()and ownerstake::program::id(). - withdraw_
stake - Creates a
WithdrawStakeinstruction.