clone_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_auto_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;
13pub mod tools;
14
15pub mod program {
16 clone_solana_pubkey::declare_id!("Stake11111111111111111111111111111111111111");
17}
18
19/// The minimum number of epochs before stake account that is delegated to a delinquent vote
20/// account may be unstaked with `StakeInstruction::DeactivateDelinquent`
21pub const MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION: usize = 5;