Expand description
CW20 is a specification for fungible tokens based on CosmWasm. The name and design is loosely based on Ethereum’s ERC20 standard, but many changes have been made. The types in here can be imported by contracts that wish to implement this spec, or by contracts that call to any standard cw20 contract.
For more information on this specification, please check out the README.
Structs§
- AllAccounts
Response - AllAllowances
Response - AllSpender
Allowances Response - Allowance
Info - Allowance
Response - Balance
Response - Cw20
Coin - Cw20
Coin Verified - Cw20
Contract - Cw20Contract is a wrapper around Addr that provides a lot of helpers for working with this.
- Cw20
Receive Msg - Cw20ReceiveMsg should be de/serialized under
Receive()
variant in a ExecuteMsg - Download
Logo Response - When we download an embedded logo, we get this response type. We expect a SPA to be able to accept this info and display it.
- Marketing
Info Response - Minter
Response - Spender
Allowance Info - Token
Info Response
Enums§
- Balance
- Cw20
Execute Msg - Cw20
Query Msg - Denom
- Embedded
Logo - This is used to store the logo on the blockchain in an accepted format. Enforce maximum size of 5KB on all variants.
- 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)
- Logo
- This is used for uploading logo data, or setting it in InstantiateData
- Logo
Info - This is used to display logo info, provide a link or inform there is one that can be downloaded from the blockchain itself
- Unchecked
Denom