TempoTx

Trait TempoTx 

Source
pub trait TempoTx {
    // Required methods
    fn fee_token(&self) -> Option<Address>;
    fn is_aa(&self) -> bool;
    fn calls(&self) -> impl Iterator<Item = (TxKind, &Bytes)>;
    fn caller(&self) -> Address;
}
Expand description

Helper trait to abstract over different representations of Tempo transactions.

Required Methods§

Source

fn fee_token(&self) -> Option<Address>

Returns the transaction’s feeToken field, if configured.

Source

fn is_aa(&self) -> bool

Returns true if this is an AA transaction.

Source

fn calls(&self) -> impl Iterator<Item = (TxKind, &Bytes)>

Returns an iterator over the transaction’s calls.

Source

fn caller(&self) -> Address

Returns the transaction’s caller address.

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.

Implementations on Foreign Types§

Source§

impl TempoTx for Recovered<TempoTxEnvelope>

Source§

fn fee_token(&self) -> Option<Address>

Source§

fn is_aa(&self) -> bool

Source§

fn calls(&self) -> impl Iterator<Item = (TxKind, &Bytes)>

Source§

fn caller(&self) -> Address

Source§

impl<'a, T: 'a + TempoTx + ?Sized> TempoTx for &'a T

Source§

fn fee_token(&self) -> Option<Address>

Source§

fn is_aa(&self) -> bool

Source§

fn calls(&self) -> impl Iterator<Item = (TxKind, &Bytes)>

Source§

fn caller(&self) -> Address

Implementors§