Skip to content

Commit

Permalink
Merge pull request #746 from D3LAB-DAO/cw20-spec-fix
Browse files Browse the repository at this point in the history
Fix specification about CW20 Enumerable Queries
  • Loading branch information
ueco-jb authored Jun 28, 2022
2 parents 07ed03e + 5c1b39f commit 9d0f06d
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/cw20/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ the minter is a smart contract.
This should be enabled with all blockchains that have iterator support.
It allows us to get lists of results with pagination.

### Queries

`AllAllowances{owner, start_after, limit}` - Returns the list of all non-expired allowances
by the given owner. `start_after` and `limit` provide pagination.

`AllAccounts{start_after, limit}` - Returns the list of all accounts that have been created on
the contract (just the addresses). `start_after` and `limit` provide pagination.

## Marketing

This allows us to attach more metadata on the token to help with displaying the token in
Expand Down Expand Up @@ -173,11 +181,3 @@ account, this will update some marketing-related metadata on the contract.
`DownloadLogo{}` - If the token's logo was previously uploaded to the blockchain
(see `UploadLogo` message), then it returns the raw data to be displayed in a browser.
Return type is `DownloadLogoResponse{ mime_type, data }`.

### Queries

`AllAllowances{owner, start_after, limit}` - Returns the list of all non-expired allowances
by the given owner. `start_after` and `limit` provide pagination.

`AllAccounts{start_after, limit}` - Returns the list of all accounts that have been created on
the contract (just the addresses). `start_after` and `limit` provide pagination.

0 comments on commit 9d0f06d

Please sign in to comment.