Expand description
Implementation of the IBC fungible token transfer (ICS-20) data structures.
Modules§
- error
- Defines the token transfer error type
- events
- Defines all token transfer event types
- msgs
- Defines the token transfer message type
- packet
- Contains the
PacketData
type that defines the structure of token transfers’ packet bytes - proto
- Re-exports ICS-20 token transfer proto types from the
ibc-proto
crate.
Structs§
- Amount
- A type for representing token transfer amounts.
- Base
Denom - The “base” of a denomination.
- Coin
- Coin defines a token with a denomination and an amount.
- Memo
- Represents the token transfer memo
- Prefixed
Denom - A type that contains the base denomination for ICS20 and the source tracing information path.
- Trace
Path - A full trace path modelled as a collection of
TracePrefix
s. - Trace
Prefix - One hop in a token’s trace, which consists of the port and channel IDs of the sender
- U256
- Re-exports
U256
fromprimitive-types
crate for convenience. Little-endian large integer type 256-bit unsigned integer.
Constants§
- ACK_
SUCCESS_ B64 - The successful string, used for creating an acknowledgement status.
It is equivalent to
base64::encode(0x01)
. - MODULE_
ID_ STR - Module identifier for the ICS20 application.
- PORT_
ID_ STR - The port identifier that the ICS20 applications typically bind with.
- VERSION
- ICS20 application current version.
Functions§
- ack_
success_ b64 - Returns a successful acknowledgement status for the token transfer application.
- is_
receiver_ chain_ source - Returns true if the denomination originally came from the receiving chain, and false otherwise.
- is_
sender_ chain_ source - Returns true if the denomination originally came from the sender chain, and false otherwise.
Type Aliases§
- Base
Coin - A
Coin
type with an unprefixed denomination. - Prefixed
Coin - A
Coin
type with fully qualifiedPrefixedDenom
. - RawCoin