config

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuth

func GetAuth(mnemonic string) (keyring.Keyring, sdk.ValAddress, sdk.AccAddress)

Types

type Config

type Config struct {
	ExchangesToPairToSymbolMap map[string]map[asset.Pair]types.Symbol
	DataSourceConfigMap        map[string]json.RawMessage
	GRPCEndpoint               string
	WebsocketEndpoint          string
	FeederMnemonic             string
	ValidatorAddress           string // Optional
	ChainID                    string
	ValidatorAddr              *sdk.ValAddress
}

func Get

func Get() (*Config, error)

Get loads the configuration from the .env file and returns a Config struct or an error if the configuration is invalid.

func MustGet

func MustGet() *Config

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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