Documentation ¶
Index ¶
- Constants
- Variables
- func BuildCreateValidatorMsg(cliCtx context.CLIContext, txBldr auth.TxBuilder) (auth.TxBuilder, sdk.Msg, error)
- func CreateValidatorMsgHelpers(ipDefault string) (fs *flag.FlagSet, nodeIDFlag, pubkeyFlag, amountFlag, defaultsDesc string)
- func GetCmdCreateValidator(cdc *codec.Codec) *cobra.Command
- func GetCmdDelegate(cdc *codec.Codec) *cobra.Command
- func GetCmdEditValidator(cdc *codec.Codec) *cobra.Command
- func GetCmdQueryDelegation(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryDelegations(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryHistoricalInfo(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryParams(storeName string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryPool(storeName string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryRedelegation(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryRedelegations(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryUnbondingDelegation(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryUnbondingDelegations(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryValidator(storeName string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryValidatorDelegations(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryValidatorRedelegations(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryValidatorUnbondingDelegations(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetCmdQueryValidators(storeName string, cdc *codec.Codec) *cobra.Command
- func GetCmdRedelegate(storeName string, cdc *codec.Codec) *cobra.Command
- func GetCmdUnbond(storeName string, cdc *codec.Codec) *cobra.Command
- func GetQueryCmd(queryRoute string, cdc *codec.Codec) *cobra.Command
- func GetTxCmd(storeKey string, cdc *codec.Codec) *cobra.Command
- func NewBuildCreateValidatorMsg(cliCtx context.CLIContext, txf tx.Factory) (tx.Factory, sdk.Msg, error)
- func NewCreateValidatorCmd(m codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever) *cobra.Command
- func NewDelegateCmd(m codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever) *cobra.Command
- func NewEditValidatorCmd(m codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever) *cobra.Command
- func NewRedelegateCmd(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 NewUnbondCmd(m codec.Marshaler, txg tx.Generator, ar tx.AccountRetriever) *cobra.Command
- func PrepareFlagsForTxCreateValidator(config *cfg.Config, nodeID, chainID string, valPubKey crypto.PubKey)
Constants ¶
const ( FlagAddressValidator = "validator" FlagAddressValidatorSrc = "addr-validator-source" FlagAddressValidatorDst = "addr-validator-dest" FlagPubKey = "pubkey" FlagAmount = "amount" FlagMoniker = "moniker" FlagIdentity = "identity" FlagWebsite = "website" FlagSecurityContact = "security-contact" FlagDetails = "details" FlagCommissionRate = "commission-rate" FlagCommissionMaxRate = "commission-max-rate" FlagCommissionMaxChangeRate = "commission-max-change-rate" FlagMinSelfDelegation = "min-self-delegation" FlagGenesisFormat = "genesis-format" FlagNodeID = "node-id" FlagIP = "ip" )
Variables ¶
var ( FsPk = flag.NewFlagSet("", flag.ContinueOnError) FsAmount = flag.NewFlagSet("", flag.ContinueOnError) FsCommissionCreate = flag.NewFlagSet("", flag.ContinueOnError) FsMinSelfDelegation = flag.NewFlagSet("", flag.ContinueOnError) )
common flagsets to add to various functions
Functions ¶
func BuildCreateValidatorMsg ¶
func BuildCreateValidatorMsg(cliCtx context.CLIContext, txBldr auth.TxBuilder) (auth.TxBuilder, sdk.Msg, error)
BuildCreateValidatorMsg makes a new MsgCreateValidator.
func CreateValidatorMsgHelpers ¶
func CreateValidatorMsgHelpers(ipDefault string) (fs *flag.FlagSet, nodeIDFlag, pubkeyFlag, amountFlag, defaultsDesc string)
Return the flagset, particular flags, and a description of defaults this is anticipated to be used with the gen-tx
func GetCmdCreateValidator ¶
GetCmdCreateValidator implements the create validator command handler.
func GetCmdDelegate ¶
GetCmdDelegate implements the delegate command.
func GetCmdEditValidator ¶
GetCmdEditValidator implements the create edit validator command. TODO: add full description
func GetCmdQueryDelegation ¶
GetCmdQueryDelegation the query delegation command.
func GetCmdQueryDelegations ¶
GetCmdQueryDelegations implements the command to query all the delegations made from one delegator.
func GetCmdQueryHistoricalInfo ¶
GetCmdQueryHistoricalInfo implements the historical info query command
func GetCmdQueryParams ¶
GetCmdQueryParams implements the params query command.
func GetCmdQueryPool ¶
GetCmdQueryPool implements the pool query command.
func GetCmdQueryRedelegation ¶
GetCmdQueryRedelegation implements the command to query a single redelegation record.
func GetCmdQueryRedelegations ¶
GetCmdQueryRedelegations implements the command to query all the redelegation records for a delegator.
func GetCmdQueryUnbondingDelegation ¶
GetCmdQueryUnbondingDelegation implements the command to query a single unbonding-delegation record.
func GetCmdQueryUnbondingDelegations ¶
GetCmdQueryUnbondingDelegations implements the command to query all the unbonding-delegation records for a delegator.
func GetCmdQueryValidator ¶
GetCmdQueryValidator implements the validator query command.
func GetCmdQueryValidatorDelegations ¶
GetCmdQueryValidatorDelegations implements the command to query all the delegations to a specific validator.
func GetCmdQueryValidatorRedelegations ¶
GetCmdQueryValidatorRedelegations implements the query all redelegatations from a validator command.
func GetCmdQueryValidatorUnbondingDelegations ¶
GetCmdQueryValidatorUnbondingDelegations implements the query all unbonding delegatations from a validator command.
func GetCmdQueryValidators ¶
GetCmdQueryValidators implements the query all validators command.
func GetCmdRedelegate ¶
GetCmdRedelegate the begin redelegation command.
func GetCmdUnbond ¶
GetCmdUnbond implements the unbond validator command.
func GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module
func GetTxCmd ¶
GetTxCmd returns the transaction commands for this module
TODO: Remove once client-side Protobuf migration has been completed. ref: https://github.com/cosmos/cosmos-sdk/issues/5864 GetTxCmd returns the transaction commands for this module
func NewCreateValidatorCmd ¶
func NewDelegateCmd ¶
func NewEditValidatorCmd ¶
func NewRedelegateCmd ¶
func NewUnbondCmd ¶
Types ¶
This section is empty.