pub trait OpTxTr: Transaction {
// Required methods
fn enveloped_tx(&self) -> Option<&Bytes>;
fn source_hash(&self) -> Option<B256>;
fn mint(&self) -> Option<u128>;
fn is_system_transaction(&self) -> bool;
// Provided method
fn is_deposit(&self) -> bool { ... }
}
Required Methods§
fn enveloped_tx(&self) -> Option<&Bytes>
Sourcefn source_hash(&self) -> Option<B256>
fn source_hash(&self) -> Option<B256>
Source hash of the deposit transaction
Sourcefn is_system_transaction(&self) -> bool
fn is_system_transaction(&self) -> bool
Whether the transaction is a system transaction
Provided Methods§
Sourcefn is_deposit(&self) -> bool
fn is_deposit(&self) -> bool
Returns true
if transaction is of type DEPOSIT_TRANSACTION_TYPE
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.