PayloadAttributesBuilder

Trait PayloadAttributesBuilder 

pub trait PayloadAttributesBuilder<Attributes>:
    Send
    + Sync
    + 'static {
    // Required method
    fn build(&self, timestamp: u64) -> Attributes;
}
Expand description

Factory trait for creating payload attributes.

Enables different strategies for generating payload attributes based on contextual information. Useful for testing and specialized building.

Required Methods§

fn build(&self, timestamp: u64) -> Attributes

Constructs new payload attributes for the given timestamp.

Implementations on Foreign Types§

§

impl<ChainSpec> PayloadAttributesBuilder<OpPayloadAttributes> for LocalPayloadAttributesBuilder<ChainSpec>
where ChainSpec: Send + Sync + EthereumHardforks + 'static,

§

fn build(&self, timestamp: u64) -> OpPayloadAttributes

§

impl<ChainSpec> PayloadAttributesBuilder<PayloadAttributes> for LocalPayloadAttributesBuilder<ChainSpec>
where ChainSpec: Send + Sync + EthereumHardforks + 'static,

§

fn build(&self, timestamp: u64) -> PayloadAttributes

Implementors§