mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 16:55:21 +00:00
3853e276a6
Add query service to precisebank, mostly for e2e test purposes in #1966 Also fix client grpc codec
29 lines
1.1 KiB
Protocol Buffer
29 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
package kava.precisebank.v1;
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
import "gogoproto/gogo.proto";
|
|
import "google/api/annotations.proto";
|
|
|
|
option go_package = "github.com/kava-labs/kava/x/precisebank/types";
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
|
|
// Query defines the gRPC querier service for precisebank module
|
|
service Query {
|
|
// TotalFractionalBalances returns the total sum of all fractional balances
|
|
// managed by the precisebank module.
|
|
rpc TotalFractionalBalances(QueryTotalFractionalBalancesRequest) returns (QueryTotalFractionalBalancesResponse) {
|
|
option (google.api.http).get = "/kava/precisebank/v1/total_fractional_balances";
|
|
}
|
|
}
|
|
|
|
// QueryTotalFractionalBalancesRequest defines the request type for Query/TotalFractionalBalances method.
|
|
message QueryTotalFractionalBalancesRequest {}
|
|
|
|
// QueryTotalFractionalBalancesResponse defines the response type for Query/TotalFractionalBalances method.
|
|
message QueryTotalFractionalBalancesResponse {
|
|
// total is the total sum of all fractional balances managed by the precisebank
|
|
// module.
|
|
cosmos.base.v1beta1.Coin total = 1 [(gogoproto.nullable) = false];
|
|
}
|