Skip to content

Conversation

@aoikurokawa
Copy link
Collaborator

@aoikurokawa aoikurokawa commented Nov 15, 2025

API

  • Add new fields to endpoints validators, jitosol_validators
    • jito_directed_stake_target
    • jito_directed_stake_lamports

Writer Service

  • Dump data from the account DicrectedStakeMeta
    • jito_directed_stake_target
    • jito_directed_stake_lamports

https://github.com/jito-foundation/stakenet/blob/9e56c14b7384954be812f9495e41fe54fe5aa026/programs/steward/src/state/directed_stake.rs#L117

@aoikurokawa aoikurokawa marked this pull request as ready for review November 15, 2025 21:51
@aoikurokawa aoikurokawa requested a review from Copilot November 15, 2025 21:52
Copilot finished reviewing on behalf of aoikurokawa November 15, 2025 21:53
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for Jito directed stake target tracking by introducing a new jito_directed_stake_target boolean field to validator data across the API, database, and writer service.

Key changes:

  • Adds jito_directed_stake_target field to validator endpoints and database models
  • Fetches directed stake metadata from the Steward program using the updated stakenet SDK
  • Updates the writer service to accept and use a steward config pubkey parameter

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
api/src/schemas/validator.rs Adds jito_directed_stake_target field to ValidatorEntry schema
api/src/resolvers/query_resolver.rs Maps new field in validators and jitosol_validators query responses
core/src/db_models/validators.rs Adds jito_directed_stake_target to Validator model and initialization
core/src/fetcher.rs Fetches directed stake metadata and determines target validators, changes RPC client to Arc
writer-service/src/main.rs Adds CLI argument for steward config pubkey
writer-service/src/lib.rs Passes steward config to StakePoolManager
writer-service/src/stake_pool_manager.rs Stores steward config and wraps RPC client in Arc
Cargo.toml Updates stakenet dependencies to rev 6d35e58
Cargo.lock Updates dependency lockfile with new stakenet revision
README.md Updates example command with steward config parameter

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Collaborator

@ebatsell ebatsell left a comment

Choose a reason for hiding this comment

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

LGTM

we'll need to wait to deploy this unless we refactor the get_directed_stake_meta to keep making progress if the account is not found

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.

3 participants