commands

package
v0.0.0-...-d0c3903 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Index

Constants

View Source
const (
	CLIBinary  = "./bin/dijets"
	SubnetCmd  = "subnet"
	NetworkCmd = "network"
	KeyCmd     = "key"
	UpgradeCmd = "upgrade"
)

Variables

This section is empty.

Functions

func ApplyUpgradeLocal

func ApplyUpgradeLocal(subnetName string) (string, error)

func CleanNetwork

func CleanNetwork()

#nosec G204

func CleanNetworkHard

func CleanNetworkHard()

#nosec G204

func ConfigureChainConfig

func ConfigureChainConfig(subnetName string, genesisPath string)

#nosec G204

func ConfigurePerNodeChainConfig

func ConfigurePerNodeChainConfig(subnetName string, perNodeChainConfigPath string)

#nosec G204

func CreateCustomVMConfig

func CreateCustomVMConfig(subnetName string, genesisPath string, vmPath string)

#nosec G204

func CreateKey

func CreateKey(keyName string) (string, error)

#nosec G204

func CreateKeyForce

func CreateKeyForce(keyName string) (string, error)

#nosec G204

func CreateKeyFromPath

func CreateKeyFromPath(keyName string, keyPath string) (string, error)

#nosec G204

func CreateSpacesVMConfig

func CreateSpacesVMConfig(subnetName string, genesisPath string)

#nosec G204

func CreateSpacesVMConfigWithVersion

func CreateSpacesVMConfigWithVersion(subnetName string, genesisPath string, version string)

#nosec G204

func CreateSubnetEvmConfig

func CreateSubnetEvmConfig(subnetName string, genesisPath string)

#nosec G204

func CreateSubnetEvmConfigWithVersion

func CreateSubnetEvmConfigWithVersion(subnetName string, genesisPath string, version string)

#nosec G204

func DeleteKey

func DeleteKey(keyName string) (string, error)

#nosec G204

func DeleteSubnetConfig

func DeleteSubnetConfig(subnetName string)

#nosec G204

func DeploySubnetLocally

func DeploySubnetLocally(subnetName string) string

Returns the deploy output

#nosec G204

func DeploySubnetLocallyExpectError

func DeploySubnetLocallyExpectError(subnetName string)

#nosec G204

func DeploySubnetLocallyWithArgs

func DeploySubnetLocallyWithArgs(subnetName string, version string, confPath string) string

Returns the deploy output

#nosec G204

func DeploySubnetLocallyWithArgsExpectError

func DeploySubnetLocallyWithArgsExpectError(subnetName string, version string, confPath string)

#nosec G204

func DeploySubnetLocallyWithVersion

func DeploySubnetLocallyWithVersion(subnetName string, version string) string

Returns the deploy output

#nosec G204

func DeploySubnetLocallyWithViperConf

func DeploySubnetLocallyWithViperConf(subnetName string, confPath string) string

Returns the deploy output

#nosec G204

func DescribeSubnet

func DescribeSubnet(subnetName string) (string, error)

#nosec G204

func ExportKey

func ExportKey(keyName string) (string, error)

#nosec G204

func ExportKeyToFile

func ExportKeyToFile(keyName string, outputPath string) (string, error)

#nosec G204

func GetVersion

func GetVersion() string

func ImportSubnetConfig

func ImportSubnetConfig(repoAlias string, subnetName string)

#nosec G204

func ImportSubnetConfigFromURL

func ImportSubnetConfigFromURL(repoURL string, branch string, subnetName string)

#nosec G204

func ImportUpgradeBytes

func ImportUpgradeBytes(subnetName, filepath string) (string, error)

func ListKeys

func ListKeys() (string, error)

#nosec G204

func SimulateFujiAddValidator

func SimulateFujiAddValidator(
	subnetName string,
	key string,
	nodeID string,
	start string,
	period string,
	weight string,
) string

simulates fuji add validator execution path on a local network

func SimulateFujiDeploy

func SimulateFujiDeploy(
	subnetName string,
	key string,
	controlKeys string,
) string

simulates fuji deploy execution path on a local network

func SimulateFujiJoin

func SimulateFujiJoin(
	subnetName string,
	avalanchegoConfig string,
	pluginDir string,
	nodeID string,
) string

simulates fuji join execution path on a local network

func SimulateGetSubnetStatsFuji

func SimulateGetSubnetStatsFuji(subnetName, subnetID string) string

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

func SimulateMainnetDeploy

func SimulateMainnetDeploy(
	subnetName string,
) string

simulates mainnet deploy execution path on a local network

func SimulateMainnetJoin

func SimulateMainnetJoin(
	subnetName string,
	avalanchegoConfig string,
	pluginDir string,
	nodeID string,
) string

simulates mainnet join execution path on a local network

func StartNetwork

func StartNetwork() string

#nosec G204

func StartNetworkWithVersion

func StartNetworkWithVersion(version string) string

#nosec G204

func StopNetwork

func StopNetwork()

#nosec G204

func UpgradeCustomVM

func UpgradeCustomVM(subnetName string, binaryPath string) (string, error)

#nosec G204

func UpgradeVMConfig

func UpgradeVMConfig(subnetName string, targetVersion string) (string, error)

#nosec G204

func UpgradeVMPublic

func UpgradeVMPublic(subnetName string, targetVersion string, pluginDir string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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