maili_consensus/deposit/
envelope.rs

1//! Transaction envelope with support for OP [`TxDeposit`].
2
3use alloy_consensus::Sealed;
4
5use crate::TxDeposit;
6
7/// Transaction envelope that encompasses a [`TxDeposit`].
8pub trait DepositTxEnvelope {
9    /// Returns `true` if the transaction is a deposit transaction.
10    fn is_deposit(&self) -> bool;
11
12    /// Returns [`TxDeposit`] if transaction is a deposit transaction.
13    fn as_deposit(&self) -> Option<&Sealed<TxDeposit>>;
14}