Skip to content

interface: Add new instructions#153

Open
febo wants to merge 2 commits into
mainfrom
febo/p-token-instructions
Open

interface: Add new instructions#153
febo wants to merge 2 commits into
mainfrom
febo/p-token-instructions

Conversation

@febo
Copy link
Copy Markdown
Contributor

@febo febo commented May 19, 2026

Problem

p-token introduced 3 new instructions but currently they are not included in the interface crate, so there are no helpers to create an Instruction for them.

Solution

Add the new instruction to the interface.


/// Instructions supported by the token program.
#[repr(C)]
#[repr(C, u8)]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was needed since we are using explicit discriminators.

@febo febo requested a review from joncinque May 19, 2026 20:31
Comment thread interface/src/instruction.rs
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.

2 participants