config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 4 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"`
	Registry                    *registry.RegistryConfig `split_words:"true"`
	AllowTxQueries              bool                     `required:"true" split_words:"true"`
	AllowKVCallbacks            bool                     `required:"true" split_words:"true"`
	MinKvUpdatePeriod           uint64                   `split_words:"true" default:"0"`
	StoragePath                 string                   `required:"true" split_words:"true"`
	CheckSubmittedTxStatusDelay time.Duration            `split_words:"true" default:"10s"`
	QueriesTaskQueueCapacity    int                      `split_words:"true" default:"10000"`
	InitialTxSearchOffset       uint64                   `split_words:"true" default:"0"`
	ListenAddr                  string                   `split_words:"true" default:"127.0.0.1:9999"`
	IgnoreErrorsRegex           string                   `split_words:"true" default:"(execute wasm contract failed|failed to build tx query string)"`
}

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