config

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AwsKms = "aws-kms"
	Local  = "local"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainConfig

type ChainConfig struct {
	ChainID   string `yaml:"chain_id"`
	ChainName string `yaml:"chain_name"`
	ChainType string `yaml:"chain_type"`
	RpcUrl    string `yaml:"rpc_url"`
}

func (*ChainConfig) Validate

func (c *ChainConfig) Validate() error

type Config

type Config struct {
	Settlus  SettlusConfig `yaml:"settlus"`
	Feeder   FeederConfig  `yaml:"feeder"`
	Chains   []ChainConfig `yaml:"chains"`
	DBHome   string        `yaml:"db_home"`
	LogLevel string        `yaml:"log_level"`
	Port     uint16        `yaml:"port"`
}

func (*Config) MustMarshalYaml

func (c *Config) MustMarshalYaml() []byte

func (*Config) Validate

func (c *Config) Validate() error

type Fee

type Fee struct {
	Denom  string `yaml:"denom"`
	Amount string `yaml:"amount"`
}

type FeederConfig

type FeederConfig struct {
	Topics           string `yaml:"topics"`
	SignerMode       string `yaml:"signer_mode"`
	Address          string `yaml:"address"`   // derived from private key or aws kms key id, no need to set manually
	FeePayer         string `yaml:"fee_payer"` // optional fee payer address
	Key              string `yaml:"key"`       // aws kms key id or private key
	ValidatorAddress string `yaml:"validator_address"`
}

func (*FeederConfig) Validate

func (fc *FeederConfig) Validate() error

type RuntimeConfig

type RuntimeConfig struct {
	HomeDir    string
	ConfigFile string
	Config     Config
}

func (RuntimeConfig) WriteConfigFile

func (c RuntimeConfig) WriteConfigFile() error

type SettlusConfig

type SettlusConfig struct {
	ChainId  string `yaml:"chain_id"`
	RpcUrl   string `yaml:"rpc_url"`
	GrpcUrl  string `yaml:"grpc_url"`
	Insecure bool   `yaml:"insecure"`
	GasLimit uint64 `yaml:"gas_limit"`
	Fees     Fee    `yaml:"fees"`
}

func (*SettlusConfig) Validate

func (sc *SettlusConfig) Validate() error

Jump to

Keyboard shortcuts

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