Function secret_toolkit_snip20::handle::decrease_allowance_msg
source · [−]pub fn decrease_allowance_msg(
spender: HumanAddr,
amount: Uint128,
expiration: Option<u64>,
padding: Option<String>,
block_size: usize,
callback_code_hash: String,
contract_addr: HumanAddr
) -> StdResult<CosmosMsg>
Expand description
Returns a StdResult
Arguments
spender
- the address of the allowed spenderamount
- Uint128 amount the spender is no longer allowed to send/burnexpiration
- Optional u64 denoting the epoch time in seconds that the allowance will expirepadding
- Optional String used as padding if you don’t want to use block paddingblock_size
- pad the message to blocks of this sizecallback_code_hash
- String holding the code hash of the contract being calledcontract_addr
- address of the contract being called