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

remove token-2022 dep from rpc-client-api #941

Merged

Conversation

kevinheavey
Copy link

@kevinheavey kevinheavey commented Apr 20, 2024

Problem

solana-rpc-client-api depends on spl-token-2022 for the allows() method of RpcFilterType. spl-token-2022 is a very heavy dependency and anyway the allows() method is for the RPC server, not the client.

Summary of Changes

  • Copies RpcFilterType::allows to solana-rpc as a free function filter_allows
  • Deprecates RpcFilterType::allows
  • Removes spl-token-2022 dependency from solana-rpc-client-api by using the spl-inline crate instead

@mergify mergify bot requested a review from a team April 20, 2024 10:10
@CriesofCarrots CriesofCarrots added the CI Pull Request is ready to enter CI label Apr 28, 2024
@anza-team anza-team removed the CI Pull Request is ready to enter CI label Apr 28, 2024
CriesofCarrots
CriesofCarrots previously approved these changes Apr 28, 2024
Copy link

@CriesofCarrots CriesofCarrots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@kevinheavey kevinheavey changed the title move RpcFilterType::allows to solana-rpc as filter_allows remove token-2022 dep from rpc-client-api Apr 28, 2024
@CriesofCarrots CriesofCarrots added the CI Pull Request is ready to enter CI label Apr 28, 2024
@anza-team anza-team removed the CI Pull Request is ready to enter CI label Apr 28, 2024
@CriesofCarrots CriesofCarrots added the CI Pull Request is ready to enter CI label Apr 28, 2024
@anza-team anza-team removed the CI Pull Request is ready to enter CI label Apr 28, 2024
@kevinheavey kevinheavey force-pushed the rpc-client-api-remove-token22-dep branch from 9ab4b14 to 6152a3c Compare April 30, 2024 20:50
@buffalojoec buffalojoec added the CI Pull Request is ready to enter CI label Apr 30, 2024
@anza-team anza-team removed the CI Pull Request is ready to enter CI label Apr 30, 2024
buffalojoec
buffalojoec previously approved these changes Apr 30, 2024
@buffalojoec buffalojoec added the automerge automerge Merge this Pull Request automatically once CI passes label Apr 30, 2024
@mergify mergify bot removed the automerge automerge Merge this Pull Request automatically once CI passes label Apr 30, 2024
Copy link

mergify bot commented Apr 30, 2024

automerge label removed due to a CI failure

@CriesofCarrots
Copy link

That test failure looks legitimate, which is why I haven't approved this yet. Can you please take a look @kevinheavey ?

@CriesofCarrots CriesofCarrots added the CI Pull Request is ready to enter CI label May 1, 2024
@anza-team anza-team removed the CI Pull Request is ready to enter CI label May 1, 2024
@CriesofCarrots
Copy link

Incidentally @kevinheavey , if you get tired of waiting on us to add the CI label every time, you could apply for triage contributor access to agave: https://github.com/anza-xyz/contributor-access-policy

@CriesofCarrots CriesofCarrots added the automerge automerge Merge this Pull Request automatically once CI passes label May 1, 2024
@mergify mergify bot merged commit 61a6f36 into anza-xyz:master May 1, 2024
52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge automerge Merge this Pull Request automatically once CI passes community need:merge-assist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants