config

package
v0.0.0-...-ad19e34 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const EnvPrefix string = "RELAYER"

Variables

This section is empty.

Functions

This section is empty.

Types

type NeutronChainConfig

type NeutronChainConfig struct {
	RPCAddr        string        `required:"true" split_words:"true"`
	RESTAddr       string        `required:"true" split_words:"true"`
	HomeDir        string        `required:"true" split_words:"true"`
	SignKeyName    string        `required:"true" split_words:"true"`
	Timeout        time.Duration `split_words:"true" default:"10s"`
	GasPrices      string        `required:"true" split_words:"true"`
	GasLimit       uint64        `split_words:"true" default:"0"`
	GasAdjustment  float64       `required:"true" split_words:"true"`
	ConnectionID   string        `required:"true" split_words:"true"`
	Debug          bool          `split_words:"true" default:"false"`
	KeyringBackend string        `required:"true" split_words:"true"`
	OutputFormat   string        `split_words:"true" default:"json"`
	SignModeStr    string        `split_words:"true" default:"direct"`
}

type NeutronQueryRelayerConfig

type NeutronQueryRelayerConfig struct {
	NeutronChain     *NeutronChainConfig `split_words:"true"`
	TargetChain      *TargetChainConfig  `split_words:"true"`
	AllowKVCallbacks bool                `required:"true" split_words:"true"`
}

NeutronQueryRelayerConfig describes configuration of the app

func NewNeutronQueryRelayerConfig

func NewNeutronQueryRelayerConfig() (NeutronQueryRelayerConfig, error)

type TargetChainConfig

type TargetChainConfig struct {
	RPCAddr      string        `required:"true" split_words:"true"`
	Timeout      time.Duration `split_words:"true" default:"10s"`
	Debug        bool          `split_words:"true" default:"false"`
	OutputFormat string        `split_words:"true" default:"json"`
}

Jump to

Keyboard shortcuts

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