Skip to content

Add IdlBuild trait#2629

Merged
acheroncrypto merged 2 commits into
otter-sec:masterfrom
acheroncrypto:add-idl-build-trait
Sep 15, 2023
Merged

Add IdlBuild trait#2629
acheroncrypto merged 2 commits into
otter-sec:masterfrom
acheroncrypto:add-idl-build-trait

Conversation

@acheroncrypto

Copy link
Copy Markdown
Collaborator

Problem

It's currently not possible to use the IDL build feature with anchor-spl accounts. This is because the required IDL build methods are derived with #[derive(AnchorSerialize)] proc macro but it doesn't apply to the wrapped types of anchor-spl.

Summary of Changes

  • Add IdlBuild trait that has a default implementation for each method.
  • Add idl-build feature to anchor-spl.
  • Implement the IdlBuild trait for each anchor-spl account.
  • Add token and token_interface accounts to IDL tests.

@vercel

vercel Bot commented Sep 15, 2023

Copy link
Copy Markdown

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto added spl lang idl related to the IDL, either program or client side labels Sep 15, 2023
@acheroncrypto acheroncrypto merged commit b5f4796 into otter-sec:master Sep 15, 2023
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

idl related to the IDL, either program or client side lang spl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant