Documentation ¶
Overview ¶
nolint
Index ¶
- Constants
- func GetCmdFundCommunityPool(cdc *codec.Codec) *cobra.Command
- 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 GetCmdSetWithdrawAddr(cdc *codec.Codec) *cobra.Command
- func GetCmdSubmitProposal(cdc *codec.Codec) *cobra.Command
- func GetCmdWithdrawAllRewards(cdc *codec.Codec, queryRoute string) *cobra.Command
- func GetCmdWithdrawRewards(cdc *codec.Codec) *cobra.Command
- func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetTxCmd(storeKey string, cdc *codec.Codec) *cobra.Command
- func NewFundCommunityPoolCmd(m codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever) *cobra.Command
- func NewSetWithdrawAddrCmd(m codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever) *cobra.Command
- func NewTxCmd(m codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever) *cobra.Command
- func NewWithdrawAllRewardsCmd(m codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever) *cobra.Command
- func NewWithdrawRewardsCmd(m codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever) *cobra.Command
- type CommunityPoolSpendProposalJSON
Constants ¶
const (
MaxMessagesPerTxDefault = 5
)
Variables ¶
This section is empty.
Functions ¶
func GetCmdFundCommunityPool ¶ added in v1.0.0
GetCmdFundCommunityPool returns a command implementation that supports directly funding the community pool.
func GetCmdQueryCommunityPool ¶ added in v1.0.0
GetCmdQueryCommunityPool returns the command for fetching community pool info
func GetCmdQueryDelegatorRewards ¶ added in v0.30.0
GetCmdQueryDelegatorRewards implements the query delegator rewards command.
func GetCmdQueryParams ¶ added in v0.30.0
GetCmdQueryParams implements the query params command.
func GetCmdQueryValidatorCommission ¶ added in v0.30.0
GetCmdQueryValidatorCommission implements the query validator commission command.
func GetCmdQueryValidatorOutstandingRewards ¶ added in v0.33.0
GetCmdQueryValidatorOutstandingRewards implements the query validator outstanding rewards command.
func GetCmdQueryValidatorSlashes ¶ added in v0.30.0
GetCmdQueryValidatorSlashes implements the query validator slashes command.
func GetCmdSetWithdrawAddr ¶
command to replace a delegator's withdrawal address
func GetCmdSubmitProposal ¶ added in v1.0.0
GetCmdSubmitProposal implements the command to submit a community-pool-spend proposal
func GetCmdWithdrawAllRewards ¶ added in v0.31.0
command to withdraw all rewards
func GetCmdWithdrawRewards ¶
command to withdraw rewards
func GetQueryCmd ¶ added in v1.0.0
GetQueryCmd returns the cli query commands for this module
func GetTxCmd ¶ added in v0.27.0
--------------------------------------------------------------------------- Deprecated
TODO: Remove once client-side Protobuf migration has been completed. --------------------------------------------------------------------------- GetTxCmd returns the transaction commands for this module
func NewFundCommunityPoolCmd ¶ added in v1.0.0
func NewSetWithdrawAddrCmd ¶ added in v1.0.0
func NewTxCmd ¶ added in v1.0.0
NewTxCmd returns a root CLI command handler for all x/distribution transaction commands.
func NewWithdrawAllRewardsCmd ¶ added in v1.0.0
func NewWithdrawRewardsCmd ¶ added in v1.0.0
Types ¶
type CommunityPoolSpendProposalJSON ¶ added in v1.0.0
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 ¶ added in v1.0.0
func ParseCommunityPoolSpendProposalJSON(cdc *codec.Codec, proposalFile string) (CommunityPoolSpendProposalJSON, error)
ParseCommunityPoolSpendProposalJSON reads and parses a CommunityPoolSpendProposalJSON from a file.