coral-xyz / anchor

⚓ Solana Sealevel Framework
https://anchor-lang.com
Apache License 2.0
3.36k stars 1.25k forks source link

idl: Add ability to convert legacy IDLs #2986

Closed acheroncrypto closed 1 month ago

acheroncrypto commented 1 month ago

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: https://github.com/coral-xyz/anchor/issues/2972

vercel[bot] commented 1 month ago

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

A member of the Team first needs to authorize it.