|
|
@@ -5,14 +5,13 @@ use {
|
|
|
},
|
|
|
chrono::DateTime,
|
|
|
clap::ArgMatches,
|
|
|
- solana_sdk::{
|
|
|
- clock::UnixTimestamp,
|
|
|
- commitment_config::CommitmentConfig,
|
|
|
- genesis_config::ClusterType,
|
|
|
- native_token::sol_to_lamports,
|
|
|
- pubkey::{Pubkey, MAX_SEED_LEN},
|
|
|
- signature::{read_keypair_file, Keypair, Signer},
|
|
|
- },
|
|
|
+ solana_clock::UnixTimestamp,
|
|
|
+ solana_cluster_type::ClusterType,
|
|
|
+ solana_commitment_config::CommitmentConfig,
|
|
|
+ solana_keypair::{read_keypair_file, Keypair},
|
|
|
+ solana_native_token::sol_to_lamports,
|
|
|
+ solana_pubkey::{Pubkey, MAX_SEED_LEN},
|
|
|
+ solana_signer::Signer,
|
|
|
std::str::FromStr,
|
|
|
};
|
|
|
|
|
|
@@ -347,7 +346,9 @@ mod tests {
|
|
|
use {
|
|
|
super::*,
|
|
|
clap::{Arg, ArgAction, Command},
|
|
|
- solana_sdk::{commitment_config::CommitmentLevel, hash::Hash, pubkey::Pubkey},
|
|
|
+ solana_commitment_config::{CommitmentConfig, CommitmentLevel},
|
|
|
+ solana_hash::Hash,
|
|
|
+ solana_pubkey::Pubkey,
|
|
|
};
|
|
|
|
|
|
fn app<'ab>() -> Command<'ab> {
|
|
|
@@ -369,8 +370,8 @@ mod tests {
|
|
|
assert_eq!(values_of(&matches, "multiple"), Some(vec![50, 39]));
|
|
|
assert_eq!(values_of::<u64>(&matches, "single"), None);
|
|
|
|
|
|
- let pubkey0 = solana_sdk::pubkey::new_rand();
|
|
|
- let pubkey1 = solana_sdk::pubkey::new_rand();
|
|
|
+ let pubkey0 = solana_pubkey::new_rand();
|
|
|
+ let pubkey1 = solana_pubkey::new_rand();
|
|
|
let matches = app().get_matches_from(vec![
|
|
|
"test",
|
|
|
"--multiple",
|
|
|
@@ -390,7 +391,7 @@ mod tests {
|
|
|
assert_eq!(value_of(&matches, "single"), Some(50));
|
|
|
assert_eq!(value_of::<u64>(&matches, "multiple"), None);
|
|
|
|
|
|
- let pubkey = solana_sdk::pubkey::new_rand();
|
|
|
+ let pubkey = solana_pubkey::new_rand();
|
|
|
let matches = app().get_matches_from(vec!["test", "--single", &pubkey.to_string()]);
|
|
|
assert_eq!(value_of(&matches, "single"), Some(pubkey));
|
|
|
}
|