Function secret_toolkit_snip721::query::approved_for_all_query
source · pub fn approved_for_all_query<C: CustomQuery>(
querier: QuerierWrapper<'_, C>,
owner: String,
viewing_key: Option<String>,
include_expired: Option<bool>,
block_size: usize,
code_hash: String,
contract_addr: String
) -> StdResult<ApprovedForAll>
Expand description
Returns a StdResult<ApprovedForAll
> from performing ApprovedForAll
query
Arguments
querier
- a reference to the Querier dependency of the querying contractowner
- the address whose approvals are being requestedviewing_key
- Optional String holding the viewing key of the ownerinclude_expired
- Optionally include expired Approvals in the response list. If ommitted or false, expired Approvals will be filtered out of the responseblock_size
- pad the message to blocks of this sizecode_hash
- String holding the code hash of the contract being queriedcontract_addr
- address of the contract being queried