[][src]Struct ibc_proto::transfer::MsgTransfer

pub struct MsgTransfer {
    pub source_port: String,
    pub source_channel: String,
    pub token: Option<Coin>,
    pub sender: Vec<u8>,
    pub receiver: String,
    pub timeout_height: u64,
    pub timeout_timestamp: u64,
}

MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between ICS20 enabled chains. See ICS Spec here: https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures

Fields

source_port: String

the port on which the packet will be sent

source_channel: String

the channel by which the packet will be sent

token: Option<Coin>

the tokens to be transferred

sender: Vec<u8>

the sender address

receiver: String

the recipient address on the destination chain

timeout_height: u64

Timeout height relative to the current block height. The timeout is disabled when set to 0.

timeout_timestamp: u64

Timeout timestamp (in nanoseconds) relative to the current block timestamp. The timeout is disabled when set to 0.

Trait Implementations

impl Clone for MsgTransfer[src]

impl Debug for MsgTransfer[src]

impl Default for MsgTransfer[src]

impl Message for MsgTransfer[src]

impl PartialEq<MsgTransfer> for MsgTransfer[src]

impl StructuralPartialEq for MsgTransfer[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.