cmd

package
v0.0.0-...-34f0fe8 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 74 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FlagOverwrite defines a flag to overwrite an existing genesis JSON file.
	FlagOverwrite = "overwrite"

	// FlagSeed defines a flag to initialize the private validator key from a specific seed.
	FlagRecover = "recover"
)
View Source
const (
	FlagOldMoniker         = "old-moniker"
	FlagOldAccountAddr     = "old-account-addr"
	FlagVotingPeriod       = "voting-period"
	FlagPruneIbc           = "prune-ibc"
	FlagIncreaseCoinAmount = "increase-coin-amount"
)

Variables

View Source
var ChainID string

Functions

func AddGenesisAccountCmd

func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func ConvertStateExport

func ConvertStateExport(clientCtx client.Context, params StateExportParams) (*tmtypes.GenesisDoc, error)

func InitCmd

func InitCmd(mbm module.BasicManager, defaultNodeHome string) *cobra.Command

InitCmd returns a command that initializes all files needed for Tendermint and the respective application.

func InitFromStateCmd

func InitFromStateCmd(defaultNodeHome string) *cobra.Command

InitFromStateCmd returns a command that initializes all files needed for Tendermint and the respective application.

func InitTestnet

func InitTestnet(
	clientCtx client.Context,
	cmd *cobra.Command,
	nodeConfig *tmconfig.Config,
	mbm module.BasicManager,
	genBalIterator banktypes.GenesisBalancesIterator,
	genesisParams GenesisParams,
	outputDir,
	chainID,
	minGasPrices,
	nodeDirPrefix,
	nodeDaemonHome,
	startingIPAddress,
	keyringBackend,
	algoStr string,
	numValidators int,
) error

Initialize the testnet

func NewRootCmd

func NewRootCmd() (*cobra.Command, params.EncodingConfig)

NewRootCmd creates a new root command for simd. It is called once in the main function.

func PrepareGenesis

func PrepareGenesis(clientCtx client.Context, appState map[string]json.RawMessage, genDoc *tmtypes.GenesisDoc, genesisParams GenesisParams, chainID string) (map[string]json.RawMessage, *tmtypes.GenesisDoc, error)

func PrepareGenesisCmd

func PrepareGenesisCmd(defaultNodeHome string, mbm module.BasicManager) *cobra.Command

Types

type GenesisParams

type GenesisParams struct {
	GenesisTime     time.Time
	ConsensusParams *tmproto.ConsensusParams
	NativeCoin      []banktypes.Metadata

	StakingParams      stakingtypes.Params
	MintParams         minttypes.Params
	DistributionParams distributiontypes.Params
	GovParams          govtypes.Params
	SlashingParams     slashingtypes.Params

	CrisisConstantFee sdk.Coin

	FantokenParams   fantokentypes.Params
	MerkledropParams merkledroptypes.Params
}

func MainnetGenesisParams

func MainnetGenesisParams() GenesisParams

func TestnetGenesisParams

func TestnetGenesisParams() GenesisParams

type StateExportParams

type StateExportParams struct {
	StateFile          string
	ChainID            string
	Moniker            string
	KeyName            string
	IncreaseCoinAmount int64
	OldMoniker         string
	TmPubKey           tmcrypto.PubKey
	OldAccountAddress  string
	VotingPeriod       time.Duration
	PruneIBC           bool
	Overwrite          bool
}

func (*StateExportParams) String

func (s *StateExportParams) String() string

func (*StateExportParams) Validate

func (s *StateExportParams) Validate() error

Jump to

Keyboard shortcuts

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