Documentation ¶
Index ¶
- Constants
- func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
- func AddInitCmdPostRunE(rootCmd *cobra.Command)
- func AddTendermintSubcommands(rootCmd *cobra.Command)
- func NewRootCmd(option *RootCmdOption) *cobra.Command
- func NewRootCmdWithInterceptors(option *RootCmdOption, serverCtxInterceptor func(serverCtxPtr *server.Context), ...) *cobra.Command
- type JinxAppConfig
- type RootCmdOption
Constants ¶
View Source
const (
EnvPrefix = "JINX"
)
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 ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func AddInitCmdPostRunE ¶
AddInitCmdPostRunE adds a PostRunE to the `init` subcommand.
func AddTendermintSubcommands ¶
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 `jinxprotocold`. It is called once in the main function.
func NewRootCmdWithInterceptors ¶
func NewRootCmdWithInterceptors( option *RootCmdOption, serverCtxInterceptor func(serverCtxPtr *server.Context), appConfigInterceptor func(string, *JinxAppConfig) (string, *JinxAppConfig), appInterceptor func(app *jinxapp.App) *jinxapp.App, ) *cobra.Command
Types ¶
type JinxAppConfig ¶
type JinxAppConfig struct {
serverconfig.Config
}
JinxAppConfig specifies jInX 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.
Click to show internal directories.
Click to hide internal directories.