Function secret_toolkit_snip20::query::allowance_query
source · [−]pub fn allowance_query<Q: Querier>(
querier: &Q,
owner: HumanAddr,
spender: HumanAddr,
key: String,
block_size: usize,
callback_code_hash: String,
contract_addr: HumanAddr
) -> StdResult<Allowance>
Expand description
Returns a StdResult
Arguments
querier
- a reference to the Querier dependency of the querying contractowner
- the address that owns the tokensspender
- the address allowed to send/burn tokenskey
- String holding the authentication key needed to view the allowanceblock_size
- pad the message to blocks of this sizecallback_code_hash
- String holding the code hash of the contract being queriedcontract_addr
- address of the contract being queried