pub enum ExecutionPayload<T: EthSpec> {
Merge(ExecutionPayloadMerge<T>),
Capella(ExecutionPayloadCapella<T>),
Eip4844(ExecutionPayloadEip4844<T>),
}Variants§
Merge(ExecutionPayloadMerge<T>)
Capella(ExecutionPayloadCapella<T>)
Eip4844(ExecutionPayloadEip4844<T>)
Implementations§
Source§impl<T: EthSpec> ExecutionPayload<T>
impl<T: EthSpec> ExecutionPayload<T>
pub fn to_ref<'__superstruct>( &'__superstruct self, ) -> ExecutionPayloadRef<'__superstruct, T>
pub fn to_mut<'__superstruct>( &'__superstruct mut self, ) -> ExecutionPayloadRefMut<'__superstruct, T>
pub fn as_merge(&self) -> Result<&ExecutionPayloadMerge<T>, Error>
pub fn as_merge_mut(&mut self) -> Result<&mut ExecutionPayloadMerge<T>, Error>
pub fn as_capella(&self) -> Result<&ExecutionPayloadCapella<T>, Error>
pub fn as_capella_mut( &mut self, ) -> Result<&mut ExecutionPayloadCapella<T>, Error>
pub fn as_eip4844(&self) -> Result<&ExecutionPayloadEip4844<T>, Error>
pub fn as_eip4844_mut( &mut self, ) -> Result<&mut ExecutionPayloadEip4844<T>, Error>
pub fn parent_hash(&self) -> ExecutionBlockHash
pub fn fee_recipient(&self) -> Address
pub fn state_root(&self) -> Hash256
pub fn receipts_root(&self) -> Hash256
pub fn logs_bloom(&self) -> &FixedVector<u8, T::BytesPerLogsBloom>
pub fn prev_randao(&self) -> Hash256
pub fn block_number(&self) -> u64
pub fn gas_limit(&self) -> u64
pub fn gas_used(&self) -> u64
pub fn timestamp(&self) -> u64
pub fn extra_data(&self) -> &VariableList<u8, T::MaxExtraDataBytes>
pub fn base_fee_per_gas(&self) -> Uint256
pub fn block_hash(&self) -> ExecutionBlockHash
pub fn transactions(&self) -> &Transactions<T>
pub fn parent_hash_mut(&mut self) -> &mut ExecutionBlockHash
pub fn fee_recipient_mut(&mut self) -> &mut Address
pub fn state_root_mut(&mut self) -> &mut Hash256
pub fn receipts_root_mut(&mut self) -> &mut Hash256
pub fn logs_bloom_mut(&mut self) -> &mut FixedVector<u8, T::BytesPerLogsBloom>
pub fn prev_randao_mut(&mut self) -> &mut Hash256
pub fn block_number_mut(&mut self) -> &mut u64
pub fn gas_limit_mut(&mut self) -> &mut u64
pub fn gas_used_mut(&mut self) -> &mut u64
pub fn timestamp_mut(&mut self) -> &mut u64
pub fn extra_data_mut(&mut self) -> &mut VariableList<u8, T::MaxExtraDataBytes>
pub fn base_fee_per_gas_mut(&mut self) -> &mut Uint256
pub fn block_hash_mut(&mut self) -> &mut ExecutionBlockHash
pub fn transactions_mut(&mut self) -> &mut Transactions<T>
pub fn excess_data_gas(&self) -> Result<&Uint256, Error>
pub fn excess_data_gas_mut(&mut self) -> Result<&mut Uint256, Error>
pub fn withdrawals(&self) -> Result<&Withdrawals<T>, Error>
pub fn withdrawals_mut(&mut self) -> Result<&mut Withdrawals<T>, Error>
Trait Implementations§
Source§impl<T: Clone + EthSpec> Clone for ExecutionPayload<T>
impl<T: Clone + EthSpec> Clone for ExecutionPayload<T>
Source§fn clone(&self) -> ExecutionPayload<T>
fn clone(&self) -> ExecutionPayload<T>
Returns a duplicate 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<'de, T> Deserialize<'de> for ExecutionPayload<T>where
T: EthSpec,
impl<'de, T> Deserialize<'de> for ExecutionPayload<T>where
T: EthSpec,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'__superstruct, T: '__superstruct + EthSpec> From<&'__superstruct ExecutionPayload<T>> for ExecutionPayloadRef<'__superstruct, T>
impl<'__superstruct, T: '__superstruct + EthSpec> From<&'__superstruct ExecutionPayload<T>> for ExecutionPayloadRef<'__superstruct, T>
Source§fn from(ref_to_enum: &'__superstruct ExecutionPayload<T>) -> Self
fn from(ref_to_enum: &'__superstruct ExecutionPayload<T>) -> Self
Converts to this type from the input type.
Source§impl<T: EthSpec> From<ExecutionPayload<T>> for JsonExecutionPayload<T>
impl<T: EthSpec> From<ExecutionPayload<T>> for JsonExecutionPayload<T>
Source§fn from(execution_payload: ExecutionPayload<T>) -> Self
fn from(execution_payload: ExecutionPayload<T>) -> Self
Converts to this type from the input type.
Source§impl<T: EthSpec> From<ExecutionPayloadCapella<T>> for ExecutionPayload<T>
impl<T: EthSpec> From<ExecutionPayloadCapella<T>> for ExecutionPayload<T>
Source§fn from(variant: ExecutionPayloadCapella<T>) -> Self
fn from(variant: ExecutionPayloadCapella<T>) -> Self
Converts to this type from the input type.
Source§impl<T: EthSpec> From<ExecutionPayloadEip4844<T>> for ExecutionPayload<T>
impl<T: EthSpec> From<ExecutionPayloadEip4844<T>> for ExecutionPayload<T>
Source§fn from(variant: ExecutionPayloadEip4844<T>) -> Self
fn from(variant: ExecutionPayloadEip4844<T>) -> Self
Converts to this type from the input type.
Source§impl<T: EthSpec> From<ExecutionPayloadMerge<T>> for ExecutionPayload<T>
impl<T: EthSpec> From<ExecutionPayloadMerge<T>> for ExecutionPayload<T>
Source§fn from(variant: ExecutionPayloadMerge<T>) -> Self
fn from(variant: ExecutionPayloadMerge<T>) -> Self
Converts to this type from the input type.
Source§impl<T: EthSpec> From<GetJsonPayloadResponse<T>> for ExecutionPayload<T>
impl<T: EthSpec> From<GetJsonPayloadResponse<T>> for ExecutionPayload<T>
Source§fn from(json_payload: GetJsonPayloadResponse<T>) -> ExecutionPayload<T>
fn from(json_payload: GetJsonPayloadResponse<T>) -> ExecutionPayload<T>
Converts to this type from the input type.
Source§impl<T: EthSpec> From<GetPayloadResponse<T>> for ExecutionPayload<T>
impl<T: EthSpec> From<GetPayloadResponse<T>> for ExecutionPayload<T>
Source§fn from(response: GetPayloadResponse<T>) -> Self
fn from(response: GetPayloadResponse<T>) -> Self
Converts to this type from the input type.
Source§impl<T: EthSpec> From<JsonExecutionPayload<T>> for ExecutionPayload<T>
impl<T: EthSpec> From<JsonExecutionPayload<T>> for ExecutionPayload<T>
Source§fn from(json_execution_payload: JsonExecutionPayload<T>) -> Self
fn from(json_execution_payload: JsonExecutionPayload<T>) -> Self
Converts to this type from the input type.
Source§impl<T> Hash for ExecutionPayload<T>where
T: EthSpec,
impl<T> Hash for ExecutionPayload<T>where
T: EthSpec,
Source§impl<T> PartialEq for ExecutionPayload<T>
impl<T> PartialEq for ExecutionPayload<T>
Source§impl<T> Serialize for ExecutionPayload<T>where
T: EthSpec,
impl<T> Serialize for ExecutionPayload<T>where
T: EthSpec,
Auto Trait Implementations§
impl<T> Freeze for ExecutionPayload<T>
impl<T> RefUnwindSafe for ExecutionPayload<T>where
<T as EthSpec>::BytesPerLogsBloom: RefUnwindSafe,
<T as EthSpec>::MaxExtraDataBytes: RefUnwindSafe,
<T as EthSpec>::MaxTransactionsPerPayload: RefUnwindSafe,
<T as EthSpec>::MaxWithdrawalsPerPayload: RefUnwindSafe,
<T as EthSpec>::MaxBytesPerTransaction: RefUnwindSafe,
impl<T> Send for ExecutionPayload<T>
impl<T> Sync for ExecutionPayload<T>
impl<T> Unpin for ExecutionPayload<T>where
<T as EthSpec>::BytesPerLogsBloom: Unpin,
<T as EthSpec>::MaxExtraDataBytes: Unpin,
<T as EthSpec>::MaxTransactionsPerPayload: Unpin,
<T as EthSpec>::MaxWithdrawalsPerPayload: Unpin,
<T as EthSpec>::MaxBytesPerTransaction: Unpin,
impl<T> UnwindSafe for ExecutionPayload<T>where
<T as EthSpec>::BytesPerLogsBloom: UnwindSafe,
<T as EthSpec>::MaxExtraDataBytes: UnwindSafe,
<T as EthSpec>::MaxTransactionsPerPayload: UnwindSafe,
<T as EthSpec>::MaxWithdrawalsPerPayload: UnwindSafe,
<T as EthSpec>::MaxBytesPerTransaction: 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> 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>
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