config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 62 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TempDir = func() string {
	dir, err := os.MkdirTemp("", "WasmStationd")
	if err != nil {
		panic("failed to create temp dir: " + err.Error())
	}
	defer os.RemoveAll(dir)

	return dir
}

Functions

func InitAppConfig

func InitAppConfig() (string, interface{})

InitAppConfig helps to override default appConfig template and configs. return "", nil if no custom configuration is required for the application.

func InitCometBFTConfig

func InitCometBFTConfig() *cmtcfg.Config

InitCometBFTConfig helps to override default CometBFT Config values. return cmtcfg.DefaultConfig if no custom configuration is required for the application.

func InitRootCmd

func InitRootCmd(
	rootCmd *cobra.Command,
	txConfig client.TxConfig,
	interfaceRegistry codectypes.InterfaceRegistry,
	appCodec codec.Codec,
	basicManager module.BasicManager,
)

func NewRootCmd

func NewRootCmd() *cobra.Command

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

func NewTestnetCmd

func NewTestnetCmd(mbm module.BasicManager, genBalIterator banktypes.GenesisBalancesIterator) *cobra.Command

NewTestnetCmd creates a root testnet command with subcommands to run an in-process testnet or initialize validator configuration files for running a multi-validator testnet in a separate process

Types

This section is empty.

Jump to

Keyboard shortcuts

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