Skip to main content

NoteChainTransfer

Trait NoteChainTransfer 

Source
pub trait NoteChainTransfer<Balance> {
    // Required methods
    fn note_transfer_in(amount: Balance, from_chain_id: ChainId) -> bool;
    fn note_transfer_out(amount: Balance, to_chain_id: ChainId) -> bool;
}
Expand description

Trait to note cross chain transfer

Required Methods§

Source

fn note_transfer_in(amount: Balance, from_chain_id: ChainId) -> bool

Source

fn note_transfer_out(amount: Balance, to_chain_id: ChainId) -> bool

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<Balance> NoteChainTransfer<Balance> for ()

Source§

fn note_transfer_in(_amount: Balance, _from_chain_id: ChainId) -> bool

Source§

fn note_transfer_out(_amount: Balance, _to_chain_id: ChainId) -> bool

Implementors§