Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,269 changes: 961 additions & 1,308 deletions Cargo.lock

Large diffs are not rendered by default.

26 changes: 18 additions & 8 deletions clients/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,27 @@ console = "0.16.3"
futures = "0.3"
serde = "1.0.219"
serde_json = "1.0.150"
solana-account-decoder = "4.3.0"
solana-clap-v3-utils = { version = "4.3.0", features = ["agave-unstable-api"] }
solana-cli-config = { version = "4.3.0", features = ["agave-unstable-api"] }
solana-cli-output = { version = "4.3.0", features = ["agave-unstable-api"] }
solana-client = { version = "4.3.0", features = ["agave-unstable-api"] }
solana-account = "5.0.0"
solana-account-decoder = "4.4.1"
solana-clap-v3-utils = { version = "4.4.1", features = ["agave-unstable-api"] }
solana-cli-config = { version = "4.4.1", features = ["agave-unstable-api"] }
solana-cli-output = { version = "4.4.1", features = ["agave-unstable-api"] }
solana-client = { version = "4.4.1", features = ["agave-unstable-api"] }
solana-commitment-config = "3.1.1"
solana-hash = "4.6.0"
solana-instruction = "3.5.1"
solana-keypair = "4.0.0"
solana-logger = "3.0.0"
solana-remote-wallet = { version = "4.3.0", features = ["agave-unstable-api"] }
solana-sdk = "4.0.1"
solana-message = "5.0.0"
solana-native-token = "3.0.0"
solana-program-option = "3.1.0"
solana-program-pack = "3.1.0"
solana-pubkey = "4.3.0"
solana-remote-wallet = { version = "4.4.1", features = ["agave-unstable-api"] }
solana-signature = "3.5.2"
solana-signer = "4.0.0"
solana-system-interface = "3.2.0"
solana-transaction = "5.0.0"
solana-zk-elgamal-proof-interface = "1.0.0"
solana-zk-sdk = "8.0.1"
solana-zk-sdk-pod = "0.1.2"
Expand All @@ -54,7 +64,7 @@ spl-elgamal-registry-interface = { version = "0.3.0", path = "../../confidential
spl-token-confidential-transfer-proof-extraction = { version = "0.7.0", path = "../../confidential/proof-extraction" }
solana-nonce = "3.1.0"
solana-sdk-ids = "3.1.0"
solana-test-validator = { version = "4.3.0", features = ["agave-unstable-api", "dev-context-only-utils"] }
solana-test-validator = { version = "4.4.1", features = ["agave-unstable-api", "dev-context-only-utils"] }
assert_cmd = "2.2.2"
libtest-mimic = "0.8"
serial_test = "4.0.1"
Expand Down
8 changes: 5 additions & 3 deletions clients/cli/src/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ use {
nonblocking::rpc_client::RpcClient, rpc_client::RpcClient as BlockingRpcClient,
tpu_client::TpuClient, tpu_client::TpuClientConfig,
},
solana_message::Message,
solana_native_token::Sol,
solana_program_pack::Pack,
solana_pubkey::Pubkey,
solana_remote_wallet::remote_wallet::RemoteWalletManager,
solana_sdk::{
message::Message, native_token::Sol, program_pack::Pack, pubkey::Pubkey, signature::Signer,
},
solana_signer::Signer,
solana_system_interface::instruction as system_instruction,
spl_associated_token_account_interface::address::get_associated_token_address_with_program_id,
spl_token_2022_interface::{
Expand Down
3 changes: 2 additions & 1 deletion clients/cli/src/clap_app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ use {
offline::{self, *},
ArgConstant,
},
solana_sdk::{instruction::AccountMeta, pubkey::Pubkey},
solana_instruction::AccountMeta,
solana_pubkey::Pubkey,
spl_token_2022_interface::instruction::{AuthorityType, MAX_SIGNERS, MIN_SIGNERS},
std::{fmt, str::FromStr},
strum::IntoEnumIterator,
Expand Down
11 changes: 5 additions & 6 deletions clients/cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@ use {
OutputFormat, QuietDisplay, ReturnSignersConfig, VerboseDisplay,
},
solana_client::rpc_request::TokenAccountsFilter,
solana_instruction::AccountMeta,
solana_keypair::Keypair,
solana_program_option::COption,
solana_pubkey::Pubkey,
solana_remote_wallet::remote_wallet::RemoteWalletManager,
solana_sdk::{
instruction::AccountMeta,
program_option::COption,
pubkey::Pubkey,
signature::{Keypair, Signer},
},
solana_signer::Signer,
solana_system_interface::program as system_program,
solana_zk_elgamal_proof_interface::proof_data::{
BatchedRangeProofContext, BatchedRangeProofU128Data, BatchedRangeProofU256Data,
Expand Down
9 changes: 5 additions & 4 deletions clients/cli/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use {
crate::clap_app::{Error, COMPUTE_UNIT_LIMIT_ARG, COMPUTE_UNIT_PRICE_ARG, MULTISIG_SIGNER_ARG},
clap::ArgMatches,
solana_account::Account as RawAccount,
solana_clap_v3_utils::{
input_parsers::pubkey_of_signer,
input_validators::normalize_to_url_if_moniker,
Expand All @@ -11,11 +12,11 @@ use {
solana_cli_output::OutputFormat,
solana_client::nonblocking::rpc_client::RpcClient,
solana_commitment_config::CommitmentConfig,
solana_hash::Hash,
solana_pubkey::Pubkey,
solana_remote_wallet::remote_wallet::RemoteWalletManager,
solana_sdk::{
account::Account as RawAccount, hash::Hash, pubkey::Pubkey, signature::Signer,
signer::null_signer::NullSigner,
},
solana_signer::null_signer::NullSigner,
solana_signer::Signer,
spl_associated_token_account_interface::address::get_associated_token_address_with_program_id,
spl_token_2022_interface::{
extension::{
Expand Down
2 changes: 1 addition & 1 deletion clients/cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use {
solana_sdk::signer::Signer,
solana_signer::Signer,
spl_token_cli::{clap_app::*, command::process_command, config::Config},
std::{str::FromStr, sync::Arc},
};
Expand Down
2 changes: 1 addition & 1 deletion clients/cli/src/sort.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use {
serde::{Deserialize, Serialize},
solana_account_decoder::{parse_token::TokenAccountType, UiAccountData},
solana_client::rpc_response::RpcKeyedAccount,
solana_sdk::pubkey::Pubkey,
solana_pubkey::Pubkey,
spl_associated_token_account_interface::address::get_associated_token_address_with_program_id,
std::{
collections::{btree_map::Entry, BTreeMap},
Expand Down
8 changes: 6 additions & 2 deletions clients/cli/src/transaction_report.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ use {
crate::clap_app::Error,
async_trait::async_trait,
serde::Serialize,
solana_account::Account,
solana_cli_output::{QuietDisplay, VerboseDisplay},
solana_sdk::{account::Account, hash::Hash, pubkey::Pubkey, transaction::Transaction},
solana_hash::Hash,
solana_pubkey::Pubkey,
solana_transaction::Transaction,
spl_token_client::client::{
ProgramClient, ProgramClientResult, ProgramRpcClientSendTransaction, RpcClientResponse,
},
Expand Down Expand Up @@ -163,7 +166,8 @@ mod tests {
use {
super::*,
solana_cli_output::OutputFormat,
solana_sdk::signature::{Keypair, Signer},
solana_keypair::Keypair,
solana_signer::Signer,
solana_zk_sdk::{
encryption::pedersen::Pedersen,
zk_elgamal_proof_program::build_batched_range_proof_u128_data,
Expand Down
2 changes: 1 addition & 1 deletion clients/cli/tests/clap_app.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use {
clap::ErrorKind,
solana_clap_v3_utils::input_parsers::Amount,
solana_sdk::pubkey::Pubkey,
solana_pubkey::Pubkey,
spl_token_cli::clap_app::{app, minimum_signers_help_string, multisig_member_help_string},
};

Expand Down
22 changes: 11 additions & 11 deletions clients/cli/tests/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ use {
rpc_request::{RpcRequest, TokenAccountsFilter},
},
solana_commitment_config::CommitmentConfig,
solana_sdk::{
hash::Hash,
program_option::COption,
program_pack::Pack,
pubkey::Pubkey,
signature::{write_keypair_file, Keypair, Signer},
transaction::Transaction,
},
solana_hash::Hash,
solana_keypair::write_keypair_file,
solana_keypair::Keypair,
solana_program_option::COption,
solana_program_pack::Pack,
solana_pubkey::Pubkey,
solana_sdk_ids::bpf_loader_upgradeable,
solana_signer::EncodableKey,
solana_signer::Signer,
solana_system_interface::{instruction as system_instruction, program as system_program},
solana_test_validator::{TestValidator, TestValidatorGenesis, UpgradeableProgramInfo},
solana_transaction::Transaction,
solana_zk_sdk::{
encryption::{
auth_encryption::AeKey,
Expand Down Expand Up @@ -318,7 +318,7 @@ fn processed_cli_config_file() -> NamedTempFile {

fn mock_account_info_response(
address: &Pubkey,
account: &solana_sdk::account::Account,
account: &solana_account::Account,
) -> serde_json::Value {
serde_json::json!({
"context": { "slot": 1 },
Expand Down Expand Up @@ -683,7 +683,7 @@ impl ProgramClient<ProgramRpcClientSendTransaction> for RecordingProgramClient {
async fn get_account(
&self,
address: Pubkey,
) -> ProgramClientResult<Option<solana_sdk::account::Account>> {
) -> ProgramClientResult<Option<solana_account::Account>> {
self.inner.get_account(address).await
}

Expand Down Expand Up @@ -3988,7 +3988,7 @@ async fn empty_confidential_transfer_account(test_validator: &TestValidator, pay

async fn confidential_transfer(test_validator: &TestValidator, payer: &Keypair) {
use {
solana_sdk::message::Message,
solana_message::Message,
solana_zk_elgamal_proof_interface::{
proof_data::{
BatchedGroupedCiphertext3HandlesValidityProofContext, BatchedRangeProofContext,
Expand Down
40 changes: 25 additions & 15 deletions clients/rust-legacy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,25 +25,25 @@ bincode = "1.3.2"
bytemuck = "1.25.0"
futures = "0.3.32"
futures-util = "0.3"
solana-account = "4.3.1"
solana-account = "5.0.0"
solana-address = "2.6.1"
solana-banks-client = { version = "4.3.0", optional = true }
solana-banks-interface = { version = "4.3.0", optional = true }
solana-banks-client = { version = "4.4.1", optional = true }
solana-banks-interface = { version = "4.4.1", optional = true }
solana-compute-budget-interface = "3.0.0"
solana-cli-output = { version = "4.3.0", features = ["agave-unstable-api"], optional = true }
solana-hash = "4.2.0"
solana-instruction = "3.0.0"
solana-message = "4.4.0"
solana-cli-output = { version = "4.4.1", features = ["agave-unstable-api"], optional = true }
solana-hash = "4.6.0"
solana-instruction = "3.5.1"
solana-message = "5.0.0"
solana-packet = "4.1.0"
solana-program-error = "3.0.1"
solana-program-pack = "3.1.0"
solana-program-test = { version = "4.3.0", optional = true, features = ["agave-unstable-api"] }
solana-rpc-client = "4.3.0"
solana-rpc-client-api = "4.3.0"
solana-signature = "3.0.0"
solana-signer = "3.0.0"
solana-program-test = { version = "4.4.1", optional = true, features = ["agave-unstable-api"] }
solana-rpc-client = "4.4.1"
solana-rpc-client-api = "4.4.1"
solana-signature = "3.5.2"
solana-signer = "4.0.0"
solana-system-interface = "3.2.0"
solana-transaction = "4.1.6"
solana-transaction = "5.0.0"
solana-zk-sdk = "8.0.1"
spl-associated-token-account-interface = { version = "2.0.0" }
spl-elgamal-registry = { version = "0.6.0", path = "../../confidential/elgamal-registry", features = ["no-entrypoint"] }
Expand All @@ -67,9 +67,19 @@ async-trait = "0.1"
borsh = "1.6.1"
bytemuck = "1.25.0"
futures-util = "0.3"
solana-program-test = { version = "4.3.0", features = ["agave-unstable-api"] }
solana-sdk = "4.0.1"
solana-account-info = "3.1.1"
solana-borsh = "3.0.2"
solana-clock = "4.0.0"
solana-instruction-error = "3.0.0"
solana-keypair = "4.0.0"
solana-msg = "3.1.0"
solana-program = { version = "5.0.0", default-features = false }
solana-program-option = "3.1.0"
solana-program-test = { version = "4.4.1", features = ["agave-unstable-api"] }
solana-pubkey = "4.3.0"
solana-rent = "4.4.0"
solana-sdk-ids = "3.1.0"
solana-transaction-error = "4.0.0"
spl-instruction-padding-interface = "1.0.0"
spl-tlv-account-resolution = "0.11.3"
spl-token-client = { path = ".", features = ["dev-context-only-utils"] }
Expand Down
11 changes: 3 additions & 8 deletions clients/rust-legacy/src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,10 @@ impl fmt::Display for RpcClientResponse {
#[cfg(test)]
mod tests {
use {
super::*,
solana_sdk::{
hash::Hash,
pubkey::Pubkey,
signature::{Signature, Signer, SIGNATURE_BYTES},
signer::keypair::Keypair,
transaction::Transaction,
},
super::*, solana_hash::Hash, solana_keypair::Keypair, solana_pubkey::Pubkey,
solana_signature::Signature, solana_signature::SIGNATURE_BYTES, solana_signer::Signer,
solana_system_interface::instruction as system_instruction,
solana_transaction::Transaction,
};

#[test]
Expand Down
7 changes: 3 additions & 4 deletions clients/rust-legacy/tests/basic.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
use {
solana_keypair::Keypair,
solana_program_option::COption,
solana_program_test::{
tokio::{self, sync::Mutex},
ProgramTest,
},
solana_sdk::{
program_option::COption,
signer::{keypair::Keypair, Signer},
},
solana_signer::Signer,
spl_token_2022_interface::{instruction, state},
spl_token_client::{
client::{ProgramBanksClient, ProgramBanksClientProcessTransaction, ProgramClient},
Expand Down
18 changes: 9 additions & 9 deletions clients/rust-legacy/tests/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@ mod program_test;

use {
program_test::{keypair_clone, TestContext, TokenContext},
solana_instruction::Instruction,
solana_instruction_error::InstructionError,
solana_keypair::Keypair,
solana_program_pack::Pack,
solana_program_test::tokio,
solana_sdk::{
instruction::{Instruction, InstructionError},
program_pack::Pack,
pubkey::Pubkey,
signature::Signer,
signer::keypair::Keypair,
transaction::{Transaction, TransactionError},
transport::TransportError,
},
solana_pubkey::Pubkey,
solana_signer::Signer,
solana_system_interface::instruction as system_instruction,
solana_transaction::Transaction,
solana_transaction_error::TransactionError,
solana_transaction_error::TransportError,
spl_token_2022_interface::{
extension::ExtensionType,
id,
Expand Down
10 changes: 6 additions & 4 deletions clients/rust-legacy/tests/burn.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
mod program_test;
use {
program_test::{TestContext, TokenContext},
solana_instruction_error::InstructionError,
solana_keypair::Keypair,
solana_program_test::tokio,
solana_sdk::{
instruction::InstructionError, pubkey::Pubkey, signature::Signer, signer::keypair::Keypair,
transaction::TransactionError, transport::TransportError,
},
solana_pubkey::Pubkey,
solana_signer::Signer,
solana_transaction_error::TransactionError,
solana_transaction_error::TransportError,
spl_token_2022_interface::error::TokenError,
spl_token_client::token::{ExtensionInitializationParams, TokenError as TokenClientError},
};
Expand Down
11 changes: 7 additions & 4 deletions clients/rust-legacy/tests/close_account.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
mod program_test;
use {
program_test::TestContext,
solana_instruction_error::InstructionError,
solana_keypair::Keypair,
solana_program_pack::Pack,
solana_program_test::tokio,
solana_sdk::{
instruction::InstructionError, program_pack::Pack, pubkey::Pubkey, signature::Signer,
signer::keypair::Keypair, transaction::TransactionError, transport::TransportError,
},
solana_pubkey::Pubkey,
solana_signer::Signer,
solana_system_interface::instruction as system_instruction,
solana_transaction_error::TransactionError,
solana_transaction_error::TransportError,
spl_token_2022_interface::{instruction, state::Account},
spl_token_client::token::{ExtensionInitializationParams, TokenError as TokenClientError},
};
Expand Down
15 changes: 7 additions & 8 deletions clients/rust-legacy/tests/confidential_mint_burn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,14 @@ use {
program_test::{
derive_confidential_keys, ConfidentialTransferOption, TestContext, TokenContext,
},
solana_instruction_error::InstructionError,
solana_keypair::Keypair,
solana_program_test::tokio,
solana_sdk::{
instruction::InstructionError,
pubkey::Pubkey,
signature::Signer,
signer::{keypair::Keypair, signers::Signers},
transaction::TransactionError,
transport::TransportError,
},
solana_pubkey::Pubkey,
solana_signer::signers::Signers,
solana_signer::Signer,
solana_transaction_error::TransactionError,
solana_transaction_error::TransportError,
solana_zk_sdk::encryption::{auth_encryption::*, elgamal::*},
solana_zk_sdk_pod::encryption::elgamal::PodElGamalCiphertext,
spl_token_2022_interface::{
Expand Down
Loading
Loading