relayer

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved See the file LICENSE for licensing terms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDestinationToRelayerConfig

func AddDestinationToRelayerConfig(
	config map[string]interface{},
	subnetID string,
	blockchainID string,
	rpcEndpoint string,
	accountPrivateKey string,
) error

AddDestinationToRelayerConfig adds a destination blockchain configuration

func AddDestinationToRelayerConfigFile

func AddDestinationToRelayerConfigFile(
	configPath string,
	rpcEndpoint string,
	subnetID string,
	blockchainID string,
	accountPrivateKey string,
) error

AddDestinationToRelayerConfigFile adds a destination to the relayer config file

func AddSourceAndDestinationToRelayerConfig added in v1.9.2

func AddSourceAndDestinationToRelayerConfig(
	app *application.Lux,
	storageDir string,
	network models.Network,
	subnetID string,
	blockchainID string,
	teleporterContractAddress string,
	teleporterRegistryAddress string,
	isSource bool,
) error

AddSourceAndDestinationToRelayerConfig adds source and destination to relayer config (stub)

func AddSourceToRelayerConfig

func AddSourceToRelayerConfig(
	config map[string]interface{},
	subnetID string,
	blockchainID string,
	rpcEndpoint string,
	wsEndpoint string,
	messageContractAddress string,
	rewardAddress string,
) error

AddSourceToRelayerConfig adds a source blockchain configuration

func AddSourceToRelayerConfigFile

func AddSourceToRelayerConfigFile(
	configPath string,
	rpcEndpoint string,
	wsEndpoint string,
	subnetID string,
	blockchainID string,
	warpRegistryAddress string,
	warpMessengerAddress string,
	rewardAddress string,
) error

AddSourceToRelayerConfigFile adds a source to the relayer config file

func CreateBaseRelayerConfig

func CreateBaseRelayerConfig(logLevel string, storageLocation string, metricsPort uint32, network string) (map[string]interface{}, error)

CreateBaseRelayerConfig creates a base configuration for the relayer

func CreateBaseRelayerConfigFile

func CreateBaseRelayerConfigFile(configPath string, logLevel string, storageLocation string, metricsPort uint16, network models.Network, allowPrivateIPs bool) error

CreateBaseRelayerConfig creates a base configuration for the relayer and writes to file

func CreateBaseRelayerConfigIfMissing added in v1.9.2

func CreateBaseRelayerConfigIfMissing(
	configPath string,
	logLevel string,
	storageDir string,
	metricsPort uint16,
	network models.Network,
	awmRelayerEnabled bool,
) error

CreateBaseRelayerConfigIfMissing creates base relayer config if missing (stub)

func DeployProposer

func DeployProposer(
	binDir string,
	configPath string,
	logLevel string,
	storageLocation string,
	disableSignatureAggregator bool,
	offchainRegistryAPIEndpoint string,
) *exec.Cmd

func DeployRelayer

func DeployRelayer(
	version string,
	binPath string,
	binDir string,
	configPath string,
	logPath string,
	runPath string,
	storageDir string,
	config string,
) (string, error)

DeployRelayer deploys the relayer with the given configuration

func DeployRelayerCmd

func DeployRelayerCmd(
	binDir string,
	configPath string,
	logLevel string,
	logDisplayLevel string,
	networkID uint32,
	metricsPort uint16,
) *exec.Cmd

DeployRelayerCmd creates a command to deploy the relayer (not implemented)

func FundRelayer added in v1.9.2

func FundRelayer(
	app *application.Lux,
	network models.Network,
	chainSpec map[string]interface{},
	relayerAddress string,
	fundingAmount string,
) error

FundRelayer funds the relayer (stub)

func GenerateProposerConfig

func GenerateProposerConfig(
	app *application.Lux,
	network models.Network,
	subnetName string,
	blockchainName string,
	fullname string,
	multisig *models.MultisigTxInfo,
) (string, error)

func GetDefaultRelayerKeyInfo

func GetDefaultRelayerKeyInfo(app *application.Lux, subnetName string) (string, string, string, error)

GetDefaultRelayerKeyInfo returns the default relayer key information

func GetLatestRelayerReleaseVersion added in v1.9.2

func GetLatestRelayerReleaseVersion(app *application.Lux) (string, error)

GetLatestRelayerReleaseVersion gets the latest relayer release version (stub)

func LoadRelayerConfig

func LoadRelayerConfig(configPath string) (map[string]interface{}, error)

LoadRelayerConfig loads the relayer configuration from a file

func RelayerCleanLocal

func RelayerCleanLocal(runPath string, logPath string) error

RelayerCleanLocal cleans up local relayer files

func RelayerCleanup

func RelayerCleanup(runPath string, logPath string, storagePath string) error

RelayerCleanup cleans up relayer files and processes

func RelayerFileExists

func RelayerFileExists(path string) bool

RelayerFileExists checks if a relayer file exists

func RelayerIsUp

func RelayerIsUp(runPath string) (bool, int, *os.Process, error)

RelayerIsUp checks if the relayer is running

func RelayerRun

func RelayerRun(cmd *exec.Cmd, runPath string, logPath string) error

RelayerRun starts the relayer process

func SaveRelayerConfig

func SaveRelayerConfig(configPath string, config map[string]interface{}) error

SaveRelayerConfig saves the relayer configuration to a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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