Skip to content
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

Add IdlBuild trait #2629

Merged
merged 2 commits into from
Sep 15, 2023
Merged

Conversation

acheroncrypto
Copy link
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
Copy link

vercel bot commented Sep 15, 2023

@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 coral-xyz:master Sep 15, 2023
45 checks passed
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