pub enum DepositError {
Show 14 variants
UnexpectedTopicsLen(usize),
InvalidSelector(B256, B256),
IncompleteOpaqueData(usize),
UnalignedData(usize),
FromDecode(B256),
ToDecode(B256),
InvalidOpaqueDataOffset(Bytes),
InvalidOpaqueDataLength(Bytes),
OpaqueDataOverflow(usize, usize),
PaddedOpaqueDataOverflow(usize, usize),
InvalidVersion(B256),
UnexpectedOpaqueDataLen(usize),
MintDecode(Bytes),
GasDecode(Bytes),
}
Expand description
An op_alloy_consensus::TxDeposit validation error.
Variants§
UnexpectedTopicsLen(usize)
Unexpected number of deposit event log topics.
InvalidSelector(B256, B256)
Invalid deposit event selector. Expected: [B256] (deposit event selector), Actual: [B256] (event log topic).
IncompleteOpaqueData(usize)
Incomplete opaqueData slice header (incomplete length).
UnalignedData(usize)
The log data is not aligned to 32 bytes.
FromDecode(B256)
Failed to decode the from
field of the deposit event (the second topic).
ToDecode(B256)
Failed to decode the to
field of the deposit event (the third topic).
InvalidOpaqueDataOffset(Bytes)
Invalid opaque data content offset.
InvalidOpaqueDataLength(Bytes)
Invalid opaque data content length.
OpaqueDataOverflow(usize, usize)
Opaque data length exceeds the deposit log event data length. Specified: usize (data length), Actual: usize (opaque data length).
PaddedOpaqueDataOverflow(usize, usize)
Opaque data with padding exceeds the specified data length.
InvalidVersion(B256)
An invalid deposit version.
UnexpectedOpaqueDataLen(usize)
Unexpected opaque data length
MintDecode(Bytes)
Failed to decode the deposit mint value.
GasDecode(Bytes)
Failed to decode the deposit gas value.
Trait Implementations§
source§impl Debug for DepositError
impl Debug for DepositError
source§impl Display for DepositError
impl Display for DepositError
source§impl Error for DepositError
impl Error for DepositError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl PartialEq for DepositError
impl PartialEq for DepositError
impl Eq for DepositError
impl StructuralPartialEq for DepositError
Auto Trait Implementations§
impl !Freeze for DepositError
impl RefUnwindSafe for DepositError
impl Send for DepositError
impl Sync for DepositError
impl Unpin for DepositError
impl UnwindSafe for DepositError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes
Size for each variant:
UnexpectedTopicsLen
: 15 bytesInvalidSelector
: 64 bytesIncompleteOpaqueData
: 15 bytesUnalignedData
: 15 bytesFromDecode
: 32 bytesToDecode
: 32 bytesInvalidOpaqueDataOffset
: 39 bytesInvalidOpaqueDataLength
: 39 bytesOpaqueDataOverflow
: 23 bytesPaddedOpaqueDataOverflow
: 23 bytesInvalidVersion
: 32 bytesUnexpectedOpaqueDataLen
: 15 bytesMintDecode
: 39 bytesGasDecode
: 39 bytes