feat: add compatibility for 0.29 and 0.30 versions#31
Open
dimatima13 wants to merge 7 commits intogagliardetto:mainfrom
Open
feat: add compatibility for 0.29 and 0.30 versions#31dimatima13 wants to merge 7 commits intogagliardetto:mainfrom
dimatima13 wants to merge 7 commits intogagliardetto:mainfrom
Conversation
This commit introduces several improvements: - Added support for IDL version 0.30 with a new flag `-idl-version` - Implemented `getPkgName()` function to handle package naming more robustly - Updated generator to work with different IDL versions - Added support for new IDL type `pubkey` - Improved handling of program addresses and discriminators - Updated dependencies in go.mod and go.sum
This commit enhances the type generation process for IDL types and accounts by: - Creating a map to track defined types - Generating suffixed type names for types and accounts - Adding a preliminary check for IDL version compatibility - Modifying the type definition generation to support more complex type scenarios
This commit makes two minor changes: - Adds `.vscode` and `anchor-go` to `.gitignore` - Removes panic for non-Anchor IDLs and adds type definition generation for such cases
Streamlines the generation of instruction discriminators by: - Switching from `Const()` to `Var()` declaration - Removing redundant comment - Simplifying byte array generation for instruction discriminators - Maintaining fallback to iota for instructions without discriminators
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For now we can use 0.29 IDL and 0.30 IDL with the feature flag