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,
) -> StatefulAttributesBuilder<L1P, L2P>
pub const fn new( rcfg: Arc<RollupConfig>, sys_cfg_fetcher: L2P, receipts: L1P, ) -> StatefulAttributesBuilder<L1P, L2P>
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: NumHash,
) -> Pin<Box<dyn Future<Output = Result<OpPayloadAttributes, PipelineErrorKind>> + Send + 'async_trait>>where
'life0: 'async_trait,
StatefulAttributesBuilder<L1P, L2P>: 'async_trait,
fn prepare_payload_attributes<'life0, 'async_trait>(
&'life0 mut self,
l2_parent: L2BlockInfo,
epoch: NumHash,
) -> Pin<Box<dyn Future<Output = Result<OpPayloadAttributes, PipelineErrorKind>> + Send + 'async_trait>>where
'life0: 'async_trait,
StatefulAttributesBuilder<L1P, L2P>: '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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more