DepositTxEnvelope

Trait DepositTxEnvelope 

Source
pub trait DepositTxEnvelope {
    type DepositTx: DepositTransaction;

    // Required methods
    fn is_deposit(&self) -> bool;
    fn as_deposit(&self) -> Option<&Sealed<Self::DepositTx>>;
}
Expand description

Transaction envelope that encompasses a DepositTransaction.

Required Associated Types§

Source

type DepositTx: DepositTransaction

Deposit transaction.

Required Methods§

Source

fn is_deposit(&self) -> bool

Returns true if the transaction is a deposit transaction.

Source

fn as_deposit(&self) -> Option<&Sealed<Self::DepositTx>>

Returns DepositTransaction if transaction is a deposit transaction.

Implementors§