Skip to content

interface: Add new instructions - #153

Merged
febo merged 3 commits into
mainfrom
febo/p-token-instructions
May 20, 2026
Merged

interface: Add new instructions#153
febo merged 3 commits into
mainfrom
febo/p-token-instructions

Conversation

@febo

@febofebo commented May 19, 2026

Copy link
Copy Markdown
Contributor

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
ContributorAuthor

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 joncinqueMay 19, 2026 20:31
Comment threadinterface/src/instruction.rs
@febofebo mentioned this pull request May 20, 2026

@joncinquejoncinque left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks great! Just a small nit on my side

Comment threadinterface/src/instruction.rs Outdated
@febo
febo requested a review from joncinqueMay 20, 2026 09:37
@febo
febo merged commit f62a0b0 into mainMay 20, 2026
29 checks passed
@febo
febo deleted the febo/p-token-instructions branch May 20, 2026 10:08
Sign up for freeto 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.

4 participants

@febo@joncinque@0jovi0@tokensolpi