op_alloy_consensus

Trait DepositTransaction

Source
pub trait DepositTransaction {
    // Required methods
    fn source_hash(&self) -> Option<B256>;
    fn mint(&self) -> Option<u128>;
    fn is_system_transaction(&self) -> bool;
    fn is_deposit(&self) -> bool;
}
Expand description

A trait representing a deposit transaction with specific attributes.

Required Methods§

Source

fn source_hash(&self) -> Option<B256>

Returns the hash that uniquely identifies the source of the deposit.

§Returns

An Option<B256> containing the source hash if available.

Source

fn mint(&self) -> Option<u128>

Returns the optional mint value of the deposit transaction.

§Returns

An Option<u128> representing the ETH value to mint on L2, if any.

Source

fn is_system_transaction(&self) -> bool

Indicates whether the transaction is exempt from the L2 gas limit.

§Returns

A bool indicating if the transaction is a system transaction.

Source

fn is_deposit(&self) -> bool

Checks if the transaction is a deposit transaction.

§Returns

A bool that is always true for deposit transactions.

Implementors§