solana_program/stake/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! The [stake native program][np].
//!
//! [np]: https://docs.solanalabs.com/runtime/sysvars#stakehistory

#[allow(deprecated)]
pub mod config;
pub mod instruction;
pub mod stake_flags;
pub mod state;
pub mod tools;

pub mod program {
    crate::declare_id!("Stake11111111111111111111111111111111111111");
}

/// The minimum number of epochs before stake account that is delegated to a delinquent vote
/// account may be unstaked with `StakeInstruction::DeactivateDelinquent`
pub const MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION: usize = 5;