Crate solana_stake_program

Crate solana_stake_program 

Source
👎Deprecated since 3.1.0: This crate will be REMOVED in Agave v4.0.0 and its name will be taken by the BPF Stake Program. Users of this crate’s public exports must switch to:
  • stake_state -> solana_stake_interface::state.
  • points -> solana_runtime::inflation_rewards::points.
  • id() / check_id() -> solana_stake_interface::program::_.
  • get_minimum_delegation() will continue to live at the same path.
  • Some convenience functions such as stake_from() and create_account() are removed.

Modules§

configDeprecated
config for staking carries variables that the stake program cares about
epoch_rewardsDeprecated
Creates the initial empty EpochRewards sysvar
pointsDeprecated
Information about points calculation based on stake state. Used by solana-runtime.
stake_stateDeprecated
Stake state: helper functions for creating and parsing account data

Functions§

add_genesis_accountsDeprecated
check_id
Returns true if given pubkey is the program ID.
get_minimum_delegationDeprecated
The minimum stake amount that can be delegated, in lamports. NOTE: This is also used to calculate the minimum balance of a delegated stake account, which is the rent exempt reserve plus the minimum stake delegation.
id
Returns the program ID.