pub enum QueryWithPermit {
Show 15 variants
RoyaltyInfo {
token_id: Option<String>,
},
PrivateMetadata {
token_id: String,
},
NftDossier {
token_id: String,
include_expired: Option<bool>,
},
BatchNftDossier {
token_ids: Vec<String>,
include_expired: Option<bool>,
},
OwnerOf {
token_id: String,
include_expired: Option<bool>,
},
AllNftInfo {
token_id: String,
include_expired: Option<bool>,
},
InventoryApprovals {
include_expired: Option<bool>,
},
VerifyTransferApproval {
token_ids: Vec<String>,
},
TransactionHistory {
page: Option<u32>,
page_size: Option<u32>,
},
NumTokens {},
AllTokens {
start_after: Option<String>,
limit: Option<u32>,
},
TokenApprovals {
token_id: String,
include_expired: Option<bool>,
},
ApprovedForAll {
include_expired: Option<bool>,
},
Tokens {
owner: HumanAddr,
start_after: Option<String>,
limit: Option<u32>,
},
NumTokensOfOwner {
owner: HumanAddr,
},
}Expand description
queries using permits instead of viewing keys
Variants§
RoyaltyInfo
display the royalty information of a token if a token ID is specified, or display the contract’s default royalty information in no token ID is provided
Fields
PrivateMetadata
displays the private metadata if permitted to view it
NftDossier
displays all the information about a token that the viewer has permission to see. This may include the owner, the public metadata, the private metadata, royalty information, mint run information, whether the token is unwrapped, whether the token is transferable, and the token and inventory approvals
Fields
BatchNftDossier
displays all the information about multiple tokens that the viewer has permission to see. This may include the owner, the public metadata, the private metadata, royalty information, mint run information, whether the token is unwrapped, whether the token is transferable, and the token and inventory approvals
Fields
OwnerOf
display the owner of the specified token if authorized to view it. If the requester is also the token’s owner, the response will also include a list of any addresses that can transfer this token. The transfer approval list is for CW721 compliance, but the NftDossier query will be more complete by showing viewing approvals as well
Fields
AllNftInfo
displays all the information contained in the OwnerOf and NftInfo queries
Fields
InventoryApprovals
list all the inventory-wide approvals in place for the permit creator
Fields
VerifyTransferApproval
verify that the permit creator has approval to transfer every listed token.
A token will count as unapproved if it is non-transferable
TransactionHistory
display the transaction history for the permit creator in reverse chronological order
Fields
NumTokens
display the number of tokens controlled by the contract. The token supply must either be public, or the querier must be an authenticated minter
AllTokens
display an optionally paginated list of all the tokens controlled by the contract. The token supply must either be public, or the querier must be an authenticated minter
Fields
TokenApprovals
list all the approvals in place for a specified token if given the owner’s permit
Fields
ApprovedForAll
displays a list of all the CW721-style operators (any address that was granted approval to transfer all of the owner’s tokens). This query is provided to maintain CW721 compliance
Fields
Tokens
displays a list of all the tokens belonging to the input owner in which the permit creator has view_owner permission
Fields
NumTokensOfOwner
displays the number of tokens that the querier has permission to see the owner and that belong to the specified address
Trait Implementations§
Source§impl Clone for QueryWithPermit
impl Clone for QueryWithPermit
Source§impl Debug for QueryWithPermit
impl Debug for QueryWithPermit
Source§impl<'de> Deserialize<'de> for QueryWithPermit
impl<'de> Deserialize<'de> for QueryWithPermit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for QueryWithPermit
impl JsonSchema for QueryWithPermit
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more