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
|
|
|
|
2024-05-01 03:17:24 +00:00
|
|
|
option go_package = "github.com/0glabs/0g-chain/x/earn/types";
|
2022-09-29 17:01:06 +00:00
|
|
|
|
|
|
|
// 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"
|
|
|
|
];
|
|
|
|
}
|