config

package
v7.4.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BypassMinFeeMsgTypesKey defines the configuration key for the
	// BypassMinFeeMsgTypes value.
	BypassMinFeeMsgTypesKey = "bypass-min-fee.msg-types" // #nosec G101

	BypassMinFeeMsgMaxGasUsageKey = "bypass-min-fee.msg-max-gas-usage" // #nosec G101
)
View Source
const CustomConfigTemplate = `` /* 670-byte string literal not displayed */

Variables

This section is empty.

Functions

func AppConfig

func AppConfig(mintGasPrice sdk.Coin) (string, interface{})

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

func CmdHandler

func CmdHandler(cmd *cobra.Command, args []string) error

func DefaultConfigTemplate

func DefaultConfigTemplate() string

func DefaultTendermintConfig

func DefaultTendermintConfig() *config.Config

DefaultTendermintConfig returns tendermint default configuration.

func Output

func Output(ctx client.Context, content interface{}) error

Types

type AppToml

type AppToml struct {
	Config *Config
	// contains filtered or unexported fields
}

func (*AppToml) Output

func (a *AppToml) Output(ctx client.Context) error

func (*AppToml) Save

func (a *AppToml) Save() error

type BypassMinFee

type BypassMinFee struct {
	// MsgTypes defines custom message types the operator may set that
	// will bypass minimum fee checks during CheckTx.
	MsgTypes       []string `mapstructure:"msg-types"`
	MsgMaxGasUsage uint64   `mapstructure:"msg-max-gas-usage"`
}

BypassMinFee defines custom that will bypass minimum fee checks during CheckTx.

func DefaultBypassMinFee

func DefaultBypassMinFee() BypassMinFee

DefaultBypassMinFee returns the default BypassMinFee configuration

func (BypassMinFee) Validate

func (f BypassMinFee) Validate() error

type CmdConfig

type CmdConfig interface {
	Save() error
	Output(ctx client.Context) error
}

func NewConfig

func NewConfig(v *viper.Viper, configName string) (CmdConfig, error)

type Config

type Config struct {
	config.Config `mapstructure:",squash"`

	// BypassMinFeeMsgTypes defines custom that will bypass minimum fee checks during CheckTx.
	BypassMinFee BypassMinFee `mapstructure:"bypass-min-fee"`

	EVM     ethermintconfig.EVMConfig     `mapstructure:"evm"`
	JSONRPC ethermintconfig.JSONRPCConfig `mapstructure:"json-rpc"`
	TLS     ethermintconfig.TLSConfig     `mapstructure:"tls"`
}

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns server's default configuration.

func (*Config) ToEthermintConfig

func (c *Config) ToEthermintConfig() *ethermintconfig.Config

func (*Config) ValidateBasic

func (c *Config) ValidateBasic() error

ValidateBasic returns an error any of the application configuration fields are invalid

type TmConfigToml

type TmConfigToml struct {
	Config *tmcfg.Config
	// contains filtered or unexported fields
}

func (*TmConfigToml) Output

func (c *TmConfigToml) Output(ctx client.Context) error

func (*TmConfigToml) Save

func (c *TmConfigToml) Save() error

Jump to

Keyboard shortcuts

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