mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 16:55:21 +00:00
75dec0d79c
* sync all third party proto definitions * update cosmos swagger for new imported third party protos
36 lines
1.2 KiB
Protocol Buffer
36 lines
1.2 KiB
Protocol Buffer
// Since: cosmos-sdk 0.43
|
|
syntax = "proto3";
|
|
package cosmos.authz.v1beta1;
|
|
|
|
import "google/api/annotations.proto";
|
|
import "cosmos/base/query/v1beta1/pagination.proto";
|
|
import "cosmos/authz/v1beta1/authz.proto";
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/authz";
|
|
|
|
// Query defines the gRPC querier service.
|
|
service Query {
|
|
// Returns list of `Authorization`, granted to the grantee by the granter.
|
|
rpc Grants(QueryGrantsRequest) returns (QueryGrantsResponse) {
|
|
option (google.api.http).get = "/cosmos/authz/v1beta1/grants";
|
|
}
|
|
}
|
|
|
|
// QueryGrantsRequest is the request type for the Query/Grants RPC method.
|
|
message QueryGrantsRequest {
|
|
string granter = 1;
|
|
string grantee = 2;
|
|
// Optional, msg_type_url, when set, will query only grants matching given msg type.
|
|
string msg_type_url = 3;
|
|
// pagination defines an pagination for the request.
|
|
cosmos.base.query.v1beta1.PageRequest pagination = 4;
|
|
}
|
|
|
|
// QueryGrantsResponse is the response type for the Query/Authorizations RPC method.
|
|
message QueryGrantsResponse {
|
|
// authorizations is a list of grants granted for grantee by granter.
|
|
repeated cosmos.authz.v1beta1.Grant grants = 1;
|
|
// pagination defines an pagination for the response.
|
|
cosmos.base.query.v1beta1.PageResponse pagination = 2;
|
|
}
|