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

Alternate approach to passing in clients #380

Merged
merged 3 commits into from
Jun 25, 2024
Merged

Conversation

madninja
Copy link
Member

This changes how clients are passed into the public library functions. Rather than specific settings and constructing clients, the new approach is to use AsRef<SolanaRpcClient> and similar to access functions from the given client reference. This allows for reuse of clients.

The PR also removes/limits the use of the anchor_client since it constructs its own clients, isn't very async friendly and the conveniences it offers aren't that valuable in this library

This uses a wrapper Client but specific AsRef declations in each of the public facing functions in the library
@madninja madninja merged commit 4d89cbf into master Jun 25, 2024
4 checks passed
@madninja madninja deleted the madninja/updates-fixups branch June 25, 2024 23:37
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

Successfully merging this pull request may close these issues.

1 participant