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

     1  // Since: cosmos-sdk 0.43
     2  syntax = "proto3";
     3  package cosmos.feegrant.v1beta1;
     4  
     5  import "gogoproto/gogo.proto";
     6  import "cosmos/feegrant/v1beta1/feegrant.proto";
     7  import "cosmos/base/query/v1beta1/pagination.proto";
     8  import "google/api/annotations.proto";
     9  
    10  option go_package = "github.com/Finschia/finschia-sdk/x/feegrant";
    11  
    12  // Query defines the gRPC querier service.
    13  service Query {
    14  
    15    // Allowance returns fee granted to the grantee by the granter.
    16    rpc Allowance(QueryAllowanceRequest) returns (QueryAllowanceResponse) {
    17      option (google.api.http).get = "/cosmos/feegrant/v1beta1/allowance/{granter}/{grantee}";
    18    }
    19  
    20    // Allowances returns all the grants for address.
    21    rpc Allowances(QueryAllowancesRequest) returns (QueryAllowancesResponse) {
    22      option (google.api.http).get = "/cosmos/feegrant/v1beta1/allowances/{grantee}";
    23    }
    24  
    25    // AllowancesByGranter returns all the grants given by an address
    26    // Since v0.46
    27    rpc AllowancesByGranter(QueryAllowancesByGranterRequest) returns (QueryAllowancesByGranterResponse) {
    28      option (google.api.http).get = "/cosmos/feegrant/v1beta1/issued/{granter}";
    29    }
    30  }
    31  
    32  // QueryAllowanceRequest is the request type for the Query/Allowance RPC method.
    33  message QueryAllowanceRequest {
    34    // granter is the address of the user granting an allowance of their funds.
    35    string granter = 1 [(gogoproto.moretags) = "yaml:\"granter_address\""];
    36  
    37    // grantee is the address of the user being granted an allowance of another user's funds.
    38    string grantee = 2 [(gogoproto.moretags) = "yaml:\"grantee_address\""];
    39  }
    40  
    41  // QueryAllowanceResponse is the response type for the Query/Allowance RPC method.
    42  message QueryAllowanceResponse {
    43    // allowance is a allowance granted for grantee by granter.
    44    cosmos.feegrant.v1beta1.Grant allowance = 1;
    45  }
    46  
    47  // QueryAllowancesRequest is the request type for the Query/Allowances RPC method.
    48  message QueryAllowancesRequest {
    49    string grantee = 1 [(gogoproto.moretags) = "yaml:\"grantee_address\""];
    50  
    51    // pagination defines an pagination for the request.
    52    cosmos.base.query.v1beta1.PageRequest pagination = 2;
    53  }
    54  
    55  // QueryAllowancesResponse is the response type for the Query/Allowances RPC method.
    56  message QueryAllowancesResponse {
    57    // allowances are allowance's granted for grantee by granter.
    58    repeated cosmos.feegrant.v1beta1.Grant allowances = 1;
    59  
    60    // pagination defines an pagination for the response.
    61    cosmos.base.query.v1beta1.PageResponse pagination = 2;
    62  }
    63  
    64  // QueryAllowancesByGranterRequest is the request type for the Query/AllowancesByGranter RPC method.
    65  message QueryAllowancesByGranterRequest {
    66    string granter = 1;
    67  
    68    // pagination defines an pagination for the request.
    69    cosmos.base.query.v1beta1.PageRequest pagination = 2;
    70  }
    71  
    72  // QueryAllowancesByGranterResponse is the response type for the Query/AllowancesByGranter RPC method.
    73  message QueryAllowancesByGranterResponse {
    74    // allowances that have been issued by the granter.
    75    repeated cosmos.feegrant.v1beta1.Grant allowances = 1;
    76  
    77    // pagination defines an pagination for the response.
    78    cosmos.base.query.v1beta1.PageResponse pagination = 2;
    79  }