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.
Index ¶
- func AddStateFlags(cmd *cobra.Command)
- func GetProxyOwnerPrivateKey(app *application.Lux, network models.Network, proxyContractOwner string, ...) (string, error)
- func LoadExistingSubnetState(networkDir string) error
- func NewCmd(injectedApp *application.Lux) *cobra.Command
- func PromptNodeID(goal string) (ids.NodeID, error)
- func Start(flags StartFlags, printEndpoints bool) error
- func StartMainnet() error
- func StartNetwork(*cobra.Command, []string) error
- func StartTestnet() error
- func StopNetwork(*cobra.Command, []string) error
- type StartFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStateFlags ¶ added in v1.9.7
AddStateFlags adds the state-related flags to the command
func GetProxyOwnerPrivateKey ¶ added in v1.9.5
func GetProxyOwnerPrivateKey( app *application.Lux, network models.Network, proxyContractOwner string, printFunc func(msg string, args ...interface{}), ) (string, error)
GetProxyOwnerPrivateKey retrieves the private key for a proxy contract owner. If not found in managed keys, prompts the user.
func LoadExistingSubnetState ¶ added in v1.9.7
LoadExistingSubnetState loads an existing subnet database into the network
func PromptNodeID ¶ added in v1.9.5
PromptNodeID prompts the user to enter a node ID for the specified goal.
func Start ¶
func Start(flags StartFlags, printEndpoints bool) error
Start starts the local network with the given flags
func StartMainnet ¶
func StartMainnet() error
StartMainnet starts a mainnet network with configurable validator nodes
func StartTestnet ¶
func StartTestnet() error
StartTestnet starts a testnet network with configurable validator nodes
Types ¶
type StartFlags ¶
StartFlags contains configuration for starting a network