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

idl: Add ability to convert legacy IDLs #2986

Conversation

acheroncrypto
Copy link
Collaborator

@acheroncrypto acheroncrypto commented May 25, 2024

Problem

There are a lot of projects that haven't yet upgraded to use the new IDL spec, which also means they can't be used in the new declare_program! macro.

Summary of changes

Add ability to convert legacy IDLs to the new IDLs.

The conversion is not perfect, as the new IDL stores much more information than the legacy ones. Thus, projects should preferably aim to generate new IDLs by upgrading their Anchor version rather than this method to get the full benefits of the new IDL spec.

Related: #2972

Copy link

vercel bot commented May 25, 2024

@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 enhancement New feature or request next Required for the next release idl related to the IDL, either program or client side labels May 25, 2024
@acheroncrypto acheroncrypto merged commit c614f10 into coral-xyz:master May 25, 2024
48 of 49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request idl related to the IDL, either program or client side next Required for the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant