Skip to content

Upgrade from system_instruction to solana_system_interface#3045

Merged
juan-malbeclabs merged 3 commits intomainfrom
jo/3038
Feb 19, 2026
Merged

Upgrade from system_instruction to solana_system_interface#3045
juan-malbeclabs merged 3 commits intomainfrom
jo/3038

Conversation

@juan-malbeclabs
Copy link
Contributor

This pull request refactors the smart contract codebase to consistently use the solana-system-interface crate for system instructions instead of directly using system_instruction from solana_program or solana_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:

  • Added solana-system-interface as a dependency in several Cargo.toml files (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:

  • Replaced calls to system_instruction functions (such as create_account, allocate, assign, transfer) with their equivalents from solana_system_interface::instruction in account creation, resizing, and transfer logic in create_account.rs, resize_account.rs, and processor modules for doublezero-serviceability. [1] [2] [3] [4] [5] [6] [7]

Refactoring system instruction usage in tests and helpers:

  • Updated test and helper files in doublezero-record, doublezero-serviceability, doublezero-telemetry, and SDK to use solana_system_interface::instruction for account creation and transfer instructions, improving test consistency and modularity. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Miscellaneous cleanup:

  • Removed unused imports of system_instruction and system_program, and updated account closing logic to reference solana_system_interface::program::ID instead of system_program::ID for 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.

@juan-malbeclabs juan-malbeclabs changed the title upgrade from system_instruction to solana_system_interface Upgrade from system_instruction to solana_system_interface Feb 19, 2026
@juan-malbeclabs juan-malbeclabs merged commit f05f9f8 into main Feb 19, 2026
30 checks passed
@juan-malbeclabs juan-malbeclabs deleted the jo/3038 branch February 19, 2026 15:00
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.

Fix deprecated Solana SDK usages across smart contracts and SDK

2 participants

Comments