cmd

package
v0.0.0-...-baf6593 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: AGPL-3.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvPrefix = "FURYA"
)
View Source
const (

	// `minGasPrice` defines the default `minimum-gas-prices` attribute in validator's `app.toml` file.
	MinGasPrice = minGasPriceUusdc + "," + minGasPriceStakeToken
)

Variables

This section is empty.

Functions

func AddGenesisAccountCmd

func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command

AddGenesisAccountCmd returns add-genesis-account cobra Command.

func AddInitCmdPostRunE

func AddInitCmdPostRunE(rootCmd *cobra.Command)

AddInitCmdPostRunE adds a PostRunE to the `init` subcommand.

func AddTendermintSubcommands

func AddTendermintSubcommands(rootCmd *cobra.Command)

AddTendermintSubcommands adds custom Tendermint subcommands.

func NewRootCmd

func NewRootCmd(
	option *RootCmdOption,
) *cobra.Command

TODO(DEC-1097): improve `cmd/` by adding tests, custom app configs, custom init cmd, and etc. NewRootCmd creates a new root command for `furyaprotocold`. It is called once in the main function.

func NewRootCmdWithInterceptors

func NewRootCmdWithInterceptors(
	option *RootCmdOption,
	serverCtxInterceptor func(serverCtxPtr *server.Context),
	appConfigInterceptor func(string, *FuryaAppConfig) (string, *FuryaAppConfig),
	appInterceptor func(app *furyaapp.App) *furyaapp.App,
) *cobra.Command

Types

type FuryaAppConfig

type FuryaAppConfig struct {
	serverconfig.Config
}

FuryaAppConfig specifies dYdX app specific config.

type RootCmdOption

type RootCmdOption struct {
	// contains filtered or unexported fields
}

RootCmdOption configures root command option.

func GetOptionWithCustomStartCmd

func GetOptionWithCustomStartCmd() *RootCmdOption

GetOptionWithCustomStartCmd returns a root command option with custom start commands.

Jump to

Keyboard shortcuts

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