config

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateConfig

func CreateConfig(home string, debug bool) error

createConfig idempotently creates the config.

func GetOsmosisConfig added in v0.6.2

func GetOsmosisConfig(keyHome string, debug bool) *client.ChainClientConfig

func GetQuicksilverConfig added in v0.6.2

func GetQuicksilverConfig(keyHome string, debug bool) *client.ChainClientConfig

func OverwriteConfig

func OverwriteConfig(cfg *Config) error

func ValidateConfig

func ValidateConfig(c *Config) error

Called to initialize the relayer.Chain types on Config

Types

type Config

type Config struct {
	DefaultChain string                               `yaml:"default_chain" json:"default_chain"`
	Chains       map[string]*client.ChainClientConfig `yaml:"chains" json:"chains"`
	Cl           map[string]*client.ChainClient       `yaml:",omitempty" json:",omitempty"`
}

Config represents the config file for the relayer

func (*Config) GetClient

func (c *Config) GetClient(chainID string) *client.ChainClient

func (*Config) GetDefaultClient

func (c *Config) GetDefaultClient() *client.ChainClient

func (Config) MustYAML

func (c Config) MustYAML() []byte

MustYAML returns the yaml string representation of the Paths

Jump to

Keyboard shortcuts

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