Upgrade from system_instruction to solana_system_interface#3045
Merged
juan-malbeclabs merged 3 commits intomainfrom Feb 19, 2026
Merged
Upgrade from system_instruction to solana_system_interface#3045juan-malbeclabs merged 3 commits intomainfrom
juan-malbeclabs merged 3 commits intomainfrom
Conversation
af2d7da to
c2e9733
Compare
elitegreg
approved these changes
Feb 19, 2026
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.
This pull request refactors the smart contract codebase to consistently use the
solana-system-interfacecrate for system instructions instead of directly usingsystem_instructionfromsolana_programorsolana_sdk. The changes improve modularity and future compatibility by centralizing system instruction usage. Updates span across program logic, test helpers, and Cargo manifests for multiple smart contract programs.Dependency updates:
solana-system-interfaceas a dependency in severalCargo.tomlfiles (common,doublezero-record,doublezero-serviceability,doublezero-telemetry) to enable its use throughout the codebase. [1] [2] [3] [4]Refactoring system instruction usage in program logic:
system_instructionfunctions (such ascreate_account,allocate,assign,transfer) with their equivalents fromsolana_system_interface::instructionin account creation, resizing, and transfer logic increate_account.rs,resize_account.rs, and processor modules fordoublezero-serviceability. [1] [2] [3] [4] [5] [6] [7]Refactoring system instruction usage in tests and helpers:
doublezero-record,doublezero-serviceability,doublezero-telemetry, and SDK to usesolana_system_interface::instructionfor account creation and transfer instructions, improving test consistency and modularity. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]Miscellaneous cleanup:
system_instructionandsystem_program, and updated account closing logic to referencesolana_system_interface::program::IDinstead ofsystem_program::IDfor improved consistency. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]These changes collectively modernize and unify system instruction handling across the codebase, making it easier to maintain and update.