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.