config

package
v0.2.5-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 9 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 {
	ChainID            string   `yaml:"chain-id"`
	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"`
}

func (EVM) GetChainID

func (e EVM) GetChainID() *big.Int

type EVMSpecificClientConfig added in v0.10.0

type EVMSpecificClientConfig struct {
	SmartContractAddress string `yaml:"smart-contract-address"`
	CompassID            string `yaml:"compass-id"`
}

type Filepath

type Filepath string

func (Filepath) Path

func (f Filepath) Path() string

type Paloma

type Paloma struct {
	CosmosSpecificClientConfig `yaml:",inline"`
	ChainClientConfig          `yaml:",inline"`
}

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