github.com/Finschia/finschia-sdk@v0.49.1/proto/cosmos/authz/v1beta1/query.proto (about)

     1  // Since: cosmos-sdk 0.43
     2  syntax = "proto3";
     3  package cosmos.authz.v1beta1;
     4  
     5  import "google/api/annotations.proto";
     6  import "cosmos/base/query/v1beta1/pagination.proto";
     7  import "cosmos/authz/v1beta1/authz.proto";
     8  
     9  option go_package = "github.com/Finschia/finschia-sdk/x/authz";
    10  
    11  // Query defines the gRPC querier service.
    12  service Query {
    13    // Returns list of `Authorization`, granted to the grantee by the granter.
    14    rpc Grants(QueryGrantsRequest) returns (QueryGrantsResponse) {
    15      option (google.api.http).get = "/cosmos/authz/v1beta1/grants";
    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    }
    31  }
    32  
    33  // QueryGrantsRequest is the request type for the Query/Grants RPC method.
    34  message QueryGrantsRequest {
    35    string granter = 1;
    36    string grantee = 2;
    37    // Optional, msg_type_url, when set, will query only grants matching given msg type.
    38    string msg_type_url = 3;
    39    // pagination defines an pagination for the request.
    40    cosmos.base.query.v1beta1.PageRequest pagination = 4;
    41  }
    42  
    43  // QueryGrantsResponse is the response type for the Query/Authorizations RPC method.
    44  message QueryGrantsResponse {
    45    // authorizations is a list of grants granted for grantee by granter.
    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;
    79    // pagination defines an pagination for the response.
    80    cosmos.base.query.v1beta1.PageResponse pagination = 2;
    81  }