relayer

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BullyConfig

type BullyConfig struct {
	PingWaitTime     time.Duration
	PingBackOff      time.Duration
	PingInterval     time.Duration
	ElectionWaitTime time.Duration
	BullyWaitTime    time.Duration
}

type CoinmarketcapConfig

type CoinmarketcapConfig struct {
	Url    string `default:"https://pro-api.coinmarketcap.com"`
	ApiKey string
}

type MpcRelayerConfig

type MpcRelayerConfig struct {
	TopologyConfiguration   TopologyConfiguration
	Port                    uint16
	KeysharePath            string
	FrostKeysharePath       string
	Key                     string
	CommHealthCheckInterval time.Duration
}

type RawBullyConfig

type RawBullyConfig struct {
	PingWaitTime     string `mapstructure:"PingWaitTime" json:"pingWaitTime" default:"1s"`
	PingBackOff      string `mapstructure:"PingBackOff" json:"pingBackOff" default:"1s"`
	PingInterval     string `mapstructure:"PingInterval" json:"pingInterval" default:"1s"`
	ElectionWaitTime string `mapstructure:"ElectionWaitTime" json:"electionWaitTime" default:"2s"`
	BullyWaitTime    string `mapstructure:"BullyWaitTime" json:"bullyWaitTime" default:"3m"`
}

type RawMpcRelayerConfig

type RawMpcRelayerConfig struct {
	KeysharePath            string                `mapstructure:"KeysharePath" json:"keysharePath"`
	FrostKeysharePath       string                `mapstructure:"FrostKeysharePath" json:"frostKeysharePath"`
	Key                     string                `mapstructure:"Key" json:"key"`
	Port                    string                `mapstructure:"Port" json:"port" default:"9000"`
	TopologyConfiguration   TopologyConfiguration `mapstructure:"TopologyConfiguration" json:"topologyConfiguration"`
	CommHealthCheckInterval string                `mapstructure:"CommHealthCheckInterval" json:"commHealthCheckInterval" default:"5m"`
}

type RawRelayerConfig

type RawRelayerConfig struct {
	OpenTelemetryCollectorURL string              `mapstructure:"OpenTelemetryCollectorURL" json:"opentelemetryCollectorURL"`
	LogLevel                  string              `mapstructure:"LogLevel" json:"logLevel" default:"info"`
	LogFile                   string              `mapstructure:"LogFile" json:"logFile" default:"out.log"`
	HealthPort                string              `mapstructure:"HealthPort" json:"healthPort" default:"9001"`
	Env                       string              `mapstructure:"Env" json:"env"`
	Id                        string              `mapstructure:"Id" json:"id"`
	MpcConfig                 RawMpcRelayerConfig `mapstructure:"MpcConfig" json:"mpcConfig"`
	BullyConfig               RawBullyConfig      `mapstructure:"BullyConfig" json:"bullyConfig"`
	CoinmarketcapConfig       CoinmarketcapConfig `mapstructure:"CoinmarketcapConfig" json:"coinmarketcapConfig"`
	SolverConfig              SolverConfig        `mapstructure:"SolverConfig" json:"solverConfig"`
	ApiAddr                   string              `mapstructure:"apiAddr" default:"0.0.0.0:3000"`
}

func (*RawRelayerConfig) Validate

func (c *RawRelayerConfig) Validate() error

type RelayerConfig

type RelayerConfig struct {
	OpenTelemetryCollectorURL string
	LogLevel                  zerolog.Level
	LogFile                   string
	HealthPort                uint16
	Env                       string
	Id                        string
	MpcConfig                 MpcRelayerConfig
	BullyConfig               BullyConfig
	CoinmarketcapConfig       CoinmarketcapConfig
	SolverConfig              SolverConfig
	ApiAddr                   string
}

func NewRelayerConfig

func NewRelayerConfig(rawConfig RawRelayerConfig) (RelayerConfig, error)

NewRelayerConfig parses RawRelayerConfig into RelayerConfig

type SolverConfig added in v0.2.0

type SolverConfig struct {
	SecretKey string
	AccessKey string
}

type TopologyConfiguration

type TopologyConfiguration struct {
	EncryptionKey string `mapstructure:"EncryptionKey" json:"encryptionKey"`
	Url           string `mapstructure:"Url" json:"url"`
	Path          string `mapstructure:"Path" json:"path"`
}

Jump to

Keyboard shortcuts

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