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

Extract client-traits crate #3829

Merged
merged 3 commits into from
Dec 5, 2024

Conversation

kevinheavey
Copy link

@kevinheavey kevinheavey commented Nov 28, 2024

Problem

solana_sdk::client imposes a solana_sdk dep on solana_rpc_client

Summary of Changes

Move to its own crate and re-export with deprecation

This branches off #3634 so that needs to be merged first (update: done)

Copy link

mergify bot commented Nov 28, 2024

If this PR represents a change to the public RPC API:

  1. Make sure it includes a complementary update to rpc-client/ (example)
  2. Open a follow-up PR to update the JavaScript client @solana/web3.js (example)

Thank you for keeping the RPC clients in sync with the server API @kevinheavey.

@kevinheavey kevinheavey force-pushed the extract-client-traits branch from 4d59e85 to 5441a7f Compare November 29, 2024 10:50
@kevinheavey kevinheavey force-pushed the extract-client-traits branch from 5441a7f to cd8936c Compare December 4, 2024 09:31
@kevinheavey kevinheavey marked this pull request as ready for review December 4, 2024 09:31
@kevinheavey kevinheavey requested a review from joncinque December 4, 2024 09:57
Copy link

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

@yihau can you accept ownership of solana-client-traits? This is very close

solana_hash::Hash,
solana_instruction::Instruction,
solana_keypair::Keypair,
solana_program::{message::Message, system_instruction::transfer},

Choose a reason for hiding this comment

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

Let's use solana_message and solana_system_interface to remove the solana-program dependency

solana-hash = { workspace = true }
solana-instruction = { workspace = true }
solana-keypair = { workspace = true }
solana-program = { workspace = true }

Choose a reason for hiding this comment

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

Same here: solana-message / solana-system-interface instead

@kevinheavey kevinheavey force-pushed the extract-client-traits branch from 65f0ce5 to 33931bb Compare December 5, 2024 12:07
@yihau yihau added the automerge automerge Merge this Pull Request automatically once CI passes label Dec 5, 2024
@mergify mergify bot merged commit 6cfb1af into anza-xyz:master Dec 5, 2024
53 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 need:merge-assist
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants