Documentation ¶
Index ¶
- func ChangeDistributionTypeProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
- func CommunityPoolSpendProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
- func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, queryRoute string)
- func RewardTruncatePrecisionProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
- func WithdrawRewardEnabledProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
- type ChangeDistributionTypeProposalReq
- type CommunityPoolSpendProposalReq
- type RewardTruncatePrecisionProposalReq
- type ValidatorDistInfo
- type WithdrawRewardEnabledProposalReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeDistributionTypeProposalRESTHandler ¶ added in v1.6.3
func ChangeDistributionTypeProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
ChangeDistributionTypeProposalRESTHandler returns a ChangeDistributionTypeProposal that exposes the change distribution type REST handler with a given sub-route.
func CommunityPoolSpendProposalRESTHandler ¶ added in v1.6.3
func CommunityPoolSpendProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
CommunityPoolSpendProposalRESTHandler returns a CommunityPoolSpendProposalRESTHandler that exposes the community pool spend REST handler with a given sub-route.
func RegisterRoutes ¶
func RegisterRoutes(cliCtx context.CLIContext, r *mux.Router, queryRoute string)
RegisterRoutes register distribution REST routes.
func RewardTruncatePrecisionProposalRESTHandler ¶ added in v1.6.4
func RewardTruncatePrecisionProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
RewardTruncatePrecisionProposalRESTHandler returns a RewardTruncatePrecisionProposal that exposes the reward truncate precision proposal REST handler with a given sub-route.
func WithdrawRewardEnabledProposalRESTHandler ¶ added in v1.6.3
func WithdrawRewardEnabledProposalRESTHandler(cliCtx context.CLIContext) govrest.ProposalRESTHandler
WithdrawRewardEnabledProposalRESTHandler returns a WithdrawRewardEnabledProposal that exposes the set withdraw reward enabled proposal REST handler with a given sub-route.
Types ¶
type ChangeDistributionTypeProposalReq ¶ added in v1.6.3
type ChangeDistributionTypeProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` Type uint32 `json:"type" yaml:"type"` Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"` }
ChangeDistributionTypeProposalReq defines a change distribution type proposal request body.
type CommunityPoolSpendProposalReq ¶
type CommunityPoolSpendProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` Recipient sdk.AccAddress `json:"recipient" yaml:"recipient"` Amount sdk.Coins `json:"amount" yaml:"amount"` Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"` }
CommunityPoolSpendProposalReq defines a community pool spend proposal request body.
type RewardTruncatePrecisionProposalReq ¶ added in v1.6.4
type RewardTruncatePrecisionProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"` Precision int64 `json:"precision" yaml:"precision"` }
RewardTruncatePrecisionProposalReq defines a set reward truncate precision proposal request body.
type ValidatorDistInfo ¶ added in v1.6.4
type ValidatorDistInfo struct { OperatorAddress sdk.AccAddress `json:"operator_address" yaml:"operator_address"` SelfBondRewards sdk.DecCoins `json:"self_bond_rewards" yaml:"self_bond_rewards"` ValidatorCommission types.ValidatorAccumulatedCommission `json:"val_commission" yaml:"val_commission"` }
ValidatorDistInfo defines the properties of validator distribution information response.
func NewValidatorDistInfo ¶ added in v1.6.4
func NewValidatorDistInfo(operatorAddr sdk.AccAddress, rewards sdk.DecCoins, commission types.ValidatorAccumulatedCommission) ValidatorDistInfo
NewValidatorDistInfo creates a new instance of ValidatorDistInfo.
type WithdrawRewardEnabledProposalReq ¶ added in v1.6.3
type WithdrawRewardEnabledProposalReq struct { BaseReq rest.BaseReq `json:"base_req" yaml:"base_req"` Title string `json:"title" yaml:"title"` Description string `json:"description" yaml:"description"` Enabled bool `json:"enabled" yaml:"enabled"` Proposer sdk.AccAddress `json:"proposer" yaml:"proposer"` Deposit sdk.SysCoins `json:"deposit" yaml:"deposit"` }
WithdrawRewardEnabledProposalReq defines a set withdraw reward enabled proposal request body.