Documentation
¶
Overview ¶
nolint
Index ¶
- Constants
- func GetCmdQueryCommunityPool(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryDelegatorRewards(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryParams(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryValidatorCommission(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryValidatorOutstandingRewards(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryValidatorSlashes(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdSubmitProposal(ctx context.CLIContext) *cobra.Command
- func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command
- func NewFundCommunityPoolCmd(ctx context.CLIContext) *cobra.Command
- func NewSetWithdrawAddrCmd(ctx context.CLIContext) *cobra.Command
- func NewTxCmd(ctx context.CLIContext) *cobra.Command
- func NewWithdrawAllRewardsCmd(ctx context.CLIContext) *cobra.Command
- func NewWithdrawRewardsCmd(ctx context.CLIContext) *cobra.Command
- type CommunityPoolSpendProposalJSON
Constants ¶
const (
MaxMessagesPerTxDefault = 5
)
Variables ¶
This section is empty.
Functions ¶
func GetCmdQueryCommunityPool ¶
GetCmdQueryCommunityPool returns the command for fetching community pool info
func GetCmdQueryDelegatorRewards ¶
GetCmdQueryDelegatorRewards implements the query delegator rewards command.
func GetCmdQueryParams ¶
GetCmdQueryParams implements the query params command.
func GetCmdQueryValidatorCommission ¶
GetCmdQueryValidatorCommission implements the query validator commission command.
func GetCmdQueryValidatorOutstandingRewards ¶
GetCmdQueryValidatorOutstandingRewards implements the query validator outstanding rewards command.
func GetCmdQueryValidatorSlashes ¶
GetCmdQueryValidatorSlashes implements the query validator slashes command.
func GetCmdSubmitProposal ¶
func GetCmdSubmitProposal(ctx context.CLIContext) *cobra.Command
GetCmdSubmitProposal implements the command to submit a community-pool-spend proposal
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module
func NewFundCommunityPoolCmd ¶
func NewFundCommunityPoolCmd(ctx context.CLIContext) *cobra.Command
func NewSetWithdrawAddrCmd ¶
func NewSetWithdrawAddrCmd(ctx context.CLIContext) *cobra.Command
func NewTxCmd ¶
func NewTxCmd(ctx context.CLIContext) *cobra.Command
NewTxCmd returns a root CLI command handler for all x/distribution transaction commands.
func NewWithdrawAllRewardsCmd ¶
func NewWithdrawAllRewardsCmd(ctx context.CLIContext) *cobra.Command
func NewWithdrawRewardsCmd ¶
func NewWithdrawRewardsCmd(ctx context.CLIContext) *cobra.Command
Types ¶
type CommunityPoolSpendProposalJSON ¶
type CommunityPoolSpendProposalJSON struct {
Title string `json:"title" yaml:"title"`
Description string `json:"description" yaml:"description"`
Recipient sdk.AccAddress `json:"recipient" yaml:"recipient"`
Amount string `json:"amount" yaml:"amount"`
Deposit string `json:"deposit" yaml:"deposit"`
}
CommunityPoolSpendProposalJSON defines a CommunityPoolSpendProposal with a deposit
func ParseCommunityPoolSpendProposalJSON ¶
func ParseCommunityPoolSpendProposalJSON(cdc codec.JSONMarshaler, proposalFile string) (CommunityPoolSpendProposalJSON, error)
ParseCommunityPoolSpendProposalJSON reads and parses a CommunityPoolSpendProposalJSON from a file.