Rename KeypairUtil to Signer (#8360)

automerge
This commit is contained in:
Tyera Eulberg
2020-02-20 14:28:55 -07:00
committed by GitHub
parent ec5c02cb7f
commit ab361a8073
108 changed files with 138 additions and 140 deletions

View File

@@ -12,7 +12,7 @@ use solana_sdk::{
genesis_config::create_genesis_config,
instruction::InstructionError,
pubkey::Pubkey,
signature::{Keypair, KeypairUtil},
signature::{Keypair, Signer},
transaction::Transaction,
};
use std::{sync::Arc, thread::sleep, time::Duration};

View File

@@ -681,7 +681,7 @@ mod tests {
message::Message,
nonce_state,
rent::Rent,
signature::{Keypair, KeypairUtil},
signature::{Keypair, Signer},
system_program,
transaction::Transaction,
};

View File

@@ -2455,7 +2455,7 @@ pub mod tests {
#[test]
fn test_bad_bank_hash() {
use solana_sdk::signature::{Keypair, KeypairUtil};
use solana_sdk::signature::{Keypair, Signer};
let db = AccountsDB::new(Vec::new());
let some_slot: Slot = 0;

View File

@@ -166,7 +166,7 @@ impl<T: Clone> AccountsIndex<T> {
#[cfg(test)]
mod tests {
use super::*;
use solana_sdk::signature::{Keypair, KeypairUtil};
use solana_sdk::signature::{Keypair, Signer};
#[test]
fn test_get_empty() {

View File

@@ -2134,7 +2134,7 @@ mod tests {
nonce_state,
poh_config::PohConfig,
rent::Rent,
signature::{Keypair, KeypairUtil},
signature::{Keypair, Signer},
system_instruction,
system_program::{self, solana_system_program},
sysvar::{fees::Fees, rewards::Rewards},

View File

@@ -8,7 +8,7 @@ use solana_sdk::{
instruction::Instruction,
message::Message,
pubkey::Pubkey,
signature::{Keypair, KeypairUtil, Signature},
signature::{Keypair, Signature, Signer},
signers::Signers,
system_instruction,
transaction::{self, Transaction},

View File

@@ -4,7 +4,7 @@ use solana_sdk::{
genesis_config::GenesisConfig,
pubkey::Pubkey,
rent::Rent,
signature::{Keypair, KeypairUtil},
signature::{Keypair, Signer},
system_program::{self, solana_system_program},
};
use solana_stake_program::stake_state;

View File

@@ -5,7 +5,7 @@ use solana_sdk::{
loader_instruction,
message::Message,
pubkey::Pubkey,
signature::{Keypair, KeypairUtil},
signature::{Keypair, Signer},
system_instruction,
};

View File

@@ -79,7 +79,7 @@ mod tests {
instruction::InstructionError,
nonce_state::{with_test_keyed_account, Meta, NonceAccount},
pubkey::Pubkey,
signature::{Keypair, KeypairUtil},
signature::{Keypair, Signer},
system_instruction,
sysvar::{recent_blockhashes::create_test_recent_blockhashes, rent::Rent},
};

View File

@@ -84,7 +84,7 @@ pub(crate) mod tests {
client::SyncClient,
genesis_config::create_genesis_config,
message::Message,
signature::{Keypair, KeypairUtil},
signature::{Keypair, Signer},
};
use solana_storage_program::{
storage_contract::{StorageAccount, STORAGE_ACCOUNT_SPACE},

View File

@@ -329,7 +329,7 @@ mod tests {
instruction::{AccountMeta, Instruction, InstructionError},
message::Message,
nonce_state,
signature::{Keypair, KeypairUtil},
signature::{Keypair, Signer},
system_instruction, system_program, sysvar,
transaction::TransactionError,
};

View File

@@ -2,8 +2,7 @@ use solana_runtime::{
bank::Bank, bank_client::BankClient, loader_utils::create_invoke_instruction,
};
use solana_sdk::{
client::SyncClient, genesis_config::create_genesis_config, pubkey::Pubkey,
signature::KeypairUtil,
client::SyncClient, genesis_config::create_genesis_config, pubkey::Pubkey, signature::Signer,
};
#[test]

View File

@@ -8,7 +8,7 @@ use solana_sdk::{
client::SyncClient,
message::Message,
pubkey::Pubkey,
signature::{Keypair, KeypairUtil},
signature::{Keypair, Signer},
system_instruction::create_address_with_seed,
sysvar::{self, stake_history::StakeHistory, Sysvar},
};

View File

@@ -13,7 +13,7 @@ use solana_sdk::{
hash::{hash, Hash},
message::Message,
pubkey::Pubkey,
signature::{Keypair, KeypairUtil, Signature},
signature::{Keypair, Signature, Signer},
system_instruction,
sysvar::{
rewards::{self, Rewards},