Skip to content

✨ Add support for newer IDL standard#6

Merged
GabrielePicco merged 2 commits intomasterfrom
feat/support-new-idl-standard
May 6, 2024
Merged

✨ Add support for newer IDL standard#6
GabrielePicco merged 2 commits intomasterfrom
feat/support-new-idl-standard

Conversation

@GabrielePicco
Copy link
Copy Markdown
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: solana-foundation/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
@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