config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 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 {
	ChainClientConfig `yaml:",inline"`
}

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 {
	Paloma Paloma `yaml:"paloma"`

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

func FromReader

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

Jump to

Keyboard shortcuts

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