config

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainName = "paloma"
	Name      = "pigeon"
)
View Source
const (
	ErrUnableToLocateKeyringEnvironmentVar = whoops.String("unable to locate keyring ENV variable")
)

Variables

This section is empty.

Functions

func KeyringPassword

func KeyringPassword(envKey string) string

Types

type ChainClientConfig

type ChainClientConfig struct {
	BaseRPCURL         string   `yaml:"base-rpc-url"`
	KeyringPassEnvName string   `yaml:"keyring-pass-env-name"`
	SigningKey         string   `yaml:"signing-key"`
	KeyringDirectory   Filepath `yaml:"keyring-dir"`
	CallTimeout        string   `yaml:"call-timeout"`
	GasAdjustment      float64  `yaml:"gas-adjustment"`
}

type CosmosSpecificClientConfig

type CosmosSpecificClientConfig struct {
	KeyringType   string `yaml:"keyring-type"`
	AccountPrefix string `yaml:"account-prefix"`
	GasPrices     string `yaml:"gas-prices"`
}

type EVM

type EVM struct {
	EVMSpecificClientConfig `yaml:",inline"`
	ChainClientConfig       `yaml:",inline"`
}

type EVMSpecificClientConfig added in v0.10.0

type EVMSpecificClientConfig struct {
	TxType uint8 `yaml:"tx-type"`
}

type Filepath

type Filepath string

func (Filepath) Path

func (f Filepath) Path() string

type Paloma

type Paloma struct {
	CosmosSpecificClientConfig `yaml:",inline"`
	ChainClientConfig          `yaml:",inline"`
	ChainID                    string `yaml:"chain-id"`
}

type Root

type Root struct {
	HealthCheckPortRaw int `yaml:"health-check-port"`

	Paloma Paloma `yaml:"paloma"`

	EVM map[string]EVM `yaml:"evm"`
}

func FromReader

func FromReader(r io.Reader) (Root, error)

func (*Root) HealthCheckPort added in v0.7.0

func (r *Root) HealthCheckPort() int

Jump to

Keyboard shortcuts

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