cmd

package
v14.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 78 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HumanCoinUnit       = "stars"
	BaseCoinUnit        = "ustars"
	StarsExponent       = 6
	Bech32PrefixAccAddr = "stars"
)
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 EnvironmentPrefix = "STARGAZE"

Variables

View Source
var LibwasmVersion = "1.5.2"

Functions

func Bech32Cmd

func Bech32Cmd() *cobra.Command

Cmd creates a main CLI command

func Bech32DecodeCmd

func Bech32DecodeCmd() *cobra.Command

func Bech32EncodeCmd

func Bech32EncodeCmd() *cobra.Command

func CheckLibwasmVersion

func CheckLibwasmVersion(_ *cobra.Command, _ []string) 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 NewRootCmd

func NewRootCmd() *cobra.Command

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

func NewTestnetCmd

func NewTestnetCmd(mbm module.BasicManager) *cobra.Command

func PrepareGenesis

func PrepareGenesis(
	clientCtx client.Context,
	appState map[string]json.RawMessage,
	genesisParams GenesisParams,
) map[string]json.RawMessage

Types

type GenesisParams

type GenesisParams struct {
	GenesisTime         time.Time
	NativeCoinMetadatas []banktypes.Metadata

	StakingParams      stakingtypes.Params
	DistributionParams distributiontypes.Params

	SlashingParams slashingtypes.Params

	AllocParams alloctypes.Params

	MintParams      minttypes.Params
	GlobalFeeParams globalfeetypes.Params
	WasmParams      wasmtypes.Params

	GovParams govtypes.Params

	TokenFactoryParams tokenfactorytypes.Params

	ConsensusParams *cmtproto.ConsensusParams

	CrisisConstantFee sdk.Coin
}

func DefaultGenesisParams

func DefaultGenesisParams() GenesisParams

params only

func TestnetGenesisParams

func TestnetGenesisParams() GenesisParams

params only

type TestnetNode

type TestnetNode struct {
	Name             string
	OutsidePortRange string
	InsidePortRange  string
	APIPort          string
	GRPCPort         string
}

TestnetNode holds configuration for nodes

Jump to

Keyboard shortcuts

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