Skip to content

Tip-Router Service Refactor - #250

Open
hash-envy wants to merge 15 commits into
masterfrom
jm/breakout-stake-types
Open

hash-envy wants to merge 15 commits into
masterfrom
jm/breakout-stake-types

Conversation

@hash-envy

@hash-envy hash-envy commented Jul 21, 2026

Copy link
Copy Markdown
Contributor
  • Supports the new jito-solana/jito-tip-router-snapshot-serviceflag and uses a file-watcher to wait for stake-meta generation instead of creating it via snapshot.

  • Additionally, rips out the stake-meta types into their own package

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 factors the stake-meta JSON output types out of meta_merkle_tree into a new lightweight crate (jito-stake-meta-types) so other services can consume the output schema without pulling in the heavier merkle-tree/restaking dependency graph.

Changes:

  • Added new stake_meta_types crate containing StakeMetaCollection and related serde types + pubkey string (de)serialization helper.
  • Updated meta_merkle_tree to re-export these types from generated_merkle_tree.rs to keep a single consumer-facing source.
  • Wired the new crate into the workspace (Cargo.toml) and updated dependencies/lockfile accordingly.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
stake_meta_types/src/lib.rs Introduces the extracted output types and JSON file helpers (load/write) plus pubkey string serde module.
stake_meta_types/Cargo.toml Defines the new crate package metadata and minimal dependencies.
meta_merkle_tree/src/generated_merkle_tree.rs Removes in-file type definitions and re-exports jito_stake_meta_types equivalents for existing consumers.
meta_merkle_tree/Cargo.toml Adds dependency on jito-stake-meta-types.
Cargo.toml Adds the new crate to workspace members and workspace dependencies.
Cargo.lock Records the new package and dependency graph updates.

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

Comment thread stake_meta_types/src/lib.rs
Comment thread stake_meta_types/src/lib.rs
Comment thread stake_meta_types/src/lib.rs
@hash-envy hash-envy changed the title refactor(stake-meta): extract output types into lightweight crate Tip-Router Service Refactor Aug 3, 2026
@hash-envy
hash-envy marked this pull request as ready for review August 17, 2026 19:23
@hash-envy hash-envy mentioned this pull request Aug 17, 2026
@hash-envy

Copy link
Copy Markdown
Contributor Author

NOTE: Should NOT be merged in until jito-solana counterpart service is merged in

ebatsell
ebatsell previously approved these changes Sep 2, 2026
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