Struct cw20_ics20::ibc::Ics20Packet [−][src]
pub struct Ics20Packet {
pub amount: Uint128,
pub denom: String,
pub receiver: String,
pub sender: String,
}
Expand description
The format for sending an ics20 packet. Proto defined here: https://github.com/cosmos/cosmos-sdk/blob/v0.42.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20 This is compatible with the JSON serialization
Fields
amount: Uint128
amount of tokens to transfer is encoded as a string, but limited to u64 max
denom: String
the token denomination to be transferred
receiver: String
the recipient address on the destination chain
sender: String
the sender address
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Ics20Packet
impl Send for Ics20Packet
impl Sync for Ics20Packet
impl Unpin for Ics20Packet
impl UnwindSafe for Ics20Packet
Blanket Implementations
Mutably borrows from an owned value. Read more