Skip to content

Commit

Permalink
Merge pull request cosmos#2 from hoanguyenkh/authz/docs
Browse files Browse the repository at this point in the history
docs: add MsgRevokeAll
  • Loading branch information
kien6034 authored Apr 24, 2024
2 parents 52ebbdf + 1ed952d commit dd08c22
Showing 1 changed file with 14 additions and 0 deletions.
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

0 comments on commit dd08c22

Please sign in to comment.