pub enum DepositError {
Show 14 variants
UnexpectedTopicsLen(usize),
InvalidSelector(FixedBytes<32>, FixedBytes<32>),
IncompleteOpaqueData(usize),
UnalignedData(usize),
FromDecode(FixedBytes<32>),
ToDecode(FixedBytes<32>),
InvalidOpaqueDataOffset(Bytes),
InvalidOpaqueDataLength(Bytes),
OpaqueDataOverflow(usize, usize),
PaddedOpaqueDataOverflow(usize, usize),
InvalidVersion(FixedBytes<32>),
UnexpectedOpaqueDataLen(usize),
MintDecode(Bytes),
GasDecode(Bytes),
}
protocol
only.Expand description
An op_alloy_consensus::TxDeposit validation error.
Variants§
UnexpectedTopicsLen(usize)
Unexpected number of deposit event log topics.
InvalidSelector(FixedBytes<32>, FixedBytes<32>)
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(FixedBytes<32>)
Failed to decode the from
field of the deposit event (the second topic).
ToDecode(FixedBytes<32>)
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. Specified: usize (data length), Actual: usize (opaque data length).
InvalidVersion(FixedBytes<32>)
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
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
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<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>
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