Skip to content

Commit

Permalink
Merge pull request #5 from AdrenaFoundation/misc/updated-claim-stake
Browse files Browse the repository at this point in the history
Update ABI to accommodate the change made to claim stake
  • Loading branch information
Adrena-Corto authored Nov 18, 2024
2 parents 015fd74 + a088067 commit b3fb19d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ mod adrena_abi {
Ok(())
}

pub(crate) fn claim_stakes(cx: Context<ClaimStakes>) -> Result<()> {
pub fn claim_stakes(ctx: Context<ClaimStakes>, params: ClaimStakesParams) -> Result<()> {
Ok(())
}

Expand Down
5 changes: 5 additions & 0 deletions src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ pub struct FinalizeLockedStakeParams {
pub early_exit: bool,
}

#[derive(AnchorSerialize, AnchorDeserialize, Clone)]
pub struct ClaimStakesParams {
pub locked_stake_indexes: Option<Vec<u8>>,
}

#[derive(AnchorSerialize, AnchorDeserialize, Clone, Copy, Debug, Default, Pod, Zeroable)]
#[repr(C)]
pub struct LimitedString {
Expand Down

0 comments on commit b3fb19d

Please sign in to comment.