config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 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                   `split_words:"true"`
	CheckSubmittedTxStatusDelay uint64                   `split_words:"true" default:"10"`
	QueriesTaskQueueCapacity    int                      `split_words:"true" default:"10000"`
	PrometheusPort              uint16                   `split_words:"true" default:"9999"`
	InitialTxSearchOffset       uint64                   `split_words:"true" default:"0"`
}

NeutronQueryRelayerConfig describes configuration of the app

func NewNeutronQueryRelayerConfig

func NewNeutronQueryRelayerConfig() (NeutronQueryRelayerConfig, error)

type TargetChainConfig

type TargetChainConfig struct {
	RPCAddr                string        `required:"true" split_words:"true"`
	AccountPrefix          string        `required:"true" split_words:"true"`
	ValidatorAccountPrefix 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