🔩Authorisation Interface
Users must grant authorization for smart contracts to send messages on their behalf. This is facilitated by the Authorization.sol
, which provides the necessary functions for granting approvals and allowances. The precompiled contracts utilize the AuthorizationI interface, enabling users to approve the relevant messages and amounts.
Solidity Interfaces
Authorization.sol
Transactions
approve
Approves a list of Cosmos or IBC transactions with a specific amount of tokens
Copy
revoke
Revokes authorizations of Cosmos transactions.
Copy
increaseAllowance
Increase the allowance of a given spender by a specific amount of tokens for IBC transfer methods or staking
Copy
decreaseAllowance
Decreases the allowance of a given spender by a specific amount of tokens for IBC transfer methods or staking
Copy
Queries
allowance
Returns the remaining number of tokens that the spender will be allowed to spend on behalf of the owner through IBC transfer methods or staking. This is zero by default
Copy
Events
Approval
This event is emitted when the allowance of a spender is set by a call to the
approve
method. Thevalue
field specifies the new allowance and themethods
field holds the information for which methods the approval was set.Copy
Revocation
This event is emitted when an owner revokes a spender's allowance.
Copy
AllowanceChange
This event is emitted when the allowance of a spender is changed by a call to the decrease or increase allowance method. The
values
field specifies the new allowances and themethods
field holds the information for which methods the approval was set.Copy
Last updated