2022-12-09 21:24:35 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package kava.community.v1beta1;
|
|
|
|
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
|
|
|
import "gogoproto/gogo.proto";
|
2023-10-11 17:22:25 +00:00
|
|
|
import "kava/community/v1beta1/params.proto";
|
2022-12-09 21:24:35 +00:00
|
|
|
|
|
|
|
option go_package = "github.com/kava-labs/kava/x/community/types";
|
|
|
|
option (gogoproto.equal_all) = true;
|
|
|
|
|
|
|
|
// Msg defines the community Msg service.
|
|
|
|
service Msg {
|
|
|
|
// FundCommunityPool defines a method to allow an account to directly fund the community module account.
|
|
|
|
rpc FundCommunityPool(MsgFundCommunityPool) returns (MsgFundCommunityPoolResponse);
|
2023-10-11 17:22:25 +00:00
|
|
|
|
|
|
|
// UpdateParams defines a method to allow an account to update the community module parameters.
|
|
|
|
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
|
2022-12-09 21:24:35 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// MsgFundCommunityPool allows an account to directly fund the community module account.
|
|
|
|
message MsgFundCommunityPool {
|
|
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
|
|
|
|
repeated cosmos.base.v1beta1.Coin amount = 1 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
|
|
];
|
|
|
|
string depositor = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
|
|
}
|
|
|
|
|
|
|
|
// MsgFundCommunityPoolResponse defines the Msg/FundCommunityPool response type.
|
|
|
|
message MsgFundCommunityPoolResponse {}
|
2023-10-11 17:22:25 +00:00
|
|
|
|
|
|
|
// MsgUpdateParams allows an account to update the community module parameters.
|
|
|
|
message MsgUpdateParams {
|
|
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
|
|
|
|
// authority is the address that controls the module (defaults to x/gov unless overwritten).
|
|
|
|
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
|
|
|
|
|
|
// params defines the x/community parameters to update.
|
|
|
|
Params params = 2 [(gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
|
|
|
// MsgUpdateParamsResponse defines the Msg/UpdateParams response type.
|
|
|
|
message MsgUpdateParamsResponse {}
|