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 support for newer IDL standard #6

Merged
merged 2 commits into from
May 6, 2024

Conversation

GabrielePicco
Copy link
Collaborator

@GabrielePicco GabrielePicco commented May 6, 2024

Add support for the new IDL standard

Status Type ⚠️ Core Change Issue
Ready Feature Yes -

Problem

The IDL generator was incompatible with the new specification defined in Anchor 0.30.0: coral-xyz/anchor#2824

Solution

  • Add parsing support for the newer standard
  • Add support for custom account/instruction discriminators, addresses and additional fields
  • The parser can now work with both specification, producing valid C# code

Consideration

Not all the features of the new IDL standard are currently supported, e.g. serialization/deserialization different from Borsh. This requires a bigger rewrite/update of the generator tool

@GabrielePicco GabrielePicco merged commit ffa2b9f into master May 6, 2024
1 check passed
@GabrielePicco GabrielePicco deleted the feat/support-new-idl-standard branch May 6, 2024 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant