stake: pub use config constants for api backwards compatibility (#32769)

* stake: pub use config constants for api backwards compatibility

* Add deprecate

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>

---------

Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
This commit is contained in:
Ashwin Sekar 2023-08-09 15:45:02 -07:00 committed by GitHub
parent b06500ee66
commit 85a9ebc0af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 4 deletions

View File

@ -1,10 +1,12 @@
//! config for staking
//! carries variables that the stake program cares about
use {
super::state::{DEFAULT_SLASH_PENALTY, DEFAULT_WARMUP_COOLDOWN_RATE},
serde_derive::{Deserialize, Serialize},
};
#[deprecated(
since = "1.16.7",
note = "Please use `solana_sdk::stake::state::{DEFAULT_SLASH_PENALTY, DEFAULT_WARMUP_COOLDOWN_RATE}` instead"
)]
pub use super::state::{DEFAULT_SLASH_PENALTY, DEFAULT_WARMUP_COOLDOWN_RATE};
use serde_derive::{Deserialize, Serialize};
// stake config ID
crate::declare_deprecated_id!("StakeConfig11111111111111111111111111111111");