Skip to content
This repository was archived by the owner on Mar 11, 2025. It is now read-only.

Commit d8b2f0d

Browse files
committed
stake-pool: Remove redelegate from program
1 parent d60c263 commit d8b2f0d

File tree

4 files changed

+15
-1680
lines changed

4 files changed

+15
-1680
lines changed

stake-pool/program/src/instruction.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
//! Instruction types
22
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)]
36
#![allow(clippy::too_many_arguments)]
47

58
use {
@@ -599,6 +602,10 @@ pub enum StakePoolInstruction {
599602
/// 13. `[]` Stake Config sysvar
600603
/// 14. `[]` System program
601604
/// 15. `[]` Stake program
605+
#[deprecated(
606+
since = "2.0.0",
607+
note = "The stake redelegate instruction used in this will not be enabled."
608+
)]
602609
Redelegate {
603610
/// Amount of lamports to redelegate
604611
#[allow(dead_code)] // but it's not
@@ -1051,6 +1058,10 @@ pub fn increase_additional_validator_stake(
10511058

10521059
/// Creates `Redelegate` instruction (rebalance from one validator account to
10531060
/// another)
1061+
#[deprecated(
1062+
since = "2.0.0",
1063+
note = "The stake redelegate instruction used in this will not be enabled."
1064+
)]
10541065
pub fn redelegate(
10551066
program_id: &Pubkey,
10561067
stake_pool: &Pubkey,

0 commit comments

Comments
 (0)