pub struct OpExecutionPayloadV4 {
pub payload_inner: ExecutionPayloadV3,
pub withdrawals_root: FixedBytes<32>,
}
Available on crate feature
rpc-types-engine
only.Expand description
The Opstack execution payload for newPayloadV4
of the engine API introduced with isthmus.
See also https://specs.optimism.io/protocol/isthmus/exec-engine.html#engine_newpayloadv4-api
Fields§
§payload_inner: ExecutionPayloadV3
L1 execution payload
withdrawals_root: FixedBytes<32>
OP-Stack Isthmus specific field: instead of computing the root from a withdrawals list, set it directly. The “withdrawals” list attribute must be non-nil but empty.
Implementations§
Source§impl OpExecutionPayloadV4
impl OpExecutionPayloadV4
Sourcepub const fn from_v3_with_withdrawals_root(
payload: ExecutionPayloadV3,
withdrawals_root: FixedBytes<32>,
) -> OpExecutionPayloadV4
pub const fn from_v3_with_withdrawals_root( payload: ExecutionPayloadV3, withdrawals_root: FixedBytes<32>, ) -> OpExecutionPayloadV4
Converts ExecutionPayloadV3
to OpExecutionPayloadV4
using the given L2 withdrawals
root.
See also ExecutionPayloadV3::from_block_unchecked
.
Sourcepub fn try_into_block<T>(self) -> Result<Block<T>, PayloadError>where
T: Decodable2718,
pub fn try_into_block<T>(self) -> Result<Block<T>, PayloadError>where
T: Decodable2718,
Converts OpExecutionPayloadV4
to Block
.
This performs the same conversion as the underlying V3 payload, but inserts the L2 withdrawals root.
See also ExecutionPayloadV3::try_into_block
.
Trait Implementations§
Source§impl Clone for OpExecutionPayloadV4
impl Clone for OpExecutionPayloadV4
Source§fn clone(&self) -> OpExecutionPayloadV4
fn clone(&self) -> OpExecutionPayloadV4
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OpExecutionPayloadV4
impl Debug for OpExecutionPayloadV4
Source§impl<'de> Deserialize<'de> for OpExecutionPayloadV4
impl<'de> Deserialize<'de> for OpExecutionPayloadV4
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OpExecutionPayloadV4, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OpExecutionPayloadV4, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OpExecutionPayloadV4
impl PartialEq for OpExecutionPayloadV4
Source§impl Serialize for OpExecutionPayloadV4
impl Serialize for OpExecutionPayloadV4
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,
Serialize this value into the given Serde serializer. Read more
impl Eq for OpExecutionPayloadV4
impl StructuralPartialEq for OpExecutionPayloadV4
Auto Trait Implementations§
impl !Freeze for OpExecutionPayloadV4
impl RefUnwindSafe for OpExecutionPayloadV4
impl Send for OpExecutionPayloadV4
impl Sync for OpExecutionPayloadV4
impl Unpin for OpExecutionPayloadV4
impl UnwindSafe for OpExecutionPayloadV4
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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