chore: rm tx alias re-export (#12762)

This commit is contained in:
Matthias Seitz
2024-11-22 01:07:04 +01:00
committed by GitHub
parent 0eaef1f1dc
commit f211aacf55
3 changed files with 9 additions and 17 deletions

View File

@@ -48,7 +48,7 @@ pub use transaction::{
util::secp256k1::{public_key_to_address, recover_signer_unchecked, sign_message},
BlobTransaction, InvalidTransactionError, PooledTransactionsElement,
PooledTransactionsElementEcRecovered, Transaction, TransactionMeta, TransactionSigned,
TransactionSignedEcRecovered, TransactionSignedNoHash, TxHashOrNumber, TxType,
TransactionSignedEcRecovered, TransactionSignedNoHash, TxType,
};
// Re-exports

View File

@@ -6,7 +6,6 @@ use alloy_consensus::{
TxEip4844, TxEip7702, TxLegacy,
};
use alloy_eips::{
eip1898::BlockHashOrNumber,
eip2718::{Decodable2718, Eip2718Error, Eip2718Result, Encodable2718},
eip2930::AccessList,
eip7702::SignedAuthorization,
@@ -61,9 +60,6 @@ pub mod signature;
pub(crate) mod util;
mod variant;
/// Either a transaction hash or number.
pub type TxHashOrNumber = BlockHashOrNumber;
/// Expected number of transactions where we can expect a speed-up by recovering the senders in
/// parallel.
pub static PARALLEL_SENDER_RECOVERY_THRESHOLD: LazyLock<usize> =

View File

@@ -1,13 +1,9 @@
use crate::{db::DatabaseError, lockfile::StorageLockError, writer::UnifiedStorageWriterError};
use alloy_eips::BlockHashOrNumber;
use alloc::{boxed::Box, string::String};
use alloy_eips::{BlockHashOrNumber, HashOrNumber};
use alloy_primitives::{Address, BlockHash, BlockNumber, TxNumber, B256};
use derive_more::Display;
use reth_primitives::{GotExpected, StaticFileSegment, TxHashOrNumber};
#[cfg(feature = "std")]
use std::path::PathBuf;
use alloc::{boxed::Box, string::String};
use reth_primitives::{GotExpected, StaticFileSegment};
/// Provider result type.
pub type ProviderResult<Ok> = Result<Ok, ProviderError>;
@@ -66,12 +62,12 @@ pub enum ProviderError {
/// when required header related data was not found but was required.
#[display("no header found for {_0:?}")]
HeaderNotFound(BlockHashOrNumber),
/// The specific transaction is missing.
/// The specific transaction identified by hash or id is missing.
#[display("no transaction found for {_0:?}")]
TransactionNotFound(TxHashOrNumber),
/// The specific receipt is missing
TransactionNotFound(HashOrNumber),
/// The specific receipt for a transaction identified by hash or id is missing
#[display("no receipt found for {_0:?}")]
ReceiptNotFound(TxHashOrNumber),
ReceiptNotFound(HashOrNumber),
/// Unable to find the best block.
#[display("best block does not exist")]
BestBlockNotFound,
@@ -111,7 +107,7 @@ pub enum ProviderError {
/// Static File is not found at specified path.
#[cfg(feature = "std")]
#[display("not able to find {_0} static file at {_1:?}")]
MissingStaticFilePath(StaticFileSegment, PathBuf),
MissingStaticFilePath(StaticFileSegment, std::path::PathBuf),
/// Static File is not found for requested block.
#[display("not able to find {_0} static file for block number {_1}")]
MissingStaticFileBlock(StaticFileSegment, BlockNumber),