reth_primitives_traits/transaction/mod.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
//! Transaction abstraction
pub mod execute;
pub mod signature;
pub mod signed;
pub mod error;
use crate::{InMemorySize, MaybeCompact, MaybeSerde};
use core::{fmt, hash::Hash};
/// Helper trait that unifies all behaviour required by transaction to support full node operations.
pub trait FullTransaction: Transaction + MaybeCompact {}
impl<T> FullTransaction for T where T: Transaction + MaybeCompact {}
/// Abstraction of a transaction.
pub trait Transaction:
Send
+ Sync
+ Unpin
+ Clone
+ fmt::Debug
+ Eq
+ PartialEq
+ Hash
+ alloy_consensus::Transaction
+ InMemorySize
+ MaybeSerde
{
}
impl<T> Transaction for T where
T: Send
+ Sync
+ Unpin
+ Clone
+ fmt::Debug
+ Eq
+ PartialEq
+ Hash
+ alloy_consensus::Transaction
+ InMemorySize
+ MaybeSerde
{
}