Skip to content

feat(sdk-coin-sol): implement staking activate for jito #6502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

haritkapadia
Copy link

@haritkapadia haritkapadia commented Jul 21, 2025

Description

This PR updates StakingActivate to support Solana staking with JitoSOL tokens. To do so, it adds support for the depositSol solana/spl-stake-pool instruction.

Issue Number

TICKET: SC-2314

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

A new unit test to build the transaction has been added to modules/sdk-coin-sol/test/unit/transactionBuilder/stakingActivateBuilder.ts.

An example script has been added to examples/ts/sol/jito-stake.ts. Here is a transaction produced by running the example script.

@haritkapadia haritkapadia marked this pull request as ready for review July 21, 2025 23:28
@haritkapadia haritkapadia requested a review from a team as a code owner July 21, 2025 23:28
@haritkapadia haritkapadia marked this pull request as draft July 25, 2025 21:25
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we don't even have an _isTestnet flag and the parameters that depend on the flag (JITO reserve stake account address and manager fee address) can be set using coin information or token information.

* @param {TransactionInstruction} instruction
* @returns {DepositSolParams}
*/
export function decodeDepositSol(instruction: TransactionInstruction): DepositSolParams {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@haritkapadia haritkapadia marked this pull request as ready for review July 25, 2025 22:44
@haritkapadia haritkapadia requested review from a team as code owners July 25, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant