Skip to main content

solana_stake_interface/
lib.rs

1//! The Stake program interface.
2
3#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
4#![cfg_attr(docsrs, feature(doc_cfg))]
5
6#[allow(deprecated)]
7pub mod config;
8pub mod error;
9pub mod instruction;
10pub mod stake_flags;
11pub mod stake_history;
12pub mod state;
13#[cfg(feature = "sysvar")]
14pub mod sysvar;
15pub mod tools;
16
17#[cfg(feature = "codama")]
18use codama_macros::codama;
19#[cfg_attr(feature = "codama", codama(name = "stake"))]
20pub mod program {
21    solana_pubkey::declare_id!("Stake11111111111111111111111111111111111111");
22}
23
24/// The minimum number of epochs before stake account that is delegated to a delinquent vote
25/// account may be unstaked with `StakeInstruction::DeactivateDelinquent`
26pub const MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION: usize = 5;