pub trait AttributesBuilder {
// Required method
fn prepare_payload_attributes<'life0, 'async_trait>(
&'life0 mut self,
l2_parent: L2BlockInfo,
epoch: BlockNumHash,
) -> Pin<Box<dyn Future<Output = PipelineResult<OpPayloadAttributes>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
The AttributesBuilder is responsible for preparing OpPayloadAttributes that can be used to construct an L2 Block containing only deposits.
Required Methods§
Sourcefn prepare_payload_attributes<'life0, 'async_trait>(
&'life0 mut self,
l2_parent: L2BlockInfo,
epoch: BlockNumHash,
) -> Pin<Box<dyn Future<Output = PipelineResult<OpPayloadAttributes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn prepare_payload_attributes<'life0, 'async_trait>(
&'life0 mut self,
l2_parent: L2BlockInfo,
epoch: BlockNumHash,
) -> Pin<Box<dyn Future<Output = PipelineResult<OpPayloadAttributes>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Prepares a template OpPayloadAttributes that is ready to be used to build an L2
block. The block will contain deposits only, on top of the given L2 parent, with the L1
origin set to the given epoch.
By default, the OpPayloadAttributes template will have no_tx_pool
set to true,
and no sequencer transactions. The caller has to modify the template to add transactions.
This can be done by either setting the no_tx_pool
to false as sequencer, or by appending
batch transactions as the verifier.