Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions x/authz/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ granting arbitrary privileges from one account (the granter) to another account
* [Messages](#messages)
* [MsgGrant](#msggrant)
* [MsgRevoke](#msgrevoke)
* [MsgRevokeAll](#msgrevokeall)
* [MsgExec](#msgexec)
* [MsgPruneExpiredGrants](#msgpruneexpiredgrants)
* [Events](#events)
Expand Down Expand Up @@ -168,6 +169,19 @@ The message handling should fail if:

NOTE: The `MsgExec` message removes a grant if the grant has expired.

### MsgRevokeAll

The `MsgRevokeAll` message revokes all grants issued by the specified granter. This is useful for quickly removing all authorizations granted by a single granter without specifying individual message types or grantees.

```protobuf reference
https://github.com/cosmos/cosmos-sdk/tree/main/proto/cosmos/authz/v1beta1/tx.proto#L91-L97
```

The message handling should fail if:

* the `granter` address is not provided or invalid.
* the `granter` does not have any active grants.

### MsgExec

When a grantee wants to execute a transaction on behalf of a granter, they must send `MsgExec`.
Expand Down