@@ -43,6 +43,11 @@ service Query {
4343 option (google.api.http ).get = "/cosmos/auth/v1beta1/module_accounts" ;
4444 }
4545
46+ // ModuleAccountByName returns the module account info by module name
47+ rpc ModuleAccountByName (QueryModuleAccountByNameRequest ) returns (QueryModuleAccountByNameResponse ) {
48+ option (google.api.http ).get = "/cosmos/auth/v1beta1/module_accounts/{name}" ;
49+ }
50+
4651 // Bech32Prefix queries bech32Prefix
4752 //
4853 // Since: cosmos-sdk 0.46
@@ -93,17 +98,6 @@ message QueryAccountRequest {
9398 string address = 1 [(cosmos_proto.scalar ) = "cosmos.AddressString" ];
9499}
95100
96- // QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method.
97- //
98- // Since: cosmos-sdk 0.46
99- message QueryModuleAccountsRequest {}
100-
101- // QueryParamsResponse is the response type for the Query/Params RPC method.
102- message QueryParamsResponse {
103- // params defines the parameters of the module.
104- Params params = 1 [(gogoproto.nullable ) = false ];
105- }
106-
107101// QueryAccountResponse is the response type for the Query/Account RPC method.
108102message QueryAccountResponse {
109103 // account defines the account of the corresponding address.
@@ -113,13 +107,34 @@ message QueryAccountResponse {
113107// QueryParamsRequest is the request type for the Query/Params RPC method.
114108message QueryParamsRequest {}
115109
110+ // QueryParamsResponse is the response type for the Query/Params RPC method.
111+ message QueryParamsResponse {
112+ // params defines the parameters of the module.
113+ Params params = 1 [(gogoproto.nullable ) = false ];
114+ }
115+
116+ // QueryModuleAccountsRequest is the request type for the Query/ModuleAccounts RPC method.
117+ //
118+ // Since: cosmos-sdk 0.46
119+ message QueryModuleAccountsRequest {}
120+
116121// QueryModuleAccountsResponse is the response type for the Query/ModuleAccounts RPC method.
117122//
118123// Since: cosmos-sdk 0.46
119124message QueryModuleAccountsResponse {
120125 repeated google.protobuf.Any accounts = 1 [(cosmos_proto.accepts_interface ) = "ModuleAccountI" ];
121126}
122127
128+ // QueryModuleAccountByNameRequest is the request type for the Query/ModuleAccountByName RPC method.
129+ message QueryModuleAccountByNameRequest {
130+ string name = 1 ;
131+ }
132+
133+ // QueryModuleAccountByNameResponse is the response type for the Query/ModuleAccountByName RPC method.
134+ message QueryModuleAccountByNameResponse {
135+ google.protobuf.Any account = 1 [(cosmos_proto.accepts_interface ) = "ModuleAccountI" ];
136+ }
137+
123138// Bech32PrefixRequest is the request type for Bech32Prefix rpc method.
124139//
125140// Since: cosmos-sdk 0.46
0 commit comments