diff --git a/Cargo.lock b/Cargo.lock index 0476a2a56556b4..3f732b41c0f745 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8321,6 +8321,7 @@ dependencies = [ "solana-commitment-config", "solana-fee-calculator", "solana-hash", + "solana-keypair", "solana-message", "solana-nonce", "solana-pubkey", @@ -8329,6 +8330,7 @@ dependencies = [ "solana-sdk", "solana-sdk-ids", "solana-sha256-hasher", + "solana-signer", "solana-system-interface", "thiserror 2.0.4", "tokio", diff --git a/rpc-client-nonce-utils/Cargo.toml b/rpc-client-nonce-utils/Cargo.toml index a8331aa1c23bbe..32dbc58128eb09 100644 --- a/rpc-client-nonce-utils/Cargo.toml +++ b/rpc-client-nonce-utils/Cargo.toml @@ -28,9 +28,11 @@ futures = { workspace = true } serde_json = { workspace = true } solana-account-decoder = { workspace = true } solana-fee-calculator = { workspace = true } +solana-keypair = { workspace = true } solana-rpc-client-api = { workspace = true } solana-sdk = { workspace = true } solana-sha256-hasher = { workspace = true } +solana-signer = { workspace = true } solana-system-interface = { workspace = true } tokio = { workspace = true, features = ["full"] } diff --git a/rpc-client-nonce-utils/src/nonblocking/mod.rs b/rpc-client-nonce-utils/src/nonblocking/mod.rs index 9bccf1b32d8816..24e80d540949fd 100644 --- a/rpc-client-nonce-utils/src/nonblocking/mod.rs +++ b/rpc-client-nonce-utils/src/nonblocking/mod.rs @@ -97,10 +97,8 @@ pub fn account_identity_ok(account: &T) -> Result<(), Error> /// ```no_run /// use solana_rpc_client_nonce_utils::nonblocking; /// use solana_rpc_client::nonblocking::rpc_client::RpcClient; -/// use solana_sdk::{ -/// nonce::State, -/// pubkey::Pubkey, -/// }; +/// use solana_nonce::state::State; +/// use solana_pubkey::Pubkey; /// use anyhow::Result; /// /// futures::executor::block_on(async { @@ -147,13 +145,12 @@ pub fn state_from_account>( /// ```no_run /// use solana_rpc_client_nonce_utils::nonblocking; /// use solana_rpc_client::nonblocking::rpc_client::RpcClient; +/// use solana_keypair::Keypair; /// use solana_message::Message; /// use solana_system_interface::instruction as system_instruction; /// use solana_pubkey::Pubkey; -/// use solana_sdk::{ -/// signer::{keypair::Keypair, Signer}, -/// transaction::Transaction -/// }; +/// use solana_signer::Signer; +/// use solana_sdk::transaction::Transaction; /// use std::path::Path; /// use anyhow::Result; /// # use anyhow::anyhow;