From 438dd2df6359ee982bebd1e54bb05490878c1608 Mon Sep 17 00:00:00 2001 From: Iamsohungrynow <261225237+Iamsohungrynow@users.noreply.github.com> Date: Sun, 22 Nov 2026 17:07:03 +0800 Subject: [PATCH] interface: Fix the DeactivateDelinquent reference vote account docs --- .../src/generated/instructions/deactivateDelinquent.ts | 4 ++-- .../generated/instructions/deactivate_delinquent.rs | 10 +++++----- idl.json | 2 +- interface-idl.json | 2 +- interface/src/instruction.rs | 4 ++-- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/clients/js/src/generated/instructions/deactivateDelinquent.ts b/clients/js/src/generated/instructions/deactivateDelinquent.ts index ca983fbe..c68edf83 100644 --- a/clients/js/src/generated/instructions/deactivateDelinquent.ts +++ b/clients/js/src/generated/instructions/deactivateDelinquent.ts @@ -93,7 +93,7 @@ export type DeactivateDelinquentInput< stake: TAccountStake; /** Delinquent vote account for the delegated stake account */ delinquentVote: TAccountDelinquentVote; - /** Reference vote account that has voted at least once in the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs */ + /** Reference vote account that has voted in each of the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs */ referenceVote: TAccountReferenceVote; }; @@ -152,7 +152,7 @@ export type ParsedDeactivateDelinquentInstruction< stake: TAccountMetas[0]; /** Delinquent vote account for the delegated stake account */ delinquentVote: TAccountMetas[1]; - /** Reference vote account that has voted at least once in the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs */ + /** Reference vote account that has voted in each of the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs */ referenceVote: TAccountMetas[2]; }; data: DeactivateDelinquentInstructionData; diff --git a/clients/rust/src/generated/instructions/deactivate_delinquent.rs b/clients/rust/src/generated/instructions/deactivate_delinquent.rs index 59044b5a..a63dcdec 100644 --- a/clients/rust/src/generated/instructions/deactivate_delinquent.rs +++ b/clients/rust/src/generated/instructions/deactivate_delinquent.rs @@ -16,7 +16,7 @@ pub struct DeactivateDelinquent { pub stake: solana_address::Address, /// Delinquent vote account for the delegated stake account pub delinquent_vote: solana_address::Address, - /// Reference vote account that has voted at least once in the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs + /// Reference vote account that has voted in each of the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs pub reference_vote: solana_address::Address, } @@ -105,7 +105,7 @@ impl DeactivateDelinquentBuilder { self.delinquent_vote = Some(delinquent_vote); self } - /// Reference vote account that has voted at least once in the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs + /// Reference vote account that has voted in each of the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs #[inline(always)] pub fn reference_vote(&mut self, reference_vote: solana_address::Address) -> &mut Self { self.reference_vote = Some(reference_vote); @@ -144,7 +144,7 @@ pub struct DeactivateDelinquentCpiAccounts<'a, 'b> { pub stake: &'b solana_account_info::AccountInfo<'a>, /// Delinquent vote account for the delegated stake account pub delinquent_vote: &'b solana_account_info::AccountInfo<'a>, - /// Reference vote account that has voted at least once in the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs + /// Reference vote account that has voted in each of the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs pub reference_vote: &'b solana_account_info::AccountInfo<'a>, } @@ -156,7 +156,7 @@ pub struct DeactivateDelinquentCpi<'a, 'b> { pub stake: &'b solana_account_info::AccountInfo<'a>, /// Delinquent vote account for the delegated stake account pub delinquent_vote: &'b solana_account_info::AccountInfo<'a>, - /// Reference vote account that has voted at least once in the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs + /// Reference vote account that has voted in each of the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs pub reference_vote: &'b solana_account_info::AccountInfo<'a>, } @@ -276,7 +276,7 @@ impl<'a, 'b> DeactivateDelinquentCpiBuilder<'a, 'b> { self.instruction.delinquent_vote = Some(delinquent_vote); self } - /// Reference vote account that has voted at least once in the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs + /// Reference vote account that has voted in each of the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs #[inline(always)] pub fn reference_vote( &mut self, diff --git a/idl.json b/idl.json index 1ebcc167..cdbdcd4e 100644 --- a/idl.json +++ b/idl.json @@ -1331,7 +1331,7 @@ "isSigner": false, "isOptional": false, "docs": [ - "Reference vote account that has voted at least once in the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs" + "Reference vote account that has voted in each of the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs" ], "display": { "kind": "instructionAccountDisplayNode", diff --git a/interface-idl.json b/interface-idl.json index 5bafe87c..cef7017a 100644 --- a/interface-idl.json +++ b/interface-idl.json @@ -1163,7 +1163,7 @@ "isWritable": false, "isSigner": false, "docs": [ - "Reference vote account that has voted at least once in the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs" + "Reference vote account that has voted in each of the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs" ], "display": { "kind": "instructionAccountDisplayNode", diff --git a/interface/src/instruction.rs b/interface/src/instruction.rs index cac49ee4..c12b3735 100644 --- a/interface/src/instruction.rs +++ b/interface/src/instruction.rs @@ -550,7 +550,7 @@ pub enum StakeInstruction { /// # Account references /// 0. `[WRITE]` Delegated stake account /// 1. `[]` Delinquent vote account for the delegated stake account - /// 2. `[]` Reference vote account that has voted at least once in the last + /// 2. `[]` Reference vote account that has voted in each of the last /// `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs #[cfg_attr( feature = "codama", @@ -571,7 +571,7 @@ pub enum StakeInstruction { )), codama(account( name = "reference_vote", - docs = "Reference vote account that has voted at least once in the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs", + docs = "Reference vote account that has voted in each of the last `MINIMUM_DELINQUENT_EPOCHS_FOR_DEACTIVATION` epochs", display(label = "Reference Vote Account") )) )]