mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-10 18:15:19 +00:00
28 lines
913 B
Protocol Buffer
28 lines
913 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
package kava.community.v1beta1;
|
||
|
|
||
|
import "cosmos/base/v1beta1/coin.proto";
|
||
|
import "gogoproto/gogo.proto";
|
||
|
import "google/api/annotations.proto";
|
||
|
|
||
|
option go_package = "github.com/kava-labs/kava/x/community/types";
|
||
|
|
||
|
// Query defines the gRPC querier service for x/community.
|
||
|
service Query {
|
||
|
// Balance queries the balance of all coins of x/community module.
|
||
|
rpc Balance(QueryBalanceRequest) returns (QueryBalanceResponse) {
|
||
|
option (google.api.http).get = "/kava/community/v1beta1/balance";
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// QueryBalanceRequest defines the request type for querying x/community balance.
|
||
|
message QueryBalanceRequest {}
|
||
|
|
||
|
// QueryBalanceResponse defines the response type for querying x/community balance.
|
||
|
message QueryBalanceResponse {
|
||
|
repeated cosmos.base.v1beta1.Coin coins = 1 [
|
||
|
(gogoproto.nullable) = false,
|
||
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
||
|
];
|
||
|
}
|