-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use only the client crate for solana-account-decoder
#4
Comments
Discussion also continued a bit here #1 (comment), where the main point is determining how the necessary functions land in the client. From @kevinheavey 's list:
|
Sorry for all of the jumping around @kevinheavey, but I wanted to have a designated place to continue this discussion. If we hoist the instruction builders out of the program crate and into the client, @lorisleiva how feasible is it to support |
One solution is to not autogenerate the Rust client. You already have all the client code anyone needs in the Agave repo and it just needs to be cut and pasted here |
Hey @buffalojoec, it shouldn't be too difficult tbh. On the spec side, I just need to add the |
Problem
As reported in anza-xyz/agave#265, the entire config program doesn't need to be used in
solana-account-decoder
.In the linked PR, one of the main issues with this dependency relationship is the implicit dependency of
solana-account-decoder
onsolana-program-runtime
. This is no longer the case since this program is now BPF.However, it's a very opportune time to end the pattern of using full program crates as APIs, and instead use their client crates.
cc @kevinheavey
The text was updated successfully, but these errors were encountered: