Repository navigation
feat(svm): align toolchain with solana-v5 and remove event PDA searches - #1577
Draft
Reinis-FRP wants to merge 4 commits into
Draft
Reinis-FRP wants to merge 4 commits into
Reinis-FRP wants to merge 4 commits into
Conversation
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
Reinis-FRP
force-pushed
the
reinis/svm-toolchain-alignment
branch
from
October 7, 2026 13:26
08342c9 to
0807ddc
Compare
Signed-off-by: Reinis Martinsons <reinis@umaproject.org>
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.
The SVM workspace still used Anchor 0.31.1, including two runtime event-authority PDA searches per emitted CPI event. This upgrades all workspace programs and their tooling to the
solana-v5toolchain before the contracts audit, so the later repository migration can retain the reviewed compiler/dependency recipe.Stacked on #1568 (
reinis/svm-cu-benchmarks). Addresses #1571 through the framework upgrade; this is broader than a local event-CPI backport.solana-v5's digest-pinned Agave 4.0.3 / platform-tools 1.53 / arch v0 image and verifier 0.5.1. Cargo dependencies, enabled features and release profiles were compared against a prospective Spoke import into the destination workspace; all 149 resolved SBF dependency nodes match.@anchor-lang/core; use reviewed Circle V2 IDL snapshots. Restore canonical event-authority PDA metadata omitted by Anchor 1.1 so typed account resolution and Codama async builders retain their existing behavior. Update CI installation, build/cache inputs, locked builds and documentation.The development validator and release compiler are separate pins. No
solana-v5compiler upgrade or program deployment is part of this PR. Include this framework/compiler/dependency diff in the upcoming audit scope; a later repository move still needs matching executable hashes from the final migration checkout. Upgrading Sponsored CCTP and multicall source does not require redeploying those retiring programs.Validation:
dc69f1ddf8e6c16b7bebd14a83d6a2dbc7e61420830684083a81692a4f4d3fda.Three complete CU runs reproduce all 25 measurements, program binary/IDL hashes and runtime hashes exactly. All 15 V5 inner event self-CPIs fall from 5,119 to 520 CU. Relative to the same-runtime pre-upgrade base, each fixture saves:
Both generated runtime PDA searches are replaced by Anchor's compile-time event-authority constant. The measured inner-call saving is 4,599 CU; total execution savings also include other framework/compiler changes. Legacy and Gateway binaries, fixture inputs, upload policy and runtime/token-program hashes are unchanged. The reviewed snapshot and interpretation are in
test/svm-gateway/cu/baseline.jsonand its README. These are test-feature local-validator measurements, not mainnet production budgets.Raw before/after receipts and build logs are retained locally under
target/cu-toolchain-before,target/cu-toolchain-after-1,target/cu-toolchain-after-2andtarget/cu-toolchain-after-3.Sent from Reinis Martinsons's Codex CLI Agent using gpt-6-astra 🤖