2022-09-29 17:01:06 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package kava.earn.v1beta1;
|
|
|
|
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
2022-11-22 23:22:07 +00:00
|
|
|
import "gogoproto/gogo.proto";
|
2022-09-29 17:01:06 +00:00
|
|
|
|
|
|
|
option go_package = "github.com/kava-labs/kava/x/earn/types";
|
|
|
|
|
|
|
|
// CommunityPoolDepositProposal deposits from the community pool into an earn vault
|
|
|
|
message CommunityPoolDepositProposal {
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
2022-11-22 23:22:07 +00:00
|
|
|
option (gogoproto.goproto_getters) = false;
|
2022-09-29 17:01:06 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
string title = 1;
|
|
|
|
string description = 2;
|
|
|
|
cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false];
|
2022-09-29 17:01:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// CommunityPoolDepositProposalJSON defines a CommunityPoolDepositProposal with a deposit
|
|
|
|
message CommunityPoolDepositProposalJSON {
|
|
|
|
option (gogoproto.goproto_stringer) = true;
|
2022-11-22 23:22:07 +00:00
|
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
|
|
|
|
string title = 1;
|
|
|
|
string description = 2;
|
|
|
|
cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false];
|
|
|
|
repeated cosmos.base.v1beta1.Coin deposit = 4 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
|
|
];
|
2022-09-29 17:01:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// CommunityPoolWithdrawProposal withdraws from an earn vault back to community pool
|
|
|
|
message CommunityPoolWithdrawProposal {
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
2022-11-22 23:22:07 +00:00
|
|
|
option (gogoproto.goproto_getters) = false;
|
2022-09-29 17:01:06 +00:00
|
|
|
|
2022-11-22 23:22:07 +00:00
|
|
|
string title = 1;
|
|
|
|
string description = 2;
|
|
|
|
cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false];
|
2022-09-29 17:01:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// CommunityPoolWithdrawProposalJSON defines a CommunityPoolWithdrawProposal with a deposit
|
|
|
|
message CommunityPoolWithdrawProposalJSON {
|
|
|
|
option (gogoproto.goproto_stringer) = true;
|
2022-11-22 23:22:07 +00:00
|
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
|
|
|
|
string title = 1;
|
|
|
|
string description = 2;
|
|
|
|
cosmos.base.v1beta1.Coin amount = 3 [(gogoproto.nullable) = false];
|
|
|
|
repeated cosmos.base.v1beta1.Coin deposit = 4 [
|
|
|
|
(gogoproto.nullable) = false,
|
|
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
|
|
];
|
|
|
|
}
|