Struct ibc::applications::transfer::msgs::transfer::MsgTransfer
source · pub struct MsgTransfer<C = Coin> {
pub source_port: PortId,
pub source_channel: ChannelId,
pub token: C,
pub sender: Signer,
pub receiver: Signer,
pub timeout_height: TimeoutHeight,
pub timeout_timestamp: Timestamp,
}
Expand description
Message used to build an ICS20 token transfer packet.
Note that this message is not a packet yet, as it lacks the proper sequence number, and destination port/channel. This is by design. The sender of the packet, which might be the user of a command line application, should only have to specify the information related to the transfer of the token, and let the library figure out how to build the packet properly.
Fields
source_port: PortId
the port on which the packet will be sent
source_channel: ChannelId
the channel by which the packet will be sent
token: C
the tokens to be transferred
sender: Signer
the sender address
receiver: Signer
the recipient address on the destination chain
timeout_height: TimeoutHeight
Timeout height relative to the current block height. The timeout is disabled when set to None.
timeout_timestamp: Timestamp
Timeout timestamp relative to the current block timestamp. The timeout is disabled when set to 0.
Trait Implementations
sourceimpl<C: Clone> Clone for MsgTransfer<C>
impl<C: Clone> Clone for MsgTransfer<C>
sourcefn clone(&self) -> MsgTransfer<C>
fn clone(&self) -> MsgTransfer<C>
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl<C: Debug> Debug for MsgTransfer<C>
impl<C: Debug> Debug for MsgTransfer<C>
sourceimpl From<MsgTransfer<Coin>> for Any
impl From<MsgTransfer<Coin>> for Any
sourcefn from(msg: MsgTransfer) -> Self
fn from(msg: MsgTransfer) -> Self
sourceimpl From<MsgTransfer<Coin>> for RawMsgTransfer
impl From<MsgTransfer<Coin>> for RawMsgTransfer
sourcefn from(domain_msg: MsgTransfer) -> Self
fn from(domain_msg: MsgTransfer) -> Self
sourceimpl Msg for MsgTransfer
impl Msg for MsgTransfer
type ValidationError = Error
type Raw = MsgTransfer
fn route(&self) -> String
sourcefn type_url(&self) -> String
fn type_url(&self) -> String
prost_types::Any
.fn to_any(self) -> Any
fn get_sign_bytes(self) -> Vec<u8> ⓘ
fn validate_basic(&self) -> Result<(), ValidationError>
sourceimpl<C: PartialEq> PartialEq<MsgTransfer<C>> for MsgTransfer<C>
impl<C: PartialEq> PartialEq<MsgTransfer<C>> for MsgTransfer<C>
sourcefn eq(&self, other: &MsgTransfer<C>) -> bool
fn eq(&self, other: &MsgTransfer<C>) -> bool
sourceimpl Protobuf<MsgTransfer> for MsgTransfer
impl Protobuf<MsgTransfer> for MsgTransfer
sourcefn encode(&self, buf: &mut Vec<u8, Global>) -> Result<(), Error>
fn encode(&self, buf: &mut Vec<u8, Global>) -> Result<(), Error>
sourcefn encode_length_delimited(&self, buf: &mut Vec<u8, Global>) -> Result<(), Error>
fn encode_length_delimited(&self, buf: &mut Vec<u8, Global>) -> Result<(), Error>
sourcefn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Self: Sized,
fn decode<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Self: Sized,
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Self: Sized,
fn decode_length_delimited<B>(buf: B) -> Result<Self, Error>where
B: Buf,
Self: Sized,
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
sourcefn encode_vec(&self) -> Result<Vec<u8, Global>, Error>
fn encode_vec(&self) -> Result<Vec<u8, Global>, Error>
Vec<u8>
.sourcefn decode_vec(v: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn decode_vec(v: &[u8]) -> Result<Self, Error>where
Self: Sized,
Vec<u8>
(or equivalent). Read moresourcefn encode_length_delimited_vec(&self) -> Result<Vec<u8, Global>, Error>
fn encode_length_delimited_vec(&self) -> Result<Vec<u8, Global>, Error>
Vec<u8>
Protobuf-encoded message.sourcefn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>where
Self: Sized,
fn decode_length_delimited_vec(v: &[u8]) -> Result<Self, Error>where
Self: Sized,
Vec<u8>
or equivalent. Read more