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 FlagSetPublicKey() *flag.FlagSet
- func GetCmdQueryAllTokenizeShareRecords() *cobra.Command
- func GetCmdQueryDelegation() *cobra.Command
- func GetCmdQueryDelegations() *cobra.Command
- func GetCmdQueryHistoricalInfo() *cobra.Command
- func GetCmdQueryLastTokenizeShareRecordID() *cobra.Command
- func GetCmdQueryParams() *cobra.Command
- func GetCmdQueryPool() *cobra.Command
- func GetCmdQueryRedelegation() *cobra.Command
- func GetCmdQueryRedelegations() *cobra.Command
- func GetCmdQueryTokenizeShareLockInfo() *cobra.Command
- func GetCmdQueryTokenizeShareRecordByDenom() *cobra.Command
- func GetCmdQueryTokenizeShareRecordByID() *cobra.Command
- func GetCmdQueryTokenizeShareRecordsOwned() *cobra.Command
- func GetCmdQueryTotalLiquidStaked() *cobra.Command
- func GetCmdQueryTotalTokenizeSharedAssets() *cobra.Command
- func GetCmdQueryUnbondingDelegation() *cobra.Command
- func GetCmdQueryUnbondingDelegations() *cobra.Command
- func GetCmdQueryValidator() *cobra.Command
- func GetCmdQueryValidatorDelegations() *cobra.Command
- func GetCmdQueryValidatorRedelegations() *cobra.Command
- func GetCmdQueryValidatorUnbondingDelegations() *cobra.Command
- func GetCmdQueryValidators() *cobra.Command
- func GetQueryCmd() *cobra.Command
- func NewCancelUnbondingDelegation() *cobra.Command
- func NewCreateValidatorCmd() *cobra.Command
- func NewDelegateCmd() *cobra.Command
- func NewDisableTokenizeShares() *cobra.Command
- func NewEditValidatorCmd() *cobra.Command
- func NewEnableTokenizeShares() *cobra.Command
- func NewRedeemTokensCmd() *cobra.Command
- func NewRedelegateCmd() *cobra.Command
- func NewTokenizeSharesCmd() *cobra.Command
- func NewTransferTokenizeShareRecordCmd() *cobra.Command
- func NewTxCmd() *cobra.Command
- func NewUnbondCmd() *cobra.Command
- func NewUnbondValidatorCmd() *cobra.Command
- func NewValidatorBondCmd() *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" FlagGenesisFormat = "genesis-format" FlagNodeID = "node-id" FlagIP = "ip" )
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) (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 FlagSetPublicKey ¶ added in v0.40.0
FlagSetPublicKey Returns the flagset for Public Key related operations.
func GetCmdQueryAllTokenizeShareRecords ¶
GetCmdQueryAllTokenizeShareRecords implements the query for all tokenize share records
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 GetCmdQueryLastTokenizeShareRecordID ¶
GetCmdQueryLastTokenizeShareRecordId implements the query for last tokenize share record id
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 GetCmdQueryTokenizeShareLockInfo ¶
GetCmdQueryTokenizeShareLockInfo returns the tokenize share lock status for a user
func GetCmdQueryTokenizeShareRecordByDenom ¶
GetCmdQueryTokenizeShareRecordByDenom implements the query for individual tokenize share record information by share denom
func GetCmdQueryTokenizeShareRecordByID ¶
GetCmdQueryTokenizeShareRecordById implements the query for individual tokenize share record information by share by id
func GetCmdQueryTokenizeShareRecordsOwned ¶
GetCmdQueryTokenizeShareRecordsOwned implements the query tokenize share records by address
func GetCmdQueryTotalLiquidStaked ¶
GetCmdQueryTotalLiquidStaked implements the query for total liquid staked tokens
func GetCmdQueryTotalTokenizeSharedAssets ¶
GetCmdQueryTotalTokenizeSharedAssets implements the query for total tokenized staked assets
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 GetQueryCmd ¶
GetQueryCmd returns the cli query commands for this module
func NewCancelUnbondingDelegation ¶ added in v0.46.0
func NewCreateValidatorCmd ¶
func NewDelegateCmd ¶
func NewDisableTokenizeShares ¶
NewDisableTokenizeShares defines a command to disable tokenization for an address
func NewEditValidatorCmd ¶
func NewEnableTokenizeShares ¶
NewEnableTokenizeShares defines a command to re-enable tokenization for an address
func NewRedeemTokensCmd ¶
NewRedeemTokensCmd defines a command for redeeming tokens from a validator for shares.
func NewRedelegateCmd ¶
func NewTokenizeSharesCmd ¶
NewTokenizeSharesCmd defines a command for tokenizing shares from a validator.
func NewTransferTokenizeShareRecordCmd ¶
NewTransferTokenizeShareRecordCmd defines a command to transfer ownership of TokenizeShareRecord
func NewUnbondCmd ¶
func NewUnbondValidatorCmd ¶
func NewValidatorBondCmd ¶
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)