Skip to content

Commit 2d3868a

Browse files
committed
re-hide redelegate from client gen
1 parent 0e5cbef commit 2d3868a

File tree

6 files changed

+9
-346
lines changed

6 files changed

+9
-346
lines changed

clients/js/src/generated/instructions/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ export * from './initializeChecked';
1919
export * from './merge';
2020
export * from './moveLamports';
2121
export * from './moveStake';
22-
export * from './redelegate';
2322
export * from './setLockup';
2423
export * from './setLockupChecked';
2524
export * from './split';

clients/js/src/generated/instructions/redelegate.ts

Lines changed: 0 additions & 93 deletions
This file was deleted.

clients/js/src/generated/programs/stake.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
type ParsedMergeInstruction,
2727
type ParsedMoveLamportsInstruction,
2828
type ParsedMoveStakeInstruction,
29-
type ParsedRedelegateInstruction,
3029
type ParsedSetLockupCheckedInstruction,
3130
type ParsedSetLockupInstruction,
3231
type ParsedSplitInstruction,
@@ -56,7 +55,6 @@ export enum StakeInstruction {
5655
SetLockupChecked,
5756
GetMinimumDelegation,
5857
DeactivateDelinquent,
59-
Redelegate,
6058
MoveStake,
6159
MoveLamports,
6260
}
@@ -110,9 +108,6 @@ export function identifyStakeInstruction(
110108
if (containsBytes(data, getU32Encoder().encode(14), 0)) {
111109
return StakeInstruction.DeactivateDelinquent;
112110
}
113-
if (containsBytes(data, getU32Encoder().encode(15), 0)) {
114-
return StakeInstruction.Redelegate;
115-
}
116111
if (containsBytes(data, getU32Encoder().encode(16), 0)) {
117112
return StakeInstruction.MoveStake;
118113
}
@@ -172,9 +167,6 @@ export type ParsedStakeInstruction<
172167
| ({
173168
instructionType: StakeInstruction.DeactivateDelinquent;
174169
} & ParsedDeactivateDelinquentInstruction<TProgram>)
175-
| ({
176-
instructionType: StakeInstruction.Redelegate;
177-
} & ParsedRedelegateInstruction<TProgram>)
178170
| ({
179171
instructionType: StakeInstruction.MoveStake;
180172
} & ParsedMoveStakeInstruction<TProgram>)

clients/rust/src/generated/instructions/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ pub(crate) mod r#initialize_checked;
1818
pub(crate) mod r#merge;
1919
pub(crate) mod r#move_lamports;
2020
pub(crate) mod r#move_stake;
21-
pub(crate) mod r#redelegate;
2221
pub(crate) mod r#set_lockup;
2322
pub(crate) mod r#set_lockup_checked;
2423
pub(crate) mod r#split;
@@ -28,6 +27,6 @@ pub use self::{
2827
r#authorize::*, r#authorize_checked::*, r#authorize_checked_with_seed::*,
2928
r#authorize_with_seed::*, r#deactivate::*, r#deactivate_delinquent::*, r#delegate_stake::*,
3029
r#get_minimum_delegation::*, r#initialize::*, r#initialize_checked::*, r#merge::*,
31-
r#move_lamports::*, r#move_stake::*, r#redelegate::*, r#set_lockup::*, r#set_lockup_checked::*,
32-
r#split::*, r#withdraw::*,
30+
r#move_lamports::*, r#move_stake::*, r#set_lockup::*, r#set_lockup_checked::*, r#split::*,
31+
r#withdraw::*,
3332
};

clients/rust/src/generated/instructions/redelegate.rs

Lines changed: 0 additions & 241 deletions
This file was deleted.

0 commit comments

Comments
 (0)