feat: abstract OP payload builder over transaction (#14153)

This commit is contained in:
Arsenii Kulikov
2025-02-03 18:57:41 +04:00
committed by GitHub
parent 7243aaf555
commit 65c3bd7eda
15 changed files with 324 additions and 229 deletions

View File

@ -25,6 +25,7 @@ alloy-rpc-types-engine = { workspace = true, features = ["serde"] }
op-alloy-rpc-types-engine = { workspace = true, optional = true }
# misc
auto_impl.workspace = true
serde.workspace = true
thiserror.workspace = true
tokio = { workspace = true, default-features = false, features = ["sync"] }

View File

@ -11,6 +11,7 @@ use reth_primitives::{NodePrimitives, SealedBlock};
/// Represents a built payload type that contains a built `SealedBlock` and can be converted into
/// engine API execution payloads.
#[auto_impl::auto_impl(&, Arc)]
pub trait BuiltPayload: Send + Sync + fmt::Debug {
/// The node's primitive types
type Primitives: NodePrimitives;