@@ -14,6 +14,20 @@ service Query {
14
14
rpc Grants (QueryGrantsRequest ) returns (QueryGrantsResponse ) {
15
15
option (google.api.http ).get = "/cosmos/authz/v1beta1/grants" ;
16
16
}
17
+
18
+ // GranterGrants returns list of `GrantAuthorization`, granted by granter.
19
+ //
20
+ // Since: cosmos-sdk 0.45.2
21
+ rpc GranterGrants (QueryGranterGrantsRequest ) returns (QueryGranterGrantsResponse ) {
22
+ option (google.api.http ).get = "/cosmos/authz/v1beta1/grants/granter/{granter}" ;
23
+ }
24
+
25
+ // GranteeGrants returns a list of `GrantAuthorization` by grantee.
26
+ //
27
+ // Since: cosmos-sdk 0.45.2
28
+ rpc GranteeGrants (QueryGranteeGrantsRequest ) returns (QueryGranteeGrantsResponse ) {
29
+ option (google.api.http ).get = "/cosmos/authz/v1beta1/grants/grantee/{grantee}" ;
30
+ }
17
31
}
18
32
19
33
// QueryGrantsRequest is the request type for the Query/Grants RPC method.
@@ -29,7 +43,39 @@ message QueryGrantsRequest {
29
43
// QueryGrantsResponse is the response type for the Query/Authorizations RPC method.
30
44
message QueryGrantsResponse {
31
45
// authorizations is a list of grants granted for grantee by granter.
32
- repeated cosmos.authz.v1beta1.Grant grants = 1 ;
46
+ repeated Grant grants = 1 ;
47
+ // pagination defines an pagination for the response.
48
+ cosmos.base.query.v1beta1.PageResponse pagination = 2 ;
49
+ }
50
+
51
+ // QueryGranterGrantsRequest is the request type for the Query/GranterGrants RPC method.
52
+ message QueryGranterGrantsRequest {
53
+ string granter = 1 ;
54
+
55
+ // pagination defines an pagination for the request.
56
+ cosmos.base.query.v1beta1.PageRequest pagination = 2 ;
57
+ }
58
+
59
+ // QueryGranterGrantsResponse is the response type for the Query/GranterGrants RPC method.
60
+ message QueryGranterGrantsResponse {
61
+ // grants is a list of grants granted by the granter.
62
+ repeated GrantAuthorization grants = 1 ;
63
+ // pagination defines an pagination for the response.
64
+ cosmos.base.query.v1beta1.PageResponse pagination = 2 ;
65
+ }
66
+
67
+ // QueryGranteeGrantsRequest is the request type for the Query/IssuedGrants RPC method.
68
+ message QueryGranteeGrantsRequest {
69
+ string grantee = 1 ;
70
+
71
+ // pagination defines an pagination for the request.
72
+ cosmos.base.query.v1beta1.PageRequest pagination = 2 ;
73
+ }
74
+
75
+ // QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method.
76
+ message QueryGranteeGrantsResponse {
77
+ // grants is a list of grants granted to the grantee.
78
+ repeated GrantAuthorization grants = 1 ;
33
79
// pagination defines an pagination for the response.
34
80
cosmos.base.query.v1beta1.PageResponse pagination = 2 ;
35
81
}
0 commit comments