Skip to content

Commit

Permalink
remove solana-sdk from solana-keygen (#4000)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey authored Dec 9, 2024
1 parent 8b3e4b8 commit 1aaa3ba
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 13 deletions.
7 changes: 6 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion keygen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,18 @@ serde_json = { workspace = true }
solana-clap-v3-utils = { workspace = true }
solana-cli-config = { workspace = true }
solana-derivation-path = { workspace = true }
solana-instruction = { workspace = true }
solana-keypair = { workspace = true }
solana-message = { workspace = true }
solana-pubkey = { workspace = true }
solana-remote-wallet = { workspace = true, features = ["default"] }
solana-sdk = { workspace = true }
solana-seed-derivable = { workspace = true }
solana-signer = { workspace = true }
solana-version = { workspace = true }
tiny-bip39 = { workspace = true }

[dev-dependencies]
solana-pubkey = { workspace = true, features = ["rand"] }
tempfile = { workspace = true }

[[bin]]
Expand Down
21 changes: 10 additions & 11 deletions keygen/src/keygen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,15 @@ use {
DisplayError,
},
solana_cli_config::{Config, CONFIG_FILE},
solana_remote_wallet::remote_wallet::RemoteWalletManager,
solana_sdk::{
instruction::{AccountMeta, Instruction},
message::Message,
pubkey::Pubkey,
signature::{
keypair_from_seed, keypair_from_seed_and_derivation_path, write_keypair,
write_keypair_file, Keypair, Signer,
},
solana_instruction::{AccountMeta, Instruction},
solana_keypair::{
keypair_from_seed, seed_derivable::keypair_from_seed_and_derivation_path, write_keypair,
write_keypair_file, Keypair,
},
solana_message::Message,
solana_pubkey::Pubkey,
solana_remote_wallet::remote_wallet::RemoteWalletManager,
solana_signer::Signer,
std::{
collections::HashSet,
error,
Expand All @@ -50,7 +49,7 @@ use {
};

mod smallest_length_44_public_key {
use solana_sdk::pubkey::Pubkey;
use solana_pubkey::Pubkey;

pub(super) static PUBKEY: Pubkey =
Pubkey::from_str_const("21111111111111111111111111111111111111111111");
Expand Down Expand Up @@ -1156,7 +1155,7 @@ mod tests {
#[test]
fn test_read_write_pubkey() -> Result<(), std::boxed::Box<dyn std::error::Error>> {
let filename = "test_pubkey.json";
let pubkey = solana_sdk::pubkey::new_rand();
let pubkey = solana_pubkey::new_rand();
write_pubkey_file(filename, pubkey)?;
let read = read_pubkey_file(filename)?;
assert_eq!(read, pubkey);
Expand Down

0 comments on commit 1aaa3ba

Please sign in to comment.