config

package
v0.0.0-...-2b7c0bf Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Sviper *viper.Viper

Functions

func GetPassphrase

func GetPassphrase(vp *viper.Viper) string

func SetAllLogger

func SetAllLogger(logDir, stdLogName, errLogName, errRedirectLogName string, isDisp bool) (*os.File, *os.File, *os.File)

func SetChainInfo

func SetChainInfo(isTest bool)

func SetInitialDir

func SetInitialDir(krDir string, logDir string) (string, string)

Types

type BotInfo

type BotInfo struct {
	Addr string
	// contains filtered or unexported fields
}

func (BotInfo) Mnemonic

func (b BotInfo) Mnemonic() string

func (BotInfo) Passphrase

func (b BotInfo) Passphrase() string

type FlagOpts

type FlagOpts struct {
	Test   bool
	New    bool
	Disp   bool
	ExtIP  string
	Kn     string
	Host   string
	Period int
	IBCChan
}

type HostChainInfo

type HostChainInfo struct {
	GrpcAddr    string
	Validator   string
	HostAccount string
	Denom       string
	Decimal     uint32
	// contains filtered or unexported fields
}

func (*HostChainInfo) Set

func (hci *HostChainInfo) Set(host string)

type IBCChan

type IBCChan struct {
	Nova IBCPort
	Host IBCPort
}

type IBCPort

type IBCPort struct {
	Transfer string
}

type NovaInfo

type NovaInfo struct {
	Bot     *BotInfo
	ChainID string
	IP      string
	TmRPC   *url.URL
	TmWsRPC *url.URL
	// contains filtered or unexported fields
}

func (*NovaInfo) Set

func (ni *NovaInfo) Set(addrTarget string, keyname ...string)

Jump to

Keyboard shortcuts

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