This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +15
-1680
lines changed Expand file tree Collapse file tree 4 files changed +15
-1680
lines changed Original file line number Diff line number Diff line change 1
1
//! Instruction types
2
2
3
+ // Remove the following `allow` when `Redelegate` is removed, required to avoid
4
+ // warnings from uses of deprecated types during trait derivations.
5
+ #![ allow( deprecated) ]
3
6
#![ allow( clippy:: too_many_arguments) ]
4
7
5
8
use {
@@ -599,6 +602,10 @@ pub enum StakePoolInstruction {
599
602
/// 13. `[]` Stake Config sysvar
600
603
/// 14. `[]` System program
601
604
/// 15. `[]` Stake program
605
+ #[ deprecated(
606
+ since = "2.0.0" ,
607
+ note = "The stake redelegate instruction used in this will not be enabled."
608
+ ) ]
602
609
Redelegate {
603
610
/// Amount of lamports to redelegate
604
611
#[ allow( dead_code) ] // but it's not
@@ -1051,6 +1058,10 @@ pub fn increase_additional_validator_stake(
1051
1058
1052
1059
/// Creates `Redelegate` instruction (rebalance from one validator account to
1053
1060
/// another)
1061
+ #[ deprecated(
1062
+ since = "2.0.0" ,
1063
+ note = "The stake redelegate instruction used in this will not be enabled."
1064
+ ) ]
1054
1065
pub fn redelegate (
1055
1066
program_id : & Pubkey ,
1056
1067
stake_pool : & Pubkey ,
You can’t perform that action at this time.
0 commit comments