cli

package
v0.0.0-...-607fb14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 10, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

nolint

Index

Constants

View Source
const (
	MaxMessagesPerTxDefault = 5
)

Variables

This section is empty.

Functions

func GetCmdDistrCoins

func GetCmdDistrCoins(cdc *codec.Codec) *cobra.Command

command to set distr addr

func GetCmdQueryCommunityPool

func GetCmdQueryCommunityPool(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryCommunityPool returns the command for fetching community pool info

func GetCmdQueryDelegatorRewards

func GetCmdQueryDelegatorRewards(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryDelegatorRewards implements the query delegator rewards command.

func GetCmdQueryParams

func GetCmdQueryParams(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryParams implements the query params command.

func GetCmdQueryValidatorCommission

func GetCmdQueryValidatorCommission(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryValidatorCommission implements the query validator commission command.

func GetCmdQueryValidatorOutstandingRewards

func GetCmdQueryValidatorOutstandingRewards(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryValidatorOutstandingRewards implements the query validator outstanding rewards command.

func GetCmdQueryValidatorSlashes

func GetCmdQueryValidatorSlashes(queryRoute string, cdc *codec.Codec) *cobra.Command

GetCmdQueryValidatorSlashes implements the query validator slashes command.

func GetCmdSetDistrAddr

func GetCmdSetDistrAddr(cdc *codec.Codec) *cobra.Command

command to set distr addr

func GetCmdSetWithdrawAddr

func GetCmdSetWithdrawAddr(cdc *codec.Codec) *cobra.Command

command to replace a delegator's withdrawal address

func GetCmdSubmitProposal

func GetCmdSubmitProposal(cdc *codec.Codec) *cobra.Command

GetCmdSubmitProposal implements the command to submit a community-pool-spend proposal

func GetCmdWithdrawAllRewards

func GetCmdWithdrawAllRewards(cdc *codec.Codec, queryRoute string) *cobra.Command

command to withdraw all rewards

func GetCmdWithdrawRewards

func GetCmdWithdrawRewards(cdc *codec.Codec) *cobra.Command

command to withdraw rewards

func GetQueryCmd

func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command

GetQueryCmd returns the cli query commands for this module

func GetTxCmd

func GetTxCmd(storeKey string, cdc *codec.Codec) *cobra.Command

GetTxCmd returns the transaction commands for this module

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      sdk.Coins      `json:"amount" yaml:"amount"`
	Deposit     sdk.Coins      `json:"deposit" yaml:"deposit"`
}

CommunityPoolSpendProposalJSON defines a CommunityPoolSpendProposal with a deposit

func ParseCommunityPoolSpendProposalJSON

func ParseCommunityPoolSpendProposalJSON(cdc *codec.Codec, proposalFile string) (CommunityPoolSpendProposalJSON, error)

ParseCommunityPoolSpendProposalJSON reads and parses a CommunityPoolSpendProposalJSON from a file.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL