OpTransaction

Trait OpTransaction 

pub trait OpTransaction {
    // Required methods
    fn is_deposit(&self) -> bool;
    fn as_deposit(&self) -> Option<&Sealed<TxDeposit>>;
}
Expand description

Re-exported optimism types Represents an Optimism transaction envelope.

Compared to Ethereum it can tell whether the transaction is a deposit.

Required Methods§

fn is_deposit(&self) -> bool

Returns true if the transaction is a deposit.

fn as_deposit(&self) -> Option<&Sealed<TxDeposit>>

Returns Some if the transaction is a deposit.

Implementations on Foreign Types§

§

impl<B, T> OpTransaction for Extended<B, T>

§

fn is_deposit(&self) -> bool

§

fn as_deposit(&self) -> Option<&Sealed<TxDeposit>>

Implementors§

§

impl OpTransaction for OpTxEnvelope

§

impl<B, T> OpTransaction for reth_op::primitives::Extended<B, T>