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 ¶
- Variables
- func CheckVersionIsOverMin(app *application.Lux, dependencyName string, network models.Network, ...) error
- func GetAvailableLuxdVersions(app *application.Lux, rpcVersion int, url string) ([]string, error)
- func GetLatestCLISupportedDependencyVersion(app *application.Lux, dependencyName string, network models.Network, ...) (string, error)
- func GetLatestLuxdByProtocolVersion(app *application.Lux, rpcVersion int) (string, error)
- func GetLuxdVersion(app *application.Lux, luxdVersion LuxdVersionSettings, network models.Network) (string, error)
- func GetLuxdVersionsForRPC(app *application.Lux, rpcVersion int, url string) ([]string, error)
- type LuxdVersionSettings
Constants ¶
This section is empty.
Variables ¶
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
var ErrNoLuxdVersion = errors.New("unable to find a compatible luxd version")
Functions ¶
func CheckVersionIsOverMin ¶
func GetAvailableLuxdVersions ¶
GetAvailableLuxdVersions returns list of only available for download lux go versions, with latest version in first index
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 ¶
GetLuxdVersionsForRPC returns list of compatible lux go versions for a specified rpcVersion