CORE 1557: Implement svm contract for on chain quotes#28
Open
bengtlofgren wants to merge 22 commits intomainfrom
Open
CORE 1557: Implement svm contract for on chain quotes#28bengtlofgren wants to merge 22 commits intomainfrom
bengtlofgren wants to merge 22 commits intomainfrom
Conversation
bengtlofgren
commented
Dec 3, 2025
Contributor
Author
|
Running I also switched to the |
Contributor
Author
|
Compute Units Comparison
Binary Size Comparison
|
evan-gray
reviewed
Dec 4, 2025
f7cce52 to
869d2b0
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
442b5c9 to
369c2fd
Compare
Contributor
Author
|
Current benchmarks: executor-quoter:
executor-quoter-router:
|
89cae71 to
e5eb2eb
Compare
…at wasn't needed)
34ff902 to
4cebd06
Compare
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.
Core-1557 ++
Note
Svm implementation of
ExecutorQuoter- specifically theestimate_quotepart. It borrows u256 math from orca's implementation, which is reportedly 5x cheaper than parity's implementation (used in many projects under various crate names).Description
This PR implements the SVM (Solana) on-chain quoting functionality for the Executor system. It introduces ExecutorQuoter and ExecutorQuoterRouter programs using Pinocchio for minimal compute unit overhead, enabling integrators to obtain quotes and request executions entirely on-chain without requiring off-chain quote fetching.
Major Changes
SVM Implementation (Pinocchio)
no_stdimplementation for minimal compute unit usageChainInfoandQuoteBodyUpdateChainInfo,UpdateQuote,RequestQuote,RequestExecutionQuoteUpdateQuoterContract: Registers quoters via secp256k1 signature verificationQuoteExecution: CPI-based quote retrievalRequestExecution: Full execution flow with payment verificationtests/executor-quoters.test.tsProject Structure Changes
svm/anchor/svm/pinocchio/directory for low-level Solana programssvm/modules/executor-requests/for shared request serialization logicDocumentation
design/02_On_Chain_Quotes.mdwith SVM implementation detailsFiles Modified
SVM Programs
svm/pinocchio/programs/executor-quoter/- Quoter program (lib.rs, state.rs, error.rs, math/, instructions/)svm/pinocchio/programs/executor-quoter-router/- Router program (lib.rs, state.rs, error.rs, instructions/)** SVM Tests**
svm/pinocchio/tests/executor-quoter-tests/- Integration tests and benchmarkssvm/pinocchio/tests/executor-quoter-router-tests/- Integration tests and benchmarks** Shared Module**
svm/modules/executor-requests/- Shared serialization moduleSVM Configuration
svm/anchor/Anchor.toml- Moved from root svm/svm/anchor/Cargo.toml- Moved from root svm/svm/pinocchio/Cargo.toml- New workspace configurationsvm/pinocchio/README.md- Documentation for Pinocchio programssvm/tests/executor-quoters.test.ts- TypeScript devnet testsCI/Configuration
.github/workflows/svm.yml- Updated for new directory structure, added Pinocchio test job.gitignore- Added SVM build artifacts.prettierignore- Added SVM pathscspell.json- Updated dictionary path.cspell/custom-dictionary.txt- Added new termssvm/rust-toolchain.toml- Updated Rust toolchain versionAdditional Notes
Todo list before opening up for review
svm/TODO.md