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.
Index ¶
- Constants
- func AddEtnaSubnetValidatorToCluster(clusterName string, subnetName string, nodeEndpoint string, ...) (string, error)
- func AddPermissionlessValidator(subnetName string, nodeID string, stakeAmount string, stakingPeriod string) (string, error)
- func ApplyUpgradeLocal(subnetName string) (string, error)
- func ApplyUpgradeToPublicNode(subnetName, luxChainConfDir string) (string, error)
- func BlockchainStatus(blockchainName string) (string, error)
- func CleanNetwork()
- func CleanNetworkHard()
- func ConfigMetrics()
- func ConfigureBlockchain(blockchainName string, flags utils.TestFlags) (string, error)
- func ConfigureChainConfig(subnetName string, genesisPath string)
- func ConfigurePerNodeChainConfig(subnetName string, perNodeChainConfigPath string)
- func CreateBlockchain(blockchainName string, vmType string, version string) (string, error)
- func CreateCustomVMConfig(subnetName string, genesisPath string, vmPath string)
- func CreateCustomVMConfigNonSOV(subnetName string, genesisPath string, vmPath string)
- func CreateCustomVMConfigSOV(subnetName string, genesisPath string, vmPath string)
- func CreateEtnaSubnetEvmConfig(subnetName string, ewoqEVMAddress string, ...) (string, string)
- func CreateKey(keyName string) (string, error)
- func CreateKeyForce(keyName string) (string, error)
- func CreateKeyFromPath(keyName string, keyPath string) (string, error)
- func CreateLocalEtnaNode(luxdVersion string, clusterName string, numNodes int) (string, error)
- func CreateSubnetEvmConfig(subnetName string, genesisPath string) (string, string)
- func CreateSubnetEvmConfigNonSOV(subnetName string, genesisPath string, bootstrapped bool) (string, string)
- func CreateSubnetEvmConfigSOV(subnetName string, genesisPath string) (string, string)
- func CreateSubnetEvmConfigWithVersion(subnetName string, genesisPath string, version string)
- func CreateSubnetEvmConfigWithVersionNonSOV(subnetName string, genesisPath string, version string, bootstrapped bool)
- func CreateSubnetEvmConfigWithVersionSOV(subnetName string, genesisPath string, version string)
- func DeleteBlockchain(blockchainName string) error
- func DeleteE2ECluster()
- func DeleteE2EInventory()
- func DeleteElasticSubnetConfig(subnetName string)
- func DeleteKey(keyName string) (string, error)
- func DeleteNode(hostName string)
- func DeleteSubnetConfig(subnetName string)
- func DeployBlockchain(blockchainName string, flags utils.TestFlags) (string, error)
- func DeployERC20Contract(network, key, symbol, supply, receiver, blockchain string) string
- func DeployEtnaBlockchain(subnetName string, clusterName string, bootstrapEndpoints []string, ...) (string, error)
- func DeployInterchainTokenTransferrer(args []string) string
- func DeployRelayer(args []string, testFlags utils.TestFlags) (string, error)
- func DeploySubnetLocally(subnetName string) string
- func DeploySubnetLocallyExpectError(subnetName string)
- func DeploySubnetLocallyExpectErrorNonSOV(subnetName string)
- func DeploySubnetLocallyExpectErrorSOV(subnetName string)
- func DeploySubnetLocallyNonSOV(subnetName string) string
- func DeploySubnetLocallySOV(subnetName string) string
- func DeploySubnetLocallyWithArgs(subnetName string, version string, confPath string) string
- func DeploySubnetLocallyWithArgsAndOutput(subnetName string, version string, confPath string) ([]byte, error)
- func DeploySubnetLocallyWithArgsAndOutputNonSOV(subnetName string, version string, confPath string) ([]byte, error)
- func DeploySubnetLocallyWithArgsAndOutputSOV(subnetName string, version string, confPath string) ([]byte, error)
- func DeploySubnetLocallyWithArgsExpectError(subnetName string, version string, confPath string)
- func DeploySubnetLocallyWithVersion(subnetName string, version string) string
- func DeploySubnetLocallyWithVersionNonSOV(subnetName string, version string) string
- func DeploySubnetLocallyWithVersionSOV(subnetName string, version string) string
- func DeploySubnetLocallyWithViperConf(subnetName string, confPath string) string
- func DeploySubnetLocallyWithViperConfNonSOV(subnetName string, confPath string) string
- func DeploySubnetLocallyWithViperConfSOV(subnetName string, confPath string) string
- func DeployWarpContracts(args []string, testFlags utils.TestFlags) (string, error)
- func DescribeSubnet(subnetName string) (string, error)
- func DestroyLocalNode(clusterName string) (string, error)
- func ExportKey(keyName string) (string, error)
- func ExportKeyToFile(keyName string, outputPath string) (string, error)
- func GetLatestLuxdVersionFromGithub() string
- func GetLocalClusterStatus(clusterName string, blockchainName string) (string, error)
- func GetNetworkStatus() (string, error)
- func GetVersion() string
- func ImportSubnetConfig(repoAlias string, subnetName string)
- func ImportSubnetConfigFromURL(repoURL string, branch string, subnetName string)
- func ImportUpgradeBytes(subnetName, filepath string) (string, error)
- func InitValidatorManager(subnetName string, clusterName string, endpoint string, blockchainID string) (string, error)
- func KeyTransferSend(args []string) (string, error)
- func ListKeys(network string, allBalances bool, chains string, tokens string) (string, error)
- func ListValidators(subnetName string, network string) (string, error)
- func NodeCreate(network, version string, numNodes int, separateMonitoring bool, ...) string
- func NodeDevnet(version string, numNodes int, numAPINodes int) string
- func NodeExport(filename string, withSecrets bool) string
- func NodeImport(filename string, clusterName string) string
- func NodeList() string
- func NodeSSH(name, command string) string
- func NodeStatus() string
- func NodeUpgrade() string
- func NodeWhitelistSSH(sshPubKey string) string
- func RemoveEtnaSubnetValidatorFromCluster(clusterName string, subnetName string, nodeEndpoint string, keyName string, ...) (string, error)
- func RemoveValidator(subnetName string, nodeID string) (string, error)
- func SendWarpMessage(args []string, testFlags utils.TestFlags) (string, error)
- func SimulateGetSubnetStatsTestnet(subnetName, subnetID string) string
- func SimulateMainnetAddValidator(subnetName string, nodeID string, start string, period string, weight string) string
- func SimulateMainnetDeploy(subnetName string) string
- func SimulateMainnetDeployNonSOV(subnetName string, chainID int, skipPrompt bool) string
- func SimulateMainnetDeploySOV(subnetName string, chainID int, skipPrompt bool) string
- func SimulateMainnetJoin(subnetName string, nodeConfig string, pluginDir string, nodeID string) string
- func SimulateMultisigMainnetDeployNonSOV(subnetName string, controlKeys []string, subnetAuthKeys []string, ...) string
- func SimulateMultisigMainnetDeploySOV(subnetName string, controlKeys []string, subnetAuthKeys []string, ...) string
- func SimulateTestnetAddValidator(subnetName string, key string, nodeID string, start string, period string, ...) string
- func SimulateTestnetDeploy(subnetName string, key string, controlKeys string) string
- func SimulateTestnetDeployNonSOV(subnetName string, key string, controlKeys string) string
- func SimulateTestnetDeploySOV(subnetName string, key string, controlKeys string) string
- func SimulateTestnetJoin(subnetName string, nodeConfig string, pluginDir string, nodeID string) string
- func SimulateTestnetRemoveValidator(subnetName string, key string, nodeID string) string
- func SimulateTestnetTransformSubnet(subnetName string, key string) (string, error)
- func StartNetwork() string
- func StartNetworkWithVersion(version string) string
- func StopNetwork(args ...string) error
- func StopRelayer() (string, error)
- func TrackLocalEtnaSubnet(clusterName string, subnetName string) (string, error)
- func TransactionCommit(subnetName string, txPath string, expectError bool) string
- func TransactionSignWithLedger(subnetName string, txPath string, expectError bool) string
- func TransformElasticSubnetLocally(subnetName string) (string, error)
- func TransformElasticSubnetLocallyandTransformValidators(subnetName string, stakeAmount string) (string, error)
- func UpgradeCustomVM(subnetName string, binaryPath string) (string, error)
- func UpgradeCustomVMLocal(subnetName string, binaryPath string) string
- func UpgradeVMConfig(subnetName string, targetVersion string) (string, error)
- func UpgradeVMLocal(subnetName string, targetVersion string) string
- func UpgradeVMPublic(subnetName string, targetVersion string, pluginDir string) (string, error)
- type PrometheusConfig
- type ScrapeConfig
- type StaticConfig
- type SubnetManagementType
Constants ¶
const ( CLIBinary = "./bin/lux" SubnetCmd = "subnet" NetworkCmd = "network" KeyCmd = "key" UpgradeCmd = "upgrade" ElasticTransformCmd = "elastic" JoinCmd = "join" RemoveValidatorCmd = "removeValidator" )
const ( PoSString = "proof-of-stake" PoAString = "proof-of-authority" )
const ( ExpectFail = false ExpectSuccess = true )
const (
ContractCMD = "contract"
)
const (
InterchainCMD = "interchain"
)
const (
WarpCmd = "warp"
)
Variables ¶
This section is empty.
Functions ¶
func ApplyUpgradeToPublicNode ¶
#nosec G204
func BlockchainStatus ¶ added in v1.9.5
BlockchainStatus gets the status of a blockchain
func ConfigMetrics ¶
func ConfigMetrics()
func ConfigureBlockchain ¶ added in v1.9.5
ConfigureBlockchain configures a blockchain with the given flags
func ConfigureChainConfig ¶
#nosec G204
func ConfigurePerNodeChainConfig ¶
#nosec G204
func CreateBlockchain ¶ added in v1.9.5
CreateBlockchain creates a blockchain with the given VM type and version
func CreateCustomVMConfig ¶
#nosec G204
func CreateCustomVMConfigNonSOV ¶ added in v1.9.5
CreateCustomVMConfigNonSOV creates a non-sovereign custom VM config
#nosec G204
func CreateCustomVMConfigSOV ¶ added in v1.9.5
CreateCustomVMConfigSOV creates a sovereign custom VM config
#nosec G204
func CreateEtnaSubnetEvmConfig ¶
func CreateEtnaSubnetEvmConfig( subnetName string, ewoqEVMAddress string, subnetManagementType SubnetManagementType, ) (string, string)
func CreateKeyFromPath ¶
#nosec G204
func CreateLocalEtnaNode ¶
func CreateSubnetEvmConfig ¶
#nosec G204
func CreateSubnetEvmConfigNonSOV ¶ added in v1.9.5
func CreateSubnetEvmConfigNonSOV(subnetName string, genesisPath string, bootstrapped bool) (string, string)
CreateSubnetEvmConfigNonSOV creates a non-sovereign subnet EVM config
#nosec G204
func CreateSubnetEvmConfigSOV ¶ added in v1.9.5
CreateSubnetEvmConfigSOV creates a sovereign subnet EVM config
#nosec G204
func CreateSubnetEvmConfigWithVersion ¶
#nosec G204
func CreateSubnetEvmConfigWithVersionNonSOV ¶ added in v1.9.5
func CreateSubnetEvmConfigWithVersionNonSOV(subnetName string, genesisPath string, version string, bootstrapped bool)
CreateSubnetEvmConfigWithVersionNonSOV creates a non-sovereign subnet EVM config with specific version
#nosec G204
func CreateSubnetEvmConfigWithVersionSOV ¶ added in v1.9.5
CreateSubnetEvmConfigWithVersionSOV creates a sovereign subnet EVM config with specific version
#nosec G204
func DeleteBlockchain ¶ added in v1.9.5
DeleteBlockchain deletes a blockchain
func DeleteE2ECluster ¶ added in v1.9.5
func DeleteE2ECluster()
DeleteE2ECluster deletes the E2E test cluster
#nosec G204
func DeleteE2EInventory ¶ added in v1.9.5
func DeleteE2EInventory()
DeleteE2EInventory deletes the E2E test inventory
#nosec G204
func DeleteElasticSubnetConfig ¶
func DeleteElasticSubnetConfig(subnetName string)
func DeleteNode ¶ added in v1.9.5
func DeleteNode(hostName string)
DeleteNode deletes a node
#nosec G204
func DeployBlockchain ¶ added in v1.9.5
DeployBlockchain deploys a blockchain with the given flags
func DeployERC20Contract ¶
#nosec G204
func DeployEtnaBlockchain ¶
func DeployInterchainTokenTransferrer ¶
#nosec G204
func DeployRelayer ¶
#nosec G204
func DeploySubnetLocallyExpectError ¶
func DeploySubnetLocallyExpectError(subnetName string)
#nosec G204
func DeploySubnetLocallyExpectErrorNonSOV ¶ added in v1.9.5
func DeploySubnetLocallyExpectErrorNonSOV(subnetName string)
DeploySubnetLocallyExpectErrorNonSOV deploys a non-sovereign subnet locally expecting an error
#nosec G204
func DeploySubnetLocallyExpectErrorSOV ¶ added in v1.9.5
func DeploySubnetLocallyExpectErrorSOV(subnetName string)
DeploySubnetLocallyExpectErrorSOV deploys a sovereign subnet locally expecting an error
#nosec G204
func DeploySubnetLocallyNonSOV ¶ added in v1.9.5
DeploySubnetLocallyNonSOV deploys a non-sovereign subnet locally
#nosec G204
func DeploySubnetLocallySOV ¶ added in v1.9.5
DeploySubnetLocallySOV deploys a sovereign subnet locally
#nosec G204
func DeploySubnetLocallyWithArgsAndOutputNonSOV ¶ added in v1.9.5
func DeploySubnetLocallyWithArgsAndOutputNonSOV(subnetName string, version string, confPath string) ([]byte, error)
DeploySubnetLocallyWithArgsAndOutputNonSOV deploys a non-sovereign subnet locally and returns output
#nosec G204
func DeploySubnetLocallyWithArgsAndOutputSOV ¶ added in v1.9.5
func DeploySubnetLocallyWithArgsAndOutputSOV(subnetName string, version string, confPath string) ([]byte, error)
DeploySubnetLocallyWithArgsAndOutputSOV deploys a sovereign subnet locally and returns output
#nosec G204
func DeploySubnetLocallyWithArgsExpectError ¶
#nosec G204
func DeploySubnetLocallyWithVersionNonSOV ¶ added in v1.9.5
DeploySubnetLocallyWithVersionNonSOV deploys a non-sovereign subnet locally with specific version
#nosec G204
func DeploySubnetLocallyWithVersionSOV ¶ added in v1.9.5
DeploySubnetLocallyWithVersionSOV deploys a sovereign subnet locally with specific version
#nosec G204
func DeploySubnetLocallyWithViperConfNonSOV ¶ added in v1.9.5
DeploySubnetLocallyWithViperConfNonSOV deploys a non-sovereign subnet locally with viper config
#nosec G204
func DeploySubnetLocallyWithViperConfSOV ¶ added in v1.9.5
DeploySubnetLocallyWithViperConfSOV deploys a sovereign subnet locally with viper config
#nosec G204
func DeployWarpContracts ¶
#nosec G204
func DestroyLocalNode ¶
func ExportKeyToFile ¶
#nosec G204
func GetLatestLuxdVersionFromGithub ¶
func GetLatestLuxdVersionFromGithub() string
func GetLocalClusterStatus ¶
func GetVersion ¶
func GetVersion() string
func ImportSubnetConfigFromURL ¶
#nosec G204
func ImportUpgradeBytes ¶
#nosec G204
func InitValidatorManager ¶
func KeyTransferSend ¶ added in v1.9.5
#nosec G204
func ListValidators ¶
#nosec G204
func NodeCreate ¶
func NodeExport ¶
func NodeImport ¶
func NodeStatus ¶
func NodeStatus() string
func NodeUpgrade ¶
func NodeUpgrade() string
func NodeWhitelistSSH ¶
func SendWarpMessage ¶
#nosec G204
func SimulateGetSubnetStatsTestnet ¶
#nosec G204
func SimulateMainnetAddValidator ¶
func SimulateMainnetAddValidator( subnetName string, nodeID string, start string, period string, weight string, ) string
simulates mainnet add validator execution path on a local network
#nosec G204
func SimulateMainnetDeployNonSOV ¶ added in v1.9.5
SimulateMainnetDeployNonSOV simulates non-sovereign subnet deployment on mainnet Updated to accept chainID and skipPrompt parameters to match usage
#nosec G204
func SimulateMainnetDeploySOV ¶ added in v1.9.5
SimulateMainnetDeploySOV simulates sovereign subnet deployment on mainnet
#nosec G204
func SimulateMainnetJoin ¶
func SimulateMainnetJoin( subnetName string, nodeConfig string, pluginDir string, nodeID string, ) string
simulates mainnet join execution path on a local network
#nosec G204
func SimulateMultisigMainnetDeployNonSOV ¶ added in v1.9.5
func SimulateMultisigMainnetDeployNonSOV( subnetName string, controlKeys []string, subnetAuthKeys []string, txPath string, expectError bool, ) string
SimulateMultisigMainnetDeployNonSOV simulates multisig non-sovereign subnet deployment on mainnet
#nosec G204
func SimulateMultisigMainnetDeploySOV ¶ added in v1.9.5
func SimulateMultisigMainnetDeploySOV( subnetName string, controlKeys []string, subnetAuthKeys []string, txPath string, expectError bool, ) string
SimulateMultisigMainnetDeploySOV simulates multisig sovereign subnet deployment on mainnet
#nosec G204
func SimulateTestnetAddValidator ¶
func SimulateTestnetAddValidator( subnetName string, key string, nodeID string, start string, period string, weight string, ) string
simulates testnet add validator execution path on a local network
#nosec G204
func SimulateTestnetDeployNonSOV ¶ added in v1.9.5
SimulateTestnetDeployNonSOV simulates non-sovereign subnet deployment on testnet
#nosec G204
func SimulateTestnetDeploySOV ¶ added in v1.9.5
SimulateTestnetDeploySOV simulates sovereign subnet deployment on testnet
#nosec G204
func SimulateTestnetJoin ¶
func SimulateTestnetJoin( subnetName string, nodeConfig string, pluginDir string, nodeID string, ) string
simulates testnet join execution path on a local network
#nosec G204
func SimulateTestnetRemoveValidator ¶
simulates testnet add validator execution path on a local network
func TrackLocalEtnaSubnet ¶
func TransactionCommit ¶ added in v1.9.5
TransactionCommit commits a transaction from a file
#nosec G204
func TransactionSignWithLedger ¶ added in v1.9.5
TransactionSignWithLedger signs a transaction with a ledger
#nosec G204
func UpgradeCustomVM ¶
#nosec G204
func UpgradeCustomVMLocal ¶
#nosec G204
func UpgradeVMConfig ¶
#nosec G204
func UpgradeVMLocal ¶
#nosec G204
Types ¶
type PrometheusConfig ¶
type PrometheusConfig struct {
ScrapeConfigs []ScrapeConfig `yaml:"scrape_configs"`
}
func ParsePrometheusYamlConfig ¶
func ParsePrometheusYamlConfig(filePath string) PrometheusConfig
ParsePrometheusYamlConfig parses prometheus config YAML file installed in separate monitoring host in /etc/prometheus/prometheus.yml
type ScrapeConfig ¶
type ScrapeConfig struct {
JobName string `yaml:"job_name"`
StaticConfigs []StaticConfig `yaml:"static_configs"`
}
type StaticConfig ¶
type StaticConfig struct {
Targets []string `yaml:"targets"`
}
type SubnetManagementType ¶
type SubnetManagementType uint
const ( Unknown SubnetManagementType = iota PoA PoS )