Skip to content

idl: Add ability to convert legacy IDLs#2986

Merged
acheroncrypto merged 2 commits into
otter-sec:masterfrom
acheroncrypto:idl-add-ability-to-convert-legacy-idls
May 25, 2024
Merged

idl: Add ability to convert legacy IDLs#2986
acheroncrypto merged 2 commits into
otter-sec:masterfrom
acheroncrypto:idl-add-ability-to-convert-legacy-idls

Conversation

@acheroncrypto

@acheroncrypto acheroncrypto commented May 25, 2024

Copy link
Copy Markdown
Collaborator

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

@vercel

vercel Bot commented May 25, 2024

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 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 otter-sec:master May 25, 2024
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

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