Skip to content

Use InstructionView from Solana SDK #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: febo/solana-account-view
Choose a base branch
from

Conversation

febo
Copy link
Collaborator

@febo febo commented Apr 7, 2025

Problem

Currently, pinocchio defines its own (zero-copy) Instruction and AccountMeta structs. The name clash makes it confusing to write code that interacts with both Solana SDK and pinocchio.

Solution

Use the types from the new solana-instruction-view crate in Solana SDK instead. While this is a breaking change since the type has a different name, it has the same characteristics of the current types, so there is no loss of efficiency.

Note that this change removes the need of having the instruction related code in the main pinocchio crate – instead, client code can import solana-instruction-view directly to use the types.

@febo febo added the breaking PR contains breaking changes label Apr 7, 2025
@febo febo force-pushed the febo/solana-instruction-view branch from c3e49e7 to ffa484b Compare April 8, 2025 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking PR contains breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant