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

Gill to work with IDL from Anchor (via Codama) #41

Open
AuroraLantean opened this issue Feb 20, 2025 · 3 comments
Open

Gill to work with IDL from Anchor (via Codama) #41

AuroraLantean opened this issue Feb 20, 2025 · 3 comments

Comments

@AuroraLantean
Copy link

AuroraLantean commented Feb 20, 2025

Hi Nick, I know Gill is built on top of Solana web3.js V2,

but could you make Gill to work with IDL from Anchor v0.30.1 ( which uses Solana web3.js v1.xx) via Codama ?

I notices in the Readme you mentioned Codama for generating a compatible JavaScript/TypeScript client from IDL.

Could you make a little example on how to do this? Thank you!

@nickfrosty
Copy link
Collaborator

All of this exact thing is covered in the Codama readme: taking an anchor idl and generating a web3js v2 compatible client using codama

@nickfrosty
Copy link
Collaborator

I guess we could add a simple example project that shows it explicitly in this repo too though 🤔

@AuroraLantean
Copy link
Author

AuroraLantean commented Feb 21, 2025

it is complicated to setup tests:
Anchor test using Solana Web3.js 2.0 client with Codama: https://www.quicknode.com/guides/solana-development/tooling/web3-2/program-clients

https://github.com/codama-idl/codama/tree/main/packages/renderers-js

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

No branches or pull requests

2 participants