Documentation ¶
Index ¶
- Constants
- Variables
- func BuildCreateValidatorMsg(clientCtx client.Context, config TxCreateValidatorConfig, txBldr tx.Factory, ...) (tx.Factory, sdk.Msg, error)
- func CreateValidatorMsgFlagSet(ipDefault string) (fs *flag.FlagSet, defaultsDesc string)
- func FlagSetAmount() *flag.FlagSet
- func FlagSetCommissionCreate() *flag.FlagSet
- func FlagSetMinSelfDelegation() *flag.FlagSet
- func FlagSetPublicKey() *flag.FlagSet
- func NewCancelUnbondingDelegation(valAddrCodec, ac address.Codec) *cobra.Command
- func NewCreateValidatorCmd(ac address.Codec) *cobra.Command
- func NewDelegateCmd(valAddrCodec, ac address.Codec) *cobra.Command
- func NewEditValidatorCmd(ac address.Codec) *cobra.Command
- func NewRedelegateCmd(valAddrCodec, ac address.Codec) *cobra.Command
- func NewTxCmd(valAddrCodec, ac address.Codec) *cobra.Command
- func NewUnbondCmd(valAddrCodec, ac address.Codec) *cobra.Command
- type TxCreateValidatorConfig
Constants ¶
const ( FlagAddressValidator = "validator" FlagAddressValidatorSrc = "addr-validator-source" FlagAddressValidatorDst = "addr-validator-dest" FlagPubKey = "pubkey" FlagAmount = "amount" FlagMoniker = "moniker" FlagEditMoniker = "new-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" FlagP2PPort = "p2p-port" )
Variables ¶
var (
DefaultTokens = sdk.TokensFromConsensusPower(100, sdk.DefaultPowerReduction)
)
default values
Functions ¶
func BuildCreateValidatorMsg ¶
func BuildCreateValidatorMsg(clientCtx client.Context, config TxCreateValidatorConfig, txBldr tx.Factory, generateOnly bool, valCodec address.Codec) (tx.Factory, sdk.Msg, error)
BuildCreateValidatorMsg makes a new MsgCreateValidator.
func CreateValidatorMsgFlagSet ¶ added in v0.40.0
Return the flagset, particular flags, and a description of defaults this is anticipated to be used with the gen-tx
func FlagSetAmount ¶ added in v0.40.0
FlagSetAmount Returns the FlagSet for amount related operations.
func FlagSetCommissionCreate ¶ added in v0.40.0
FlagSetCommissionCreate Returns the FlagSet used for commission create.
func FlagSetMinSelfDelegation ¶ added in v0.40.0
FlagSetMinSelfDelegation Returns the FlagSet used for minimum set delegation.
func FlagSetPublicKey ¶ added in v0.40.0
FlagSetPublicKey Returns the flagset for Public Key related operations.
func NewCancelUnbondingDelegation ¶ added in v0.46.0
NewCancelUnbondingDelegation returns a CLI command handler for creating a MsgCancelUnbondingDelegation transaction.
func NewCreateValidatorCmd ¶
NewCreateValidatorCmd returns a CLI command handler for creating a MsgCreateValidator transaction.
func NewDelegateCmd ¶
NewDelegateCmd returns a CLI command handler for creating a MsgDelegate transaction.
func NewEditValidatorCmd ¶
NewEditValidatorCmd returns a CLI command handler for creating a MsgEditValidator transaction.
func NewRedelegateCmd ¶
NewRedelegateCmd returns a CLI command handler for creating a MsgBeginRedelegate transaction.
Types ¶
type TxCreateValidatorConfig ¶ added in v0.40.0
type TxCreateValidatorConfig struct { ChainID string NodeID string Moniker string Amount string CommissionRate string CommissionMaxRate string CommissionMaxChangeRate string MinSelfDelegation string PubKey cryptotypes.PubKey IP string P2PPort uint Website string SecurityContact string Details string Identity string }
func PrepareConfigForTxCreateValidator ¶ added in v0.40.0
func PrepareConfigForTxCreateValidator(flagSet *flag.FlagSet, moniker, nodeID, chainID string, valPubKey cryptotypes.PubKey) (TxCreateValidatorConfig, error)