TransferHandler

Trait TransferHandler 

Source
pub trait TransferHandler<Recipient> {
    // Required method
    fn handle_incoming_transfer(_transfer: BridgeTransferV1<Recipient>);
}
Expand description

Runtime logic for handling incoming token bridge transfers from Cardano

The chain builder should implement in accordance with their particular business rules and ledger structure. Calls to all functions defined by this trait should not return any errors as this would fail the block creation. Instead, any validation and business logic errors should be handled gracefully inside the handler code.

Required Methods§

Source

fn handle_incoming_transfer(_transfer: BridgeTransferV1<Recipient>)

Should handle an incoming token transfer of token_mount tokens to recipient

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<Recipient> TransferHandler<Recipient> for ()

No-op implementation of TransferHandler for unit type.

Implementors§