relayercmd

package
v1.21.22 Latest Latest
Warning

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

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

Documentation

Overview

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

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

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

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

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

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

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

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

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 CallDeploy

func CallDeploy(_ []string, flags DeployFlags, network models.Network) error

func CallStart

func CallStart(_ []string, flags StartFlags, network models.Network) error

func CallStop

func CallStop(_ []string, flags StopFlags, network models.Network) error

func NewCmd

func NewCmd(injectedApp *application.Lux) *cobra.Command

lux interchain relayer

Types

type APIConfig

type APIConfig struct {
	BaseURL string `json:"baseUrl"`
}

APIConfig for RPC endpoints

type ConfigSpec

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

func GenerateConfigSpec

func GenerateConfigSpec(
	network models.Network,
	relayCChain bool,
	blockchainsToRelay []string,
	defaultKey string,
) (ConfigSpec, bool, error)

type DeployFlags

type DeployFlags struct {
	Network              networkoptions.NetworkFlags
	Version              string
	LogLevel             string
	RelayCChain          bool
	BlockchainsToRelay   []string
	Key                  string
	Amount               float64
	CChainAmount         float64
	BlockchainFundingKey string
	CChainFundingKey     string
	BinPath              string
	AllowPrivateIPs      bool
}

type DestinationBlockchain

type DestinationBlockchain struct {
	SubnetID     string    `json:"subnetId"`
	BlockchainID string    `json:"blockchainId"`
	VM           string    `json:"vm"`
	RPCEndpoint  APIConfig `json:"rpcEndpoint"`
}

DestinationBlockchain configuration

type DestinationSpec

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

type RelayerConfig

type RelayerConfig struct {
	SourceBlockchains      []SourceBlockchain      `json:"sourceBlockchains"`
	DestinationBlockchains []DestinationBlockchain `json:"destinationBlockchains"`
}

RelayerConfig represents the relayer configuration

type SourceBlockchain

type SourceBlockchain struct {
	SubnetID     string    `json:"subnetId"`
	BlockchainID string    `json:"blockchainId"`
	VM           string    `json:"vm"`
	RPCEndpoint  APIConfig `json:"rpcEndpoint"`
}

SourceBlockchain configuration

type SourceSpec

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

type StartFlags

type StartFlags struct {
	Network networkoptions.NetworkFlags
	BinPath string
	Version string
}

type StopFlags

type StopFlags struct {
	Network networkoptions.NetworkFlags
}

Jump to

Keyboard shortcuts

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