2022-12-09 21:24:35 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package kava.community.v1beta1;
|
|
|
|
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
2022-12-19 21:56:46 +00:00
|
|
|
import "cosmos_proto/cosmos.proto";
|
2022-12-09 21:24:35 +00:00
|
|
|
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";
|
|
|
|
}
|
2022-12-19 21:56:46 +00:00
|
|
|
|
|
|
|
// LegacyCommunityPool queries the balance of all coins of the legacy community pool.
|
|
|
|
// The legacy community pool is a subaccount of the fee pool and has been replaced by x/community.
|
|
|
|
rpc LegacyCommunityPool(QueryLegacyCommunityPoolRequest) returns (QueryLegacyCommunityPoolResponse) {
|
|
|
|
option (google.api.http).get = "/kava/community/v1beta1/legacy_community_pool";
|
|
|
|
}
|
2022-12-09 21:24:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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"
|
|
|
|
];
|
|
|
|
}
|
2022-12-19 21:56:46 +00:00
|
|
|
|
|
|
|
// QueryLegacyCommunityPoolRequest defines the request type for querying the legacy community pool balance.
|
|
|
|
message QueryLegacyCommunityPoolRequest {}
|
|
|
|
|
|
|
|
// QueryLegacyCommunityPoolResponse defines the response type for querying legacy community pool.
|
|
|
|
message QueryLegacyCommunityPoolResponse {
|
|
|
|
string address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
|
|
repeated cosmos.base.v1beta1.DecCoin balance = 2 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins"
|
|
|
|
];
|
|
|
|
}
|