pub struct OpExecutionPayloadSidecar { /* private fields */ }
rpc-types-engine
only.Expand description
Container type for all available additional newPayload
request parameters that are not present
in the ExecutionPayload
object itself.
Default is equivalent to pre-canyon, payloads v1 and v2.
Implementations§
Source§impl OpExecutionPayloadSidecar
impl OpExecutionPayloadSidecar
Sourcepub fn from_block<T, H>(block: &Block<T, H>) -> OpExecutionPayloadSidecarwhere
T: Transaction,
H: BlockHeader,
pub fn from_block<T, H>(block: &Block<T, H>) -> OpExecutionPayloadSidecarwhere
T: Transaction,
H: BlockHeader,
Extracts the OpExecutionPayloadSidecar
from the given Block
.
Returns OpExecutionPayloadSidecar::default
if the block does not contain any sidecar
fields (pre-canyon).
Sourcepub fn v3(canyon: CancunPayloadFields) -> OpExecutionPayloadSidecar
pub fn v3(canyon: CancunPayloadFields) -> OpExecutionPayloadSidecar
Creates a new instance for canyon with the canyon fields for engine_newPayloadV3
Sourcepub fn v4(
canyon: CancunPayloadFields,
isthmus: PraguePayloadFields,
) -> OpExecutionPayloadSidecar
pub fn v4( canyon: CancunPayloadFields, isthmus: PraguePayloadFields, ) -> OpExecutionPayloadSidecar
Creates a new instance post prague for engine_newPayloadV4
Sourcepub const fn canyon(&self) -> Option<&CancunPayloadFields>
pub const fn canyon(&self) -> Option<&CancunPayloadFields>
Returns a reference to the CancunPayloadFields
.
Sourcepub fn into_canyon(self) -> Option<CancunPayloadFields>
pub fn into_canyon(self) -> Option<CancunPayloadFields>
Consumes the type and returns the CancunPayloadFields
Sourcepub const fn isthmus(&self) -> Option<&PraguePayloadFields>
pub const fn isthmus(&self) -> Option<&PraguePayloadFields>
Returns a reference to the PraguePayloadFields
.
Sourcepub fn into_isthmus(self) -> Option<PraguePayloadFields>
pub fn into_isthmus(self) -> Option<PraguePayloadFields>
Consumes the type and returns the PraguePayloadFields
Sourcepub fn parent_beacon_block_root(&self) -> Option<FixedBytes<32>>
pub fn parent_beacon_block_root(&self) -> Option<FixedBytes<32>>
Returns the parent beacon block root, if any.
Sourcepub fn requests_hash(&self) -> Option<FixedBytes<32>>
pub fn requests_hash(&self) -> Option<FixedBytes<32>>
Returns the EL request hash. Should always be empty root hash, see docs for
OpExecutionPayloadSidecar
isthmus fields.
Sourcepub fn versioned_hashes(&self) -> Option<&Vec<FixedBytes<32>>>
pub fn versioned_hashes(&self) -> Option<&Vec<FixedBytes<32>>>
Returns the blob versioned hashes. Should always be empty array, see docs for
OpExecutionPayloadSidecar
canyon fields.
Trait Implementations§
Source§impl Clone for OpExecutionPayloadSidecar
impl Clone for OpExecutionPayloadSidecar
Source§fn clone(&self) -> OpExecutionPayloadSidecar
fn clone(&self) -> OpExecutionPayloadSidecar
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OpExecutionPayloadSidecar
impl Debug for OpExecutionPayloadSidecar
Source§impl Default for OpExecutionPayloadSidecar
impl Default for OpExecutionPayloadSidecar
Source§fn default() -> OpExecutionPayloadSidecar
fn default() -> OpExecutionPayloadSidecar
Source§impl<'de> Deserialize<'de> for OpExecutionPayloadSidecar
impl<'de> Deserialize<'de> for OpExecutionPayloadSidecar
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OpExecutionPayloadSidecar, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OpExecutionPayloadSidecar, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for OpExecutionPayloadSidecar
impl Serialize for OpExecutionPayloadSidecar
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for OpExecutionPayloadSidecar
impl RefUnwindSafe for OpExecutionPayloadSidecar
impl Send for OpExecutionPayloadSidecar
impl Sync for OpExecutionPayloadSidecar
impl Unpin for OpExecutionPayloadSidecar
impl UnwindSafe for OpExecutionPayloadSidecar
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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