|
1 | 1 | //! `Eth` namespace
|
2 | 2 |
|
3 |
| -use crate::api::Namespace; |
4 |
| -use crate::helpers::{self, CallFuture}; |
5 |
| -use crate::types::{ |
6 |
| - Address, Block, BlockHeader, BlockId, BlockNumber, Bytes, CallRequest, Filter, Index, Log, SyncState, Transaction, |
7 |
| - TransactionId, TransactionReceipt, TransactionRequest, Work, H256, H520, H64, U256, U64, |
| 3 | +use crate::{ |
| 4 | + api::Namespace, |
| 5 | + helpers::{self, CallFuture}, |
| 6 | + types::{ |
| 7 | + Address, Block, BlockHeader, BlockId, BlockNumber, Bytes, CallRequest, Filter, Index, Log, SyncState, |
| 8 | + Transaction, TransactionId, TransactionReceipt, TransactionRequest, Work, H256, H520, H64, U256, U64, |
| 9 | + }, |
| 10 | + Transport, |
8 | 11 | };
|
9 |
| -use crate::Transport; |
10 | 12 |
|
11 | 13 | /// `Eth` namespace
|
12 | 14 | #[derive(Debug, Clone)]
|
@@ -349,18 +351,18 @@ impl<T: Transport> Eth<T> {
|
349 | 351 |
|
350 | 352 | #[cfg(test)]
|
351 | 353 | mod tests {
|
| 354 | + use super::Eth; |
| 355 | + use crate::{ |
| 356 | + api::Namespace, |
| 357 | + rpc::Value, |
| 358 | + types::{ |
| 359 | + Address, Block, BlockHeader, BlockId, BlockNumber, CallRequest, FilterBuilder, Log, SyncInfo, SyncState, |
| 360 | + Transaction, TransactionId, TransactionReceipt, TransactionRequest, Work, H256, H520, H64, |
| 361 | + }, |
| 362 | + }; |
352 | 363 | use hex_literal::hex;
|
353 | 364 | use serde_json::json;
|
354 | 365 |
|
355 |
| - use crate::api::Namespace; |
356 |
| - use crate::rpc::Value; |
357 |
| - use crate::types::{ |
358 |
| - Address, Block, BlockHeader, BlockId, BlockNumber, CallRequest, FilterBuilder, Log, SyncInfo, SyncState, |
359 |
| - Transaction, TransactionId, TransactionReceipt, TransactionRequest, Work, H256, H520, H64, |
360 |
| - }; |
361 |
| - |
362 |
| - use super::Eth; |
363 |
| - |
364 | 366 | // taken from RPC docs.
|
365 | 367 | const EXAMPLE_BLOCK: &str = r#"{
|
366 | 368 | "number": "0x1b4",
|
|
0 commit comments