github.com/Finschia/finschia-sdk@v0.49.1/proto/lbm/token/v1/query.proto (about)

     1  syntax = "proto3";
     2  package lbm.token.v1;
     3  
     4  import "cosmos/base/query/v1beta1/pagination.proto";
     5  import "google/api/annotations.proto";
     6  import "lbm/token/v1/token.proto";
     7  
     8  import "gogoproto/gogo.proto";
     9  
    10  option go_package = "github.com/Finschia/finschia-sdk/x/token";
    11  
    12  // Query defines the gRPC querier service.
    13  service Query {
    14    option deprecated = true;
    15  
    16    // Balance queries the number of tokens of a given contract owned by the address.
    17    rpc Balance(QueryBalanceRequest) returns (QueryBalanceResponse) {
    18      option (google.api.http).get = "/lbm/token/v1/token_classes/{contract_id}/balances/{address}";
    19    }
    20  
    21    // Supply queries the number of tokens from the given contract id.
    22    rpc Supply(QuerySupplyRequest) returns (QuerySupplyResponse) {
    23      option (google.api.http).get = "/lbm/token/v1/token_classes/{contract_id}/supply";
    24    }
    25  
    26    // Minted queries the number of minted tokens from the given contract id.
    27    rpc Minted(QueryMintedRequest) returns (QueryMintedResponse) {
    28      option (google.api.http).get = "/lbm/token/v1/token_classes/{contract_id}/minted";
    29    }
    30  
    31    // Burnt queries the number of burnt tokens from the given contract id.
    32    rpc Burnt(QueryBurntRequest) returns (QueryBurntResponse) {
    33      option (google.api.http).get = "/lbm/token/v1/token_classes/{contract_id}/burnt";
    34    }
    35  
    36    // Contract queries an token metadata based on its contract id.
    37    rpc Contract(QueryContractRequest) returns (QueryContractResponse) {
    38      option (google.api.http).get = "/lbm/token/v1/token_classes/{contract_id}";
    39    }
    40  
    41    // GranteeGrants queries permissions on a given grantee.
    42    rpc GranteeGrants(QueryGranteeGrantsRequest) returns (QueryGranteeGrantsResponse) {
    43      option (google.api.http).get = "/lbm/token/v1/token_classes/{contract_id}/grants/{grantee}";
    44    }
    45  
    46    // IsOperatorFor queries authorization on a given operator holder pair.
    47    rpc IsOperatorFor(QueryIsOperatorForRequest) returns (QueryIsOperatorForResponse);
    48  
    49    // HoldersByOperator queries holders on a given operator.
    50    rpc HoldersByOperator(QueryHoldersByOperatorRequest) returns (QueryHoldersByOperatorResponse);
    51  }
    52  
    53  // QueryBalanceRequest is the request type for the Query/Balance RPC method
    54  message QueryBalanceRequest {
    55    option deprecated = true;
    56  
    57    // contract id associated with the contract.
    58    string contract_id = 1;
    59    // address is the address to query balance for.
    60    string address = 2;
    61  }
    62  
    63  // QueryBalanceResponse is the response type for the Query/Balance RPC method
    64  message QueryBalanceResponse {
    65    option deprecated = true;
    66  
    67    // the balance of the tokens.
    68    string amount = 1
    69        [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false];
    70  }
    71  
    72  // QuerySupplyRequest is the request type for the Query/Supply RPC method
    73  message QuerySupplyRequest {
    74    option deprecated = true;
    75  
    76    // contract id associated with the contract.
    77    string contract_id = 1;
    78  }
    79  
    80  // QuerySupplyResponse is the response type for the Query/Supply RPC method
    81  message QuerySupplyResponse {
    82    option deprecated = true;
    83  
    84    // the supply of the tokens.
    85    string amount = 1
    86        [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false];
    87  }
    88  
    89  // QueryMintedRequest is the request type for the Query/Minted RPC method
    90  message QueryMintedRequest {
    91    option deprecated = true;
    92  
    93    // contract id associated with the contract.
    94    string contract_id = 1;
    95  }
    96  
    97  // QueryMintedResponse is the response type for the Query/Minted RPC method
    98  message QueryMintedResponse {
    99    option deprecated = true;
   100  
   101    // the amount of the minted tokens.
   102    string amount = 1
   103        [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false];
   104  }
   105  
   106  // QueryBurntRequest is the request type for the Query/Burnt RPC method
   107  message QueryBurntRequest {
   108    option deprecated = true;
   109  
   110    // contract id associated with the contract.
   111    string contract_id = 1;
   112  }
   113  
   114  // QueryBurntResponse is the response type for the Query/Burnt RPC method
   115  message QueryBurntResponse {
   116    option deprecated = true;
   117  
   118    // the amount of the burnt tokens.
   119    string amount = 1
   120        [(gogoproto.customtype) = "github.com/Finschia/finschia-sdk/types.Int", (gogoproto.nullable) = false];
   121  }
   122  
   123  // QueryContractRequest is the request type for the Query/Contract RPC method
   124  message QueryContractRequest {
   125    option deprecated = true;
   126  
   127    // contract id associated with the contract.
   128    string contract_id = 1;
   129  }
   130  
   131  // QueryContractResponse is the response type for the Query/Contract RPC method
   132  message QueryContractResponse {
   133    option deprecated = true;
   134  
   135    Contract contract = 1 [(gogoproto.nullable) = false];
   136  }
   137  
   138  // QueryGranteeGrantsRequest is the request type for the Query/GranteeGrants RPC method
   139  message QueryGranteeGrantsRequest {
   140    option deprecated = true;
   141  
   142    // contract id associated with the contract.
   143    string contract_id = 1;
   144    // grantee which has permissions on the contract.
   145    string grantee = 2;
   146  
   147    // pagination defines an optional pagination for the request.
   148    cosmos.base.query.v1beta1.PageRequest pagination = 3;
   149  }
   150  
   151  // QueryGranteeGrantsResponse is the response type for the Query/GranteeGrants RPC method
   152  message QueryGranteeGrantsResponse {
   153    option deprecated = true;
   154  
   155    // all the grants on the grantee.
   156    repeated Grant grants = 1 [(gogoproto.nullable) = false];
   157    // pagination defines the pagination in the response.
   158    cosmos.base.query.v1beta1.PageResponse pagination = 2;
   159  }
   160  
   161  // QueryIsOperatorForRequest is the request type for the Query/IsOperatorFor RPC method
   162  message QueryIsOperatorForRequest {
   163    option deprecated = true;
   164  
   165    // contract id associated with the contract.
   166    string contract_id = 1;
   167    // address of the operator which the authorization is granted to.
   168    string operator = 2;
   169    // address of the holder of the authorization.
   170    string holder = 3;
   171  }
   172  
   173  // QueryIsOperatorForResponse is the response type for the Query/IsOperatorFor RPC method
   174  message QueryIsOperatorForResponse {
   175    option deprecated = true;
   176  
   177    bool authorized = 1;
   178  }
   179  
   180  // QueryHoldersByOperatorRequest is the request type for the Query/HoldersByOperator RPC method
   181  message QueryHoldersByOperatorRequest {
   182    option deprecated = true;
   183  
   184    // contract id associated with the contract.
   185    string contract_id = 1;
   186    // address of the operator which the authorization is granted to.
   187    string operator = 2;
   188  
   189    // pagination defines an optional pagination for the request.
   190    cosmos.base.query.v1beta1.PageRequest pagination = 3;
   191  }
   192  
   193  // QueryHoldersByOperatorResponse is the response type for the Query/HoldersByOperator RPC method
   194  message QueryHoldersByOperatorResponse {
   195    option deprecated = true;
   196  
   197    // holder addresses
   198    repeated string holders = 1;
   199    // pagination defines the pagination in the response.
   200    cosmos.base.query.v1beta1.PageResponse pagination = 2;
   201  }