mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 16:55:21 +00:00
31eae1c6d7
* Initial proposal types * Add withdraw cdp proposal handler * Add codec registration for proposal type * Update CommunityCDPWithdrawCollateralProposal name * Rename CommunityCDPWithdrawCollateralProposal * Add changelog entry * Add proposal registration, unit tests * Register CommunityCDPWithdrawCollateralProposal proposal type codec
58 lines
2.0 KiB
Protocol Buffer
58 lines
2.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
package kava.community.v1beta1;
|
|
|
|
import "cosmos/base/v1beta1/coin.proto";
|
|
import "gogoproto/gogo.proto";
|
|
|
|
option go_package = "github.com/kava-labs/kava/x/community/types";
|
|
|
|
// CommunityPoolLendDepositProposal deposits from the community pool into lend
|
|
message CommunityPoolLendDepositProposal {
|
|
option (gogoproto.goproto_stringer) = false;
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
string title = 1;
|
|
string description = 2;
|
|
repeated cosmos.base.v1beta1.Coin amount = 3 [
|
|
(gogoproto.nullable) = false,
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
];
|
|
}
|
|
|
|
// CommunityPoolLendWithdrawProposal withdraws a lend position back to the community pool
|
|
message CommunityPoolLendWithdrawProposal {
|
|
option (gogoproto.goproto_stringer) = false;
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
string title = 1;
|
|
string description = 2;
|
|
repeated cosmos.base.v1beta1.Coin amount = 3 [
|
|
(gogoproto.nullable) = false,
|
|
(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"
|
|
];
|
|
}
|
|
|
|
// CommunityCDPRepayDebtProposal repays a cdp debt position owned by the community module
|
|
// This proposal exists primarily to allow committees to repay community module cdp debts.
|
|
message CommunityCDPRepayDebtProposal {
|
|
option (gogoproto.goproto_stringer) = false;
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
string title = 1;
|
|
string description = 2;
|
|
string collateral_type = 3;
|
|
cosmos.base.v1beta1.Coin payment = 4 [(gogoproto.nullable) = false];
|
|
}
|
|
|
|
// CommunityCDPWithdrawCollateralProposal withdraws cdp collateral owned by the community module
|
|
// This proposal exists primarily to allow committees to withdraw community module cdp collateral.
|
|
message CommunityCDPWithdrawCollateralProposal {
|
|
option (gogoproto.goproto_stringer) = false;
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
string title = 1;
|
|
string description = 2;
|
|
string collateral_type = 3;
|
|
cosmos.base.v1beta1.Coin collateral = 4 [(gogoproto.nullable) = false];
|
|
}
|