Expand description
Implementation of the IBC Non-Fungible Token Transfer (ICS-721) data structures.
Modules§
- error
- Defines the Non-Fungible Token Transfer (ICS-721) error types.
- events
- Defines Non-Fungible Token Transfer (ICS-721) event types.
- msgs
- Defines the Non-Fungible Token Transfer (ICS-721) message types.
- packet
- Contains the
PacketData
type that defines the structure of NFT transfers’ packet bytes - proto
- Re-exports ICS-721 NFT transfer proto types from the
ibc-proto
crate.
Structs§
- Class
Data - Class data for an NFT
- ClassId
- Class ID for an NFT
- Class
Uri - Class URI for an NFT
- Data
- Data
Value - Ics721
Data - Memo
- Represents the token transfer memo
- Prefixed
Class Id - Prefixed class to trace sources like ICS-20 PrefixedDenom
- Token
Data - Token data for an NFT
- TokenId
- Token ID for an NFT
- Token
Ids - Token
Uri - Token URI for an NFT
- 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
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 ICS-721 application.
- PORT_
ID_ STR - The port identifier that the ICS-721 applications typically bind with.
- VERSION
- ICS-721 application current version.
Functions§
- ack_
success_ b64 - Returns a successful acknowledgement status for the NFT transfer application.
- is_
receiver_ chain_ source - Returns true if the class ID originally came from the receiving chain, and false otherwise.
- is_
sender_ chain_ source - Returns true if the class ID originally came from the sender chain, and false otherwise.