Documentation ¶
Index ¶
- Constants
- Variables
- func AddPaginationFlagsToCmd(cmd *cobra.Command, query string)
- func BuildCreateValidatorMsg(clientCtx client.Context, config TxCreateValidatorConfig, txBldr tx.Factory, ...) (tx.Factory, sdk.Msg, error)
- func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command
- func CreateValidatorMsgFlagSet(ipDefault string) (fs *flag.FlagSet, defaultsDesc string)
- func FlagSetAmounts() *flag.FlagSet
- func FlagSetPublicKey() *flag.FlagSet
- func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, ...) *cobra.Command
- func GetCmdQueryHistoricalInfo() *cobra.Command
- func GetCmdQueryUnbondingPeriod() *cobra.Command
- func GetCmdQueryValidator() *cobra.Command
- func GetCmdQueryValidatorDelegation() *cobra.Command
- func GetCmdQueryValidatorReward() *cobra.Command
- func GetCmdQueryValidatorUnbondingDelegations() *cobra.Command
- func GetCmdQueryValidators() *cobra.Command
- func GetCmdShowPoEContract() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func NewBuildCreateValidatorMsg(clientCtx client.Context, txf tx.Factory, fs *flag.FlagSet) (tx.Factory, sdk.Msg, error)
- func NewCreateValidatorCmd() *cobra.Command
- func NewDelegateCmd() *cobra.Command
- func NewEditValidatorCmd() *cobra.Command
- func NewTxCmd() *cobra.Command
- func NewUnbondCmd() *cobra.Command
- func NewUnjailTxCmd() *cobra.Command
- func ValidateAccountInGenesis(appGenesisState map[string]json.RawMessage, ...) error
- type GenesisBalancesIterator
- type TxCreateValidatorConfig
Constants ¶
const ( FlagPubKey = "pubkey" FlagAmount = "amount" FlagVestingAmount = "vesting-amount" FlagMoniker = "moniker" FlagIdentity = "identity" FlagWebsite = "website" FlagSecurityContact = "security-contact" FlagDetails = "details" FlagNodeID = "node-id" FlagIP = "ip" )
Variables ¶
var (
DefaultTokens = sdk.TokensFromConsensusPower(100, sdk.DefaultPowerReduction)
)
default values
Functions ¶
func AddPaginationFlagsToCmd ¶ added in v0.5.2
AddPaginationFlagsToCmd adds common pagination flags to cmd
func BuildCreateValidatorMsg ¶
func BuildCreateValidatorMsg(clientCtx client.Context, config TxCreateValidatorConfig, txBldr tx.Factory, generateOnly bool) (tx.Factory, sdk.Msg, error)
BuildCreateValidatorMsg makes a new MsgCreateValidator.
func CollectGenTxsCmd ¶
func CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command
CollectGenTxsCmd - return the cobra command to collect genesis transactions
func CreateValidatorMsgFlagSet ¶
CreateValidatorMsgFlagSet Return the flagset, particular flags, and a description of defaults this is anticipated to be used with the gen-tx
func FlagSetAmounts ¶ added in v0.8.0
FlagSetAmounts Returns the FlagSet for amount related operations.
func FlagSetPublicKey ¶
FlagSetPublicKey Returns the flagset for Public Key related operations.
func GenTxCmd ¶
func GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, genBalIterator GenesisBalancesIterator, defaultNodeHome string) *cobra.Command
GenTxCmd builds the application's gentx command.
func GetCmdQueryHistoricalInfo ¶
GetCmdQueryHistoricalInfo implements the historical info query command
func GetCmdQueryValidator ¶
GetCmdQueryValidator implements the validator query command.
func GetCmdQueryValidatorDelegation ¶
GetCmdQueryValidatorDelegation implements the command to query the self delegation of a specific validator.
func GetCmdQueryValidatorReward ¶
GetCmdQueryValidatorReward implements the command to query the claimable reward of a specific validator.
func GetCmdQueryValidatorUnbondingDelegations ¶
GetCmdQueryValidatorUnbondingDelegations implements the query all unbonding delegatations from a validator command.
func GetCmdQueryValidators ¶
GetCmdQueryValidators implements the query all validators command.
func GetCmdShowPoEContract ¶
func GetQueryCmd ¶
func NewCreateValidatorCmd ¶
func NewDelegateCmd ¶
func NewEditValidatorCmd ¶
func NewUnbondCmd ¶
func NewUnjailTxCmd ¶ added in v0.5.2
func ValidateAccountInGenesis ¶
func ValidateAccountInGenesis( appGenesisState map[string]json.RawMessage, genBalIterator GenesisBalancesIterator, addr sdk.Address, coins sdk.Coins, cdc codec.JSONCodec, ) error
ValidateAccountInGenesis checks that the provided account has a sufficient balance in the set of genesis accounts.
Types ¶
type GenesisBalancesIterator ¶
type GenesisBalancesIterator = genutiltypes.GenesisBalancesIterator
type TxCreateValidatorConfig ¶
type TxCreateValidatorConfig struct { ChainID string NodeID string Moniker string LiquidAmount string VestingAmount string PubKey cryptotypes.PubKey IP string Website string SecurityContact string Details string Identity string }
func PrepareConfigForTxCreateValidator ¶
func PrepareConfigForTxCreateValidator(flagSet *flag.FlagSet, moniker, nodeID, chainID string, valPubKey cryptotypes.PubKey) (TxCreateValidatorConfig, error)