dependencies

package
v1.21.42 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: BSD-3-Clause Imports: 12 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.

Index

Constants

This section is empty.

Variables

View Source
var DefaultCLIDependencyMap = models.CLIDependencyMap{
	RPC: 42,
	Luxd: map[string]models.NetworkVersions{
		"Mainnet": {
			LatestVersion:  "v1.21.0",
			MinimumVersion: "v1.20.0",
		},
		"Testnet": {
			LatestVersion:  "v1.21.0",
			MinimumVersion: "v1.20.0",
		},
		"Local Network": {
			LatestVersion:  "v1.21.0",
			MinimumVersion: "v1.20.0",
		},
	},
	EVM: "v0.8.13",
}

DefaultCLIDependencyMap provides fallback version info when remote fetch fails

View Source
var ErrNoLuxdVersion = errors.New("unable to find a compatible luxd version")

Functions

func CheckVersionIsOverMin

func CheckVersionIsOverMin(app *application.Lux, dependencyName string, network models.Network, version string) error

func GetAvailableLuxdVersions

func GetAvailableLuxdVersions(app *application.Lux, rpcVersion int, url string) ([]string, error)

GetAvailableLuxdVersions returns list of only available for download lux go versions, with latest version in first index

func GetLatestCLISupportedDependencyVersion

func GetLatestCLISupportedDependencyVersion(app *application.Lux, dependencyName string, network models.Network, rpcVersion *int) (string, error)

func GetLatestLuxdByProtocolVersion

func GetLatestLuxdByProtocolVersion(app *application.Lux, rpcVersion int) (string, error)

func GetLuxdVersion

func GetLuxdVersion(app *application.Lux, luxdVersion LuxdVersionSettings, network models.Network) (string, error)

GetLuxdVersion asks users whether they want to install the newest Lux Go version or if they want to use the newest Lux Go Version that is still compatible with Subnet EVM version of their choice

func GetLuxdVersionsForRPC

func GetLuxdVersionsForRPC(app *application.Lux, rpcVersion int, url string) ([]string, error)

GetLuxdVersionsForRPC returns list of compatible lux go versions for a specified rpcVersion

Types

type LuxdVersionSettings

type LuxdVersionSettings struct {
	UseCustomLuxgoVersion           string
	UseLatestLuxgoReleaseVersion    bool
	UseLatestLuxgoPreReleaseVersion bool
	UseLuxgoVersionFromSubnet       string
}

Jump to

Keyboard shortcuts

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