-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathlib.rs
More file actions
29 lines (25 loc) · 830 Bytes
/
lib.rs
File metadata and controls
29 lines (25 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//! The Stake program interface.
#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
#![cfg_attr(docsrs, feature(doc_cfg))]
#[allow(deprecated)]
pub mod config;
pub mod error;
pub mod instruction;
pub mod stake_flags;
pub mod stake_history;
pub mod state;
#[cfg(feature = "sysvar")]
pub mod sysvar;
pub mod tools;
#[cfg(test)]
mod ulp;
pub mod warmup_cooldown_allowance;
#[cfg(feature = "codama")]
use codama_macros::codama;
#[cfg_attr(feature = "codama", codama(name = "stake"))]
pub mod program {
solana_pubkey::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;