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

Rust Program API #10

Open
alecchendev opened this issue Mar 7, 2022 · 0 comments
Open

Rust Program API #10

alecchendev opened this issue Mar 7, 2022 · 0 comments
Labels
broad Higher level objective, should be split into atomic tasks

Comments

@alecchendev
Copy link
Member

alecchendev commented Mar 7, 2022

  • Similar to Typescript API #9 but for on-chain programs (and in Rust)
  • Should make it easy to use CPIs for other on-chain programs to interface with our protocol
  • Will involve publishing our program + api as a crate

Note for implementing: SPL libraries are a great resource as always! The token program does exactly what we're looking to do - link to their instructions + wrappers: https://docs.rs/spl-token/latest/src/spl_token/instruction.rs.html#1-1522

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
broad Higher level objective, should be split into atomic tasks
Projects
None yet
Development

No branches or pull requests

1 participant