cli

package
v0.50.9-lsm Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: Apache-2.0 Imports: 19 Imported by: 132

Documentation

Index

Constants

View Source
const (
	FlagAddressValidator    = "validator"
	FlagAddressValidatorSrc = "addr-validator-source"
	FlagAddressValidatorDst = "addr-validator-dest"
	FlagPubKey              = "pubkey"
	FlagAmount              = "amount"
	FlagSharesAmount        = "shares-amount"
	FlagSharesFraction      = "shares-fraction"

	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"

	FlagGenesisFormat = "genesis-format"
	FlagNodeID        = "node-id"
	FlagIP            = "ip"
	FlagP2PPort       = "p2p-port"
)

Variables

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

func CreateValidatorMsgFlagSet(ipDefault string) (fs *flag.FlagSet, defaultsDesc string)

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

func FlagSetAmount() *flag.FlagSet

FlagSetAmount Returns the FlagSet for amount related operations.

func FlagSetCommissionCreate added in v0.40.0

func FlagSetCommissionCreate() *flag.FlagSet

FlagSetCommissionCreate Returns the FlagSet used for commission create.

func FlagSetPublicKey added in v0.40.0

func FlagSetPublicKey() *flag.FlagSet

FlagSetPublicKey Returns the flagset for Public Key related operations.

func NewCancelUnbondingDelegation added in v0.46.0

func NewCancelUnbondingDelegation(valAddrCodec, ac address.Codec) *cobra.Command

NewCancelUnbondingDelegation returns a CLI command handler for creating a MsgCancelUnbondingDelegation transaction.

func NewCreateValidatorCmd

func NewCreateValidatorCmd(ac address.Codec) *cobra.Command

NewCreateValidatorCmd returns a CLI command handler for creating a MsgCreateValidator transaction.

func NewDelegateCmd

func NewDelegateCmd(valAddrCodec, ac address.Codec) *cobra.Command

NewDelegateCmd returns a CLI command handler for creating a MsgDelegate transaction.

func NewDisableTokenizeShares

func NewDisableTokenizeShares() *cobra.Command

NewDisableTokenizeShares defines a command to disable tokenization for an address

func NewEditValidatorCmd

func NewEditValidatorCmd(ac address.Codec) *cobra.Command

NewEditValidatorCmd returns a CLI command handler for creating a MsgEditValidator transaction.

func NewEnableTokenizeShares

func NewEnableTokenizeShares() *cobra.Command

NewEnableTokenizeShares defines a command to re-enable tokenization for an address

func NewRedeemTokensCmd

func NewRedeemTokensCmd() *cobra.Command

NewRedeemTokensCmd defines a command for redeeming tokens from a validator for shares.

func NewRedelegateCmd

func NewRedelegateCmd(valAddrCodec, ac address.Codec) *cobra.Command

NewRedelegateCmd returns a CLI command handler for creating a MsgBeginRedelegate transaction.

func NewTokenizeSharesCmd

func NewTokenizeSharesCmd(valAddrCodec, ac address.Codec) *cobra.Command

NewTokenizeSharesCmd defines a command for tokenizing shares from a validator.

func NewTransferTokenizeShareRecordCmd

func NewTransferTokenizeShareRecordCmd(ac address.Codec) *cobra.Command

NewTransferTokenizeShareRecordCmd defines a command to transfer ownership of TokenizeShareRecord

func NewTxCmd

func NewTxCmd(valAddrCodec, ac address.Codec) *cobra.Command

NewTxCmd returns a root CLI command handler for all x/staking transaction commands.

func NewUnbondCmd

func NewUnbondCmd(valAddrCodec, ac address.Codec) *cobra.Command

NewUnbondCmd returns a CLI command handler for creating a MsgUndelegate transaction.

func NewUnbondValidatorCmd

func NewUnbondValidatorCmd() *cobra.Command

func NewValidatorBondCmd

func NewValidatorBondCmd() *cobra.Command

NewValidatorBondCmd defines a command to mark a delegation as a validator self bond

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

	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)

Jump to

Keyboard shortcuts

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