Skip to content

Commit

Permalink
Add wasm queries for burnt nfts (#657)
Browse files Browse the repository at this point in the history
# Description

# Reviewers checklist:
- [ ] Try to write more meaningful comments with clear actions to be
taken.
- [ ] Nit-picking should be unblocking. Focus on core issues.

# Authors checklist
- [x] Provide a concise and meaningful description
- [x] Review the code yourself first, before making the PR.
- [x] Annotate your PR in places that require explanation.
- [x] Think and try to split the PR to smaller PR if it is big.

<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg"
height="34" align="absmiddle"
alt="Reviewable"/>](https://reviewable.io/reviews/CoreumFoundation/coreum/657)
<!-- Reviewable:end -->
  • Loading branch information
keyleu authored Sep 21, 2023
1 parent 5012f5e commit 2d8c958
Show file tree
Hide file tree
Showing 7 changed files with 344 additions and 114 deletions.
9 changes: 9 additions & 0 deletions integration-tests/contracts/modules/nft.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ type NftIDRequest struct {
ID string `json:"id"`
}

// BurntNftIDRequest is used to query burnt nfts with nft_id.
//
//nolint:tagliatelle
type BurntNftIDRequest struct {
NftID string `json:"nft_id"`
}

// NftIssuerRequest is used to query NFT with issuer.
type NftIssuerRequest struct {
Issuer string `json:"issuer"`
Expand Down Expand Up @@ -77,6 +84,8 @@ const (
NftMethodFrozen NftMethod = "frozen"
NftMethodWhitelisted NftMethod = "whitelisted"
NftMethodWhitelistedAccountsForNft NftMethod = "whitelisted_accounts_for_nft"
NftMethodBurntNft NftMethod = "burnt_nft"
NftMethodBurntNftInClass NftMethod = "burnt_nfts_in_class"
NftMethodBalance NftMethod = "balance"
NftMethodOwner NftMethod = "owner"
NftMethodSupply NftMethod = "supply"
Expand Down
Loading

0 comments on commit 2d8c958

Please sign in to comment.