cli

package
v0.45.16-ics-lsm-strea... Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 15 Imported by: 133

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"
)

Variables

default values

Functions

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 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 GetCmdQueryAllTokenizeShareRecords

func GetCmdQueryAllTokenizeShareRecords() *cobra.Command

GetCmdQueryAllTokenizeShareRecords implements the query for all tokenize share records

func GetCmdQueryDelegation

func GetCmdQueryDelegation() *cobra.Command

GetCmdQueryDelegation the query delegation command.

func GetCmdQueryDelegations

func GetCmdQueryDelegations() *cobra.Command

GetCmdQueryDelegations implements the command to query all the delegations made from one delegator.

func GetCmdQueryHistoricalInfo

func GetCmdQueryHistoricalInfo() *cobra.Command

GetCmdQueryHistoricalInfo implements the historical info query command

func GetCmdQueryLastTokenizeShareRecordID

func GetCmdQueryLastTokenizeShareRecordID() *cobra.Command

GetCmdQueryLastTokenizeShareRecordId implements the query for last tokenize share record id

func GetCmdQueryParams

func GetCmdQueryParams() *cobra.Command

GetCmdQueryParams implements the params query command.

func GetCmdQueryPool

func GetCmdQueryPool() *cobra.Command

GetCmdQueryPool implements the pool query command.

func GetCmdQueryRedelegation

func GetCmdQueryRedelegation() *cobra.Command

GetCmdQueryRedelegation implements the command to query a single redelegation record.

func GetCmdQueryRedelegations

func GetCmdQueryRedelegations() *cobra.Command

GetCmdQueryRedelegations implements the command to query all the redelegation records for a delegator.

func GetCmdQueryTokenizeShareLockInfo

func GetCmdQueryTokenizeShareLockInfo() *cobra.Command

GetCmdQueryTokenizeShareLockInfo returns the tokenize share lock status for a user

func GetCmdQueryTokenizeShareRecordByDenom

func GetCmdQueryTokenizeShareRecordByDenom() *cobra.Command

GetCmdQueryTokenizeShareRecordByDenom implements the query for individual tokenize share record information by share denom

func GetCmdQueryTokenizeShareRecordByID

func GetCmdQueryTokenizeShareRecordByID() *cobra.Command

GetCmdQueryTokenizeShareRecordById implements the query for individual tokenize share record information by share by id

func GetCmdQueryTokenizeShareRecordsOwned

func GetCmdQueryTokenizeShareRecordsOwned() *cobra.Command

GetCmdQueryTokenizeShareRecordsOwned implements the query tokenize share records by address

func GetCmdQueryTotalLiquidStaked

func GetCmdQueryTotalLiquidStaked() *cobra.Command

GetCmdQueryTotalLiquidStaked implements the query for total liquid staked tokens

func GetCmdQueryTotalTokenizeSharedAssets

func GetCmdQueryTotalTokenizeSharedAssets() *cobra.Command

GetCmdQueryTotalTokenizeSharedAssets implements the query for total tokenized staked assets

func GetCmdQueryUnbondingDelegation

func GetCmdQueryUnbondingDelegation() *cobra.Command

GetCmdQueryUnbondingDelegation implements the command to query a single unbonding-delegation record.

func GetCmdQueryUnbondingDelegations

func GetCmdQueryUnbondingDelegations() *cobra.Command

GetCmdQueryUnbondingDelegations implements the command to query all the unbonding-delegation records for a delegator.

func GetCmdQueryValidator

func GetCmdQueryValidator() *cobra.Command

GetCmdQueryValidator implements the validator query command.

func GetCmdQueryValidatorDelegations

func GetCmdQueryValidatorDelegations() *cobra.Command

GetCmdQueryValidatorDelegations implements the command to query all the delegations to a specific validator.

func GetCmdQueryValidatorRedelegations

func GetCmdQueryValidatorRedelegations() *cobra.Command

GetCmdQueryValidatorRedelegations implements the query all redelegatations from a validator command.

func GetCmdQueryValidatorUnbondingDelegations

func GetCmdQueryValidatorUnbondingDelegations() *cobra.Command

GetCmdQueryValidatorUnbondingDelegations implements the query all unbonding delegatations from a validator command.

func GetCmdQueryValidators

func GetCmdQueryValidators() *cobra.Command

GetCmdQueryValidators implements the query all validators command.

func GetQueryCmd

func GetQueryCmd() *cobra.Command

GetQueryCmd returns the cli query commands for this module

func NewCancelUnbondingDelegation added in v0.46.0

func NewCancelUnbondingDelegation() *cobra.Command

func NewCreateValidatorCmd

func NewCreateValidatorCmd() *cobra.Command

func NewDelegateCmd

func NewDelegateCmd() *cobra.Command

func NewDisableTokenizeShares

func NewDisableTokenizeShares() *cobra.Command

NewDisableTokenizeShares defines a command to disable tokenization for an address

func NewEditValidatorCmd

func NewEditValidatorCmd() *cobra.Command

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() *cobra.Command

func NewTokenizeSharesCmd

func NewTokenizeSharesCmd() *cobra.Command

NewTokenizeSharesCmd defines a command for tokenizing shares from a validator.

func NewTransferTokenizeShareRecordCmd

func NewTransferTokenizeShareRecordCmd() *cobra.Command

NewTransferTokenizeShareRecordCmd defines a command to transfer ownership of TokenizeShareRecord

func NewTxCmd

func NewTxCmd() *cobra.Command

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

func NewUnbondCmd

func NewUnbondCmd() *cobra.Command

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
	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