Expand description
CW1155 is a specification for managing multiple tokens based on CosmWasm. The name and design is based on Ethereum’s ERC1155 standard.
The specification is split into multiple sections, a contract may only implement some of this functionality, but must implement the base.
Fungible tokens and non-fungible tokens are treated equally, non-fungible tokens just have one max supply.
Approval is set or unset to some operator over entire set of tokens. (More nuanced control is defined in ERC1761)
For more information on this specification, please check out the README.
Structs§
- Approval
- Approve
AllEvent - Tracks approve_all status changes
- Approved
ForAll Response - Balance
Response - Batch
Balance Response - Cw1155
Batch Receive Msg - Cw1155BatchReceiveMsg should be de/serialized under
BatchReceive()variant in a ExecuteMsg - Cw1155
Receive Msg - Cw1155ReceiveMsg should be de/serialized under
Receive()variant in a ExecuteMsg - IsApproved
ForAll Response - Metadata
Event - Tracks token metadata changes
- Token
Info Response - Tokens
Response - Transfer
Event - Tracks token transfer/mint/burn actions
Enums§
- Cw1155
Execute Msg - Cw1155
Query Msg - Expiration
- Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)