config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 15 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
	ChainID                    string
	ValidatorAddr              *sdk.ValAddress
	EnableTLS                  bool
}

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

type ImporterNull added in v0.21.0

type ImporterNull struct{}

func (ImporterNull) ImportPrivKey added in v0.21.0

func (i ImporterNull) ImportPrivKey(uid, armor, passphrase string) error

func (ImporterNull) ImportPrivKeyHex added in v1.0.0

func (i ImporterNull) ImportPrivKeyHex(uid, privKey, algoStr string) error

func (ImporterNull) ImportPubKey added in v0.21.0

func (i ImporterNull) ImportPubKey(uid string, armor string) error

type MigratorNull added in v0.21.0

type MigratorNull struct{}

func (MigratorNull) MigrateAll added in v0.21.0

func (m MigratorNull) MigrateAll() ([]*keyring.Record, error)

Jump to

Keyboard shortcuts

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