pub struct RollupNodeBuilder { /* private fields */ }Expand description
The RollupNodeBuilder is used to construct a RollupNode service.
Implementations§
Source§impl RollupNodeBuilder
impl RollupNodeBuilder
Sourcepub fn new(config: RollupConfig) -> Self
pub fn new(config: RollupConfig) -> Self
Creates a new RollupNodeBuilder with the given RollupConfig.
Sourcepub fn with_mode(self, mode: NodeMode) -> Self
pub fn with_mode(self, mode: NodeMode) -> Self
Sets the NodeMode on the RollupNodeBuilder.
Sourcepub fn with_l1_provider_rpc_url(self, l1_provider_rpc_url: Url) -> Self
pub fn with_l1_provider_rpc_url(self, l1_provider_rpc_url: Url) -> Self
Appends an L1 EL provider RPC URL to the builder.
Sourcepub fn with_l1_beacon_api_url(self, l1_beacon_api_url: Url) -> Self
pub fn with_l1_beacon_api_url(self, l1_beacon_api_url: Url) -> Self
Appends an L1 beacon API URL to the builder.
Sourcepub fn with_l2_engine_rpc_url(self, l2_engine_rpc_url: Url) -> Self
pub fn with_l2_engine_rpc_url(self, l2_engine_rpc_url: Url) -> Self
Appends an L2 engine RPC URL to the builder.
Sourcepub fn with_jwt_secret(self, jwt_secret: JwtSecret) -> Self
pub fn with_jwt_secret(self, jwt_secret: JwtSecret) -> Self
Appends a JWT secret to the builder.
Sourcepub fn with_p2p_config(self, config: NetworkConfig) -> Self
pub fn with_p2p_config(self, config: NetworkConfig) -> Self
Appends the P2P NetworkConfig to the builder.
Sourcepub fn with_rpc_config(self, rpc_config: Option<RpcBuilder>) -> Self
pub fn with_rpc_config(self, rpc_config: Option<RpcBuilder>) -> Self
Sets the RpcBuilder on the RollupNodeBuilder.
Sourcepub fn with_sequencer_config(self, sequencer_config: SequencerConfig) -> Self
pub fn with_sequencer_config(self, sequencer_config: SequencerConfig) -> Self
Appends the SequencerConfig to the builder.
Sourcepub fn build(self) -> RollupNode
pub fn build(self) -> RollupNode
Assembles the RollupNode service.
§Panics
Panics if:
- The L1 provider RPC URL is not set.
- The L1 beacon API URL is not set.
- The L2 provider RPC URL is not set.
- The L2 engine URL is not set.
- The jwt secret is not set.
- The P2P config is not set.
Trait Implementations§
Source§impl Debug for RollupNodeBuilder
impl Debug for RollupNodeBuilder
Source§impl Default for RollupNodeBuilder
impl Default for RollupNodeBuilder
Source§fn default() -> RollupNodeBuilder
fn default() -> RollupNodeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RollupNodeBuilder
impl !RefUnwindSafe for RollupNodeBuilder
impl Send for RollupNodeBuilder
impl Sync for RollupNodeBuilder
impl Unpin for RollupNodeBuilder
impl !UnwindSafe for RollupNodeBuilder
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