|
1 | 1 | use {
|
2 | 2 | crate::{TpsClient, TpsClientError, TpsClientResult},
|
| 3 | + solana_account::Account, |
| 4 | + solana_client_traits::{AsyncClient, SyncClient}, |
| 5 | + solana_commitment_config::CommitmentConfig, |
| 6 | + solana_epoch_info::EpochInfo, |
| 7 | + solana_hash::Hash, |
| 8 | + solana_message::Message, |
| 9 | + solana_pubkey::Pubkey, |
3 | 10 | solana_rpc_client_api::config::RpcBlockConfig,
|
4 | 11 | solana_runtime::bank_client::BankClient,
|
5 |
| - solana_sdk::{ |
6 |
| - account::Account, |
7 |
| - client::{AsyncClient, SyncClient}, |
8 |
| - commitment_config::CommitmentConfig, |
9 |
| - epoch_info::EpochInfo, |
10 |
| - hash::Hash, |
11 |
| - message::Message, |
12 |
| - pubkey::Pubkey, |
13 |
| - signature::Signature, |
14 |
| - slot_history::Slot, |
15 |
| - transaction::{Result, Transaction}, |
16 |
| - }, |
| 12 | + solana_signature::Signature, |
| 13 | + solana_transaction::Transaction, |
| 14 | + solana_transaction_error::TransactionResult as Result, |
17 | 15 | solana_transaction_status::UiConfirmedBlock,
|
18 | 16 | };
|
19 | 17 |
|
@@ -122,22 +120,22 @@ impl TpsClient for BankClient {
|
122 | 120 | fn get_slot_with_commitment(
|
123 | 121 | &self,
|
124 | 122 | commitment_config: CommitmentConfig,
|
125 |
| - ) -> TpsClientResult<Slot> { |
| 123 | + ) -> TpsClientResult<u64> { |
126 | 124 | SyncClient::get_slot_with_commitment(self, commitment_config).map_err(|err| err.into())
|
127 | 125 | }
|
128 | 126 |
|
129 | 127 | fn get_blocks_with_commitment(
|
130 | 128 | &self,
|
131 |
| - _start_slot: Slot, |
132 |
| - _end_slot: Option<Slot>, |
| 129 | + _start_slot: u64, |
| 130 | + _end_slot: Option<u64>, |
133 | 131 | _commitment_config: CommitmentConfig,
|
134 |
| - ) -> TpsClientResult<Vec<Slot>> { |
| 132 | + ) -> TpsClientResult<Vec<u64>> { |
135 | 133 | unimplemented!("BankClient doesn't support get_blocks");
|
136 | 134 | }
|
137 | 135 |
|
138 | 136 | fn get_block_with_config(
|
139 | 137 | &self,
|
140 |
| - _slot: Slot, |
| 138 | + _slot: u64, |
141 | 139 | _rpc_block_config: RpcBlockConfig,
|
142 | 140 | ) -> TpsClientResult<UiConfirmedBlock> {
|
143 | 141 | unimplemented!("BankClient doesn't support get_block_with_config");
|
|
0 commit comments