relayer

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigTemplate = `` /* 2375-byte string literal not displayed */
View Source
const (
	ServiceNameRelayer = "relayer"
)

Variables

This section is empty.

Functions

func Command

func Command() *cobra.Command

func Init

func Init() *cobra.Command

Init initializes the orchestrator store and creates necessary files.

func Start

func Start() *cobra.Command

Types

type InitConfig

type InitConfig struct {
	// contains filtered or unexported fields
}

type StartConfig

type StartConfig struct {
	base.Config
	EvmChainID uint64 `mapstructure:"evm-chain-id" json:"evm-chain-id"`
	EvmRPC     string `mapstructure:"evm-rpc" json:"evm-rpc"`
	CoreGRPC   string `mapstructure:"core-grpc" json:"core-grpc"`
	CoreRPC    string `mapstructure:"core-rpc" json:"core-rpc"`

	ContractAddr  string `mapstructure:"contract-address" json:"contract-address"`
	EvmGasLimit   uint64 `mapstructure:"gas-limit" json:"gas-limit"`
	Bootstrappers string `mapstructure:"bootstrappers" json:"bootstrappers"`
	P2PListenAddr string `mapstructure:"listen-addr" json:"listen-addr"`

	GrpcInsecure    bool `mapstructure:"grpc-insecure" json:"grpc-insecure"`
	LogLevel        string
	LogFormat       string
	EVMRetryTimeout uint64 `mapstructure:"retry-timeout" json:"retry-timeout"`

	MetricsConfig telemetry.Config `mapstructure:"telemetry" json:"telemetry"`
	// contains filtered or unexported fields
}

func DefaultStartConfig

func DefaultStartConfig() *StartConfig

func GetStartConfig added in v1.1.0

func GetStartConfig(v *viper.Viper, configPath string) (*StartConfig, error)

GetStartConfig reads values from config.toml file and unmarshalls them into StartConfig

func LoadFileConfiguration

func LoadFileConfiguration(homeDir string) (*StartConfig, error)

func (StartConfig) ValidateBasics

func (cfg StartConfig) ValidateBasics() error

Jump to

Keyboard shortcuts

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