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

[Suggestion]: Add anchor-gen and support it. #3316

Closed
SushantChandla opened this issue Oct 17, 2024 · 2 comments
Closed

[Suggestion]: Add anchor-gen and support it. #3316

SushantChandla opened this issue Oct 17, 2024 · 2 comments

Comments

@SushantChandla
Copy link

One common issue I’ve noticed when building on Solana is the frequent version compatibility problems. For instance, if I have an AMM and want to integrate some of Raydium’s code into my program, I often need to downgrade to the Solana and Anchor versions that Raydium uses. This makes Cross-Program Invocation (CPI) very challenging.

I discovered that the anchor-gen package by Saber HQ can help solve this issue. It allows users to generate a client for CPI that matches the specific Solana and Anchor versions they're using. I believe this feature would be a great addition to the official Anchor repository, and Anchor should manage it going forward.

In its current state, the anchor-gen project doesn’t fully support the latest Anchor versions, but I think integrating this functionality into Anchor would be a great move for the ecosystem.

@SushantChandla SushantChandla changed the title Add anchor-gen and support it. [Suggestion]: Add anchor-gen and support it. Oct 17, 2024
@SushantChandla
Copy link
Author

A similar project from anchor to generate anchor clients for cpi and account deserialization is what I am looking for.

@acheroncrypto
Copy link
Collaborator

Anchor supports this feature natively since v0.30, see:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants