@gala-chain/chaincode ∙ API
API > refreshAllowances
Function: refreshAllowances()
refreshAllowances(
ctx
,allowances
):Promise
\<TokenAllowance
[]>
Parameters
▪ ctx: GalaChainContext
▪ allowances: AllowanceType
[]
Returns
Promise
Description
Lookup existing TokenAllowance
entries by composite key, and set the
expires timestamp and the uses property to new values.
Used for extending the duration of existing allowances. Can also be used to revoke existing allowances by setting uses to 0 or expires to a valid non-zero timestamp in the past.