Documentation
¶
Overview ¶
Copyright (C) 2022-2025, Lux Industries Inc. All rights reserved See the file LICENSE for licensing terms.
Index ¶
- func AddDestinationToRelayerConfig(config map[string]interface{}, subnetID string, blockchainID string, ...) error
- func AddDestinationToRelayerConfigFile(configPath string, rpcEndpoint string, subnetID string, blockchainID string, ...) error
- func AddSourceAndDestinationToRelayerConfig(app *application.Lux, storageDir string, network models.Network, ...) error
- func AddSourceToRelayerConfig(config map[string]interface{}, subnetID string, blockchainID string, ...) error
- func AddSourceToRelayerConfigFile(configPath string, rpcEndpoint string, wsEndpoint string, subnetID string, ...) error
- func CreateBaseRelayerConfig(logLevel string, storageLocation string, metricsPort uint32, network string) (map[string]interface{}, error)
- func CreateBaseRelayerConfigFile(configPath string, logLevel string, storageLocation string, metricsPort uint16, ...) error
- func CreateBaseRelayerConfigIfMissing(configPath string, logLevel string, storageDir string, metricsPort uint16, ...) error
- func DeployProposer(binDir string, configPath string, logLevel string, storageLocation string, ...) *exec.Cmd
- func DeployRelayer(version string, binPath string, binDir string, configPath string, ...) (string, error)
- func DeployRelayerCmd(binDir string, configPath string, logLevel string, logDisplayLevel string, ...) *exec.Cmd
- func FundRelayer(app *application.Lux, network models.Network, chainSpec map[string]interface{}, ...) error
- func GenerateProposerConfig(app *application.Lux, network models.Network, subnetName string, ...) (string, error)
- func GetDefaultRelayerKeyInfo(app *application.Lux, subnetName string) (string, string, string, error)
- func GetLatestRelayerReleaseVersion(app *application.Lux) (string, error)
- func LoadRelayerConfig(configPath string) (map[string]interface{}, error)
- func RelayerCleanLocal(runPath string, logPath string) error
- func RelayerCleanup(runPath string, logPath string, storagePath string) error
- func RelayerFileExists(path string) bool
- func RelayerIsUp(runPath string) (bool, int, *os.Process, error)
- func RelayerRun(cmd *exec.Cmd, runPath string, logPath string) error
- func SaveRelayerConfig(configPath string, config map[string]interface{}) error
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 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 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 ¶
LoadRelayerConfig loads the relayer configuration from a file
func RelayerCleanLocal ¶
RelayerCleanLocal cleans up local relayer files
func RelayerCleanup ¶
RelayerCleanup cleans up relayer files and processes
func RelayerFileExists ¶
RelayerFileExists checks if a relayer file exists
func RelayerIsUp ¶
RelayerIsUp checks if the relayer is running
func RelayerRun ¶
RelayerRun starts the relayer process
func SaveRelayerConfig ¶
SaveRelayerConfig saves the relayer configuration to a file
Types ¶
This section is empty.