feat(tx): add typed Jito transport — fuzzed submit coverage#34
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR adds typed Jito transport support to
sof-tx, adds standalone fuzz coverage for the major submit and routing paths, and updates the docs so SOF is described as low-latency market infrastructure rather than a generic observer framework.It matters because Jito is now a first-class submit path alongside RPC/direct/hybrid, the configuration surface is typed and documented with defaults, and the new fuzz package gives
sof-txthe same kind of sustained hot-path validation the observer side already had.Changes
crates/sof-tx/src/submit/jito.rs,crates/sof-tx/src/submit/types.rs, andcrates/sof-tx/src/submit/client.rs: typed Jito transport/config surface with a default mainnet endpoint, typed auth token/endpoint types, and client wiring forJitoOnlysubmit mode.crates/sof-tx/src/builder.rs: add explicit reset helpers for compute-unit-limit and priority-fee instructions so callers can toggle those knobs without rebuilding the builder from scratch.crates/sof-tx/fuzz/*: add a standalonesof-txfuzz package with one target per hot path:submit_jito_mode,submit_rpc_only,submit_direct_only,submit_hybrid,routing_select_targets,signature_deduper, andtx_builder_toggles.README.md,crates/sof-observer/README.md,crates/sof-tx/README.md, anddocs/README.md: update the framing and docs copy to position SOF as low-latency market/financial infrastructure and document Jito defaults/configuration more explicitly.For slice-related changes:
sof-txsubmit/routing/builder plus top-level crate/docs surfaces.sof-txand documentation layers.Motivation
Business motivation:
Technical motivation:
sof-txhot paths, not just observer-side fuzzing.Alternative approaches considered:
Scope and impact
sof-txsubmit, routing, and builder surfaces; top-level docs.JitoOnlytransport/config API and additive builder reset helpers.Testing
Commands/results:
All of the above passed. The 5-minute fuzz runs completed without surfacing crashes.
Related issues and documentation
docs/architecture/README.mddocs/architecture/adr/0004-static-dispatch-and-performance-layout.md,docs/architecture/adr/0006-transaction-sdk-and-dual-submit-routing.mdReviewer checklist
docs/architecture/ard/0003-slice-dependency-contracts.md)Additional notes