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

WEN Rust SDK #54

Closed
kespinola opened this issue Apr 15, 2024 · 6 comments · Fixed by #86
Closed

WEN Rust SDK #54

kespinola opened this issue Apr 15, 2024 · 6 comments · Fixed by #86
Assignees
Labels
enhancement New feature or request

Comments

@kespinola
Copy link
Contributor

kespinola commented Apr 15, 2024

Goal

Provide developers a rust SDK that provides a intuitive DX for building WNS and Token Extension instructions.

Requirements

  • Developers should be able to bundle instructions into transaction.
  • The SDK should have a nearly automatic release flow based on github actions.
  • The SDK should be well tested so developers can update the sdk confidently.
  • Autogenerate components of the SDK as much as possible.
@kespinola
Copy link
Contributor Author

Look into kinobi to generate the based sdk for instruction assembly. We may run into issues with the updated idl standard released in 0.30.0 of anchor. I would like to update the project if supported by this team.

https://github.com/metaplex-foundation/kinobi

@balmy-gazebo
Copy link
Contributor

Update Kinobi to work with Anchor 0.30.0? Overall very much support getting a better client out. I think the other thing in this vein that might be useful is providing a non-Anchor interface for the contract so composing programs can interact without requiring Anchor

@balmy-gazebo
Copy link
Contributor

Not sure if that falls into the same bucket or if thats new tooling all together

@kespinola
Copy link
Contributor Author

non-Anchor interface for the contract so composing programs can interact without requiring Anchor

This is actually more of what I'm targeting for the SDK. It should help put together instructions for use in rust backend services or in a program and not have a dependency on anchor just solana.

For anchor project I want to have a doc showing how to use declare_program. And maybe the wen cli downloads the idl and lands in the expected directory.

https://docs.rs/anchor-lang/latest/anchor_lang/macro.declare_program.html

@kespinola
Copy link
Contributor Author

Can use cargo features to add "rpc" which includes extras to fetch data.

@kespinola
Copy link
Contributor Author

codama-idl/codama#15

Kinobi is getting a new version and migrated to its own org. This PR will be adding anchor 0.30.0 IDL support.

@kespinola kespinola self-assigned this May 7, 2024
@kespinola kespinola added the enhancement New feature or request label May 7, 2024
@kespinola kespinola linked a pull request May 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants