github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/distribution/client/rest/utils_distr_proposal.go (about) 1 package rest 2 3 import ( 4 sdk "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/types" 5 "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/types/rest" 6 ) 7 8 type ( 9 // ChangeDistributionTypeProposalReq defines a change distribution type proposal request body. 10 ChangeDistributionTypeProposalReq struct { 11 BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` 12 13 Title string `json:"title" yaml:"title"` 14 Description string `json:"description" yaml:"description"` 15 Type uint32 `json:"type" yaml:"type"` 16 Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` 17 Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"` 18 } 19 20 // WithdrawRewardEnabledProposalReq defines a set withdraw reward enabled proposal request body. 21 WithdrawRewardEnabledProposalReq struct { 22 BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` 23 24 Title string `json:"title" yaml:"title"` 25 Description string `json:"description" yaml:"description"` 26 Enabled bool `json:"enabled" yaml:"enabled"` 27 Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` 28 Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"` 29 } 30 31 // RewardTruncatePrecisionProposalReq defines a set reward truncate precision proposal request body. 32 RewardTruncatePrecisionProposalReq struct { 33 BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` 34 35 Title string `json:"title" yaml:"title"` 36 Description string `json:"description" yaml:"description"` 37 Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` 38 Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"` 39 Precision int64 `json:"precision" yaml:"precision"` 40 } 41 )