From a0880677cedc1f1c3cd3988afbb1dd2afec49dbb Mon Sep 17 00:00:00 2001 From: Corto Date: Sun, 10 Nov 2024 19:51:06 +0800 Subject: [PATCH] Update ABI to accommodate the change made to claim stake --- src/lib.rs | 2 +- src/types.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index aa9c713..6124d14 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -90,7 +90,7 @@ mod adrena_abi { Ok(()) } - pub(crate) fn claim_stakes(cx: Context) -> Result<()> { + pub fn claim_stakes(ctx: Context, params: ClaimStakesParams) -> Result<()> { Ok(()) } diff --git a/src/types.rs b/src/types.rs index 0e3b4a0..fa05ba5 100644 --- a/src/types.rs +++ b/src/types.rs @@ -41,6 +41,11 @@ pub struct FinalizeLockedStakeParams { pub early_exit: bool, } +#[derive(AnchorSerialize, AnchorDeserialize, Clone)] +pub struct ClaimStakesParams { + pub locked_stake_indexes: Option>, +} + #[derive(AnchorSerialize, AnchorDeserialize, Clone, Copy, Debug, Default, Pod, Zeroable)] #[repr(C)] pub struct LimitedString {