pub struct StatefulAttributesBuilder<L1P, L2P>{ /* private fields */ }
Expand description
A stateful implementation of the AttributesBuilder.
Implementations§
Source§impl<L1P, L2P> StatefulAttributesBuilder<L1P, L2P>
impl<L1P, L2P> StatefulAttributesBuilder<L1P, L2P>
Sourcepub const fn new(
rcfg: Arc<RollupConfig>,
sys_cfg_fetcher: L2P,
receipts: L1P,
) -> Self
pub const fn new( rcfg: Arc<RollupConfig>, sys_cfg_fetcher: L2P, receipts: L1P, ) -> Self
Create a new StatefulAttributesBuilder with the given epoch.
Trait Implementations§
Source§impl<L1P, L2P> AttributesBuilder for StatefulAttributesBuilder<L1P, L2P>
impl<L1P, L2P> AttributesBuilder for StatefulAttributesBuilder<L1P, L2P>
Source§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,
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.Source§impl<L1P, L2P> Debug for StatefulAttributesBuilder<L1P, L2P>
impl<L1P, L2P> Debug for StatefulAttributesBuilder<L1P, L2P>
Source§impl<L1P, L2P> Default for StatefulAttributesBuilder<L1P, L2P>
impl<L1P, L2P> Default for StatefulAttributesBuilder<L1P, L2P>
Source§fn default() -> StatefulAttributesBuilder<L1P, L2P>
fn default() -> StatefulAttributesBuilder<L1P, L2P>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<L1P, L2P> Freeze for StatefulAttributesBuilder<L1P, L2P>
impl<L1P, L2P> RefUnwindSafe for StatefulAttributesBuilder<L1P, L2P>where
L2P: RefUnwindSafe,
L1P: RefUnwindSafe,
impl<L1P, L2P> Send for StatefulAttributesBuilder<L1P, L2P>
impl<L1P, L2P> Sync for StatefulAttributesBuilder<L1P, L2P>
impl<L1P, L2P> Unpin for StatefulAttributesBuilder<L1P, L2P>
impl<L1P, L2P> UnwindSafe for StatefulAttributesBuilder<L1P, L2P>where
L2P: UnwindSafe,
L1P: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more