fix: add backward compatibility for older anchor versions in subgraph generation#430
Conversation
… generation Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
MicaiahReid
left a comment
There was a problem hiding this comment.
Nice, thanks @AvhiMaz!
I like the overall logic of this approach. However, I'd like to keep the "anchor-specific" logic in the anchor.rs file. With this approach, we're passing around an anchor_version even though the project might not be using the anchor framework at all.
Additionally, we have this version checking logic for the anchor version in a types mod.
Can we instead have all of the version logic in the anchor.rs file, and have a generate_subgraphs bool be passed around instead? The anchor framework file will parse the version and dictate if subgraphs should be generated, and the external functions only need to check this bool.
…lity Signed-off-by: AvhiMaz <avhimazumder5@outlook.com>
MicaiahReid
left a comment
There was a problem hiding this comment.
That's CLEAN ✨
Thanks @AvhiMaz!
Resolves issue #294 by gracefully handling IDL format incompatibilities with older Anchor versions (< 0.26.0).
Instead of blocking deployment when subgraph IaC generation fails, the system now:
Changes: