Skip to content

Commit

Permalink
Clean imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
lesa-telos committed Dec 9, 2024
1 parent 3c3362e commit 6d351d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 20 deletions.
6 changes: 0 additions & 6 deletions crates/telos/node/tests/integration.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
use alloy_primitives::Address;
use alloy_provider::{Provider, ProviderBuilder, ReqwestProvider};
use antelope::api::client::{APIClient, DefaultProvider};
use antelope::chain::binary_extension::BinaryExtension;
use antelope::chain::checksum::Checksum256;
use antelope::serializer::Decoder;
use antelope::StructPacker;
use reqwest::Url;
use reth::{
args::RpcServerArgs,
Expand All @@ -15,8 +11,6 @@ use reth_chainspec::{ChainSpec, ChainSpecBuilder, TEVMTESTNET};
use reth_e2e_test_utils::node::NodeTestContext;
use reth_node_telos::{TelosArgs, TelosNode};
use reth_telos_rpc::TelosClient;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::str::FromStr;
use std::{fs, path::PathBuf, sync::Arc, time::Duration};
use telos_consensus_client::{
Expand Down
10 changes: 2 additions & 8 deletions crates/telos/node/tests/live_test_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,25 @@ use alloy_primitives::{hex, keccak256, Address, Signature, B256, U256};
use alloy_provider::network::EthereumWallet;
use alloy_provider::{Provider, ProviderBuilder};
use alloy_rpc_types::TransactionRequest;
use std::error::Error;

use alloy_signer_local::PrivateKeySigner;
use alloy_sol_types::private::primitives::TxKind::Create;
use alloy_sol_types::{sol, SolEvent};
use antelope::api::v1::structs::{GetTableRowsParams, IndexPosition, TableIndexType};
use antelope::chain::binary_extension::BinaryExtension;
use antelope::chain::checksum::Checksum160;
use antelope::chain::{checksum::Checksum256, name::Name, Packer};
use antelope::serializer::{Decoder, Encoder};
use antelope::{name, StructPacker};
use antelope::chain::{checksum::Checksum256, name::Name};
use antelope::{name};
use num_bigint::{BigUint, ToBigUint};
use reqwest::Url;
use reth::primitives::BlockId;
use reth::primitives::BlockNumberOrTag::Latest;
use reth::rpc::types::{BlockTransactionsKind, TransactionInput};
use serde::{Deserialize, Serialize};
use std::fmt::Debug;
use std::str::FromStr;
use telos_translator_rs::rlp::telos_rlp_decode::TelosTxDecodable;
use tracing::info;

use reth::primitives::revm_primitives::bytes::Bytes;
use reth::revm::primitives::{AccessList, AccessListItem};
use reth::rpc::server_types::eth::{EthApiError, RpcInvalidTransactionError};

pub(crate) fn account_params(account: &str) -> GetTableRowsParams {
GetTableRowsParams {
Expand Down
7 changes: 1 addition & 6 deletions crates/telos/rpc/src/eth/telos_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ use std::future::Future;
use std::sync::Arc;

use antelope::api::client::{APIClient, DefaultProvider};
use antelope::api::v1::structs::{
ClientError, EncodingError, HTTPError, SendTransactionResponse2Error,
SendTransactionResponseError, SimpleError,
};
use antelope::api::v1::structs::{ClientError, SendTransaction2Options, SendTransactionResponse2Error};
use antelope::chain::action::{Action, PermissionLevel};
use antelope::chain::checksum::Checksum160;
use antelope::chain::name::Name;
Expand All @@ -15,7 +12,6 @@ use antelope::chain::transaction::{SignedTransaction, Transaction};
use antelope::serializer::Decoder;
use antelope::serializer::Encoder;
use antelope::{chain::Packer, name, StructPacker};
use derive_more::Display;
use jsonrpsee_types::ErrorObject;
use regex::Regex;
use tracing::{debug, error, warn};
Expand Down Expand Up @@ -46,7 +42,6 @@ impl From<TelosError> for EthApiError {
}
ClientError::ENCODING(encoding_error) => EthApiError::EvmCustom(encoding_error.message),
ClientError::NETWORK(network_error) => EthApiError::EvmCustom(network_error),
_ => EthApiError::EvmCustom(err.to_string()),
}
}
}
Expand Down

0 comments on commit 6d351d9

Please sign in to comment.