chaincmd

package
v1.22.6 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2026 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Overview

Package chaincmd provides commands for managing blockchain configurations.

Index

Constants

View Source
const (
	// DefaultDeployTimeout is the maximum time to wait for chain deployment to complete.
	// For local networks, this should be fast (<30s). Longer means something is wrong.
	DefaultDeployTimeout = 30 * time.Second
	// MaxConsecutiveHealthFailures is the number of consecutive health check failures before failing fast
	MaxConsecutiveHealthFailures = 10
	// LuxEVMName is the canonical name for the Lux EVM
	LuxEVMName = "Lux EVM"
)

Default timeouts for chain deployment

Variables

This section is empty.

Functions

func NewCmd

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

NewCmd creates the unified chain command suite for all blockchain operations

Types

type NetworkTarget added in v1.21.42

type NetworkTarget string

NetworkTarget represents the target network for chain operations

const (
	NetworkMainnet NetworkTarget = "mainnet"
	NetworkTestnet NetworkTarget = "testnet"
	NetworkDevnet  NetworkTarget = "devnet"
	NetworkCustom  NetworkTarget = "custom"
)

func GetNetworkTarget added in v1.21.42

func GetNetworkTarget() NetworkTarget

GetNetworkTarget returns the selected network target based on flags

Directories

Path Synopsis
Package upgradecmd provides commands for managing blockchain upgrades.
Package upgradecmd provides commands for managing blockchain upgrades.

Jump to

Keyboard shortcuts

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