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

Tracks approve_all status changes
Cw1155BatchReceiveMsg should be de/serialized under BatchReceive() variant in a ExecuteMsg
Cw1155ReceiveMsg should be de/serialized under Receive() variant in a ExecuteMsg
Tracks token metadata changes
Tracks token transfer/mint/burn actions

Enums

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)

Type Definitions