commands

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: BSD-3-Clause Imports: 6 Imported by: 8

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/avalanche"
	SubnetCmd  = "subnet"
	NetworkCmd = "network"
	KeyCmd     = "key"
)

Variables

This section is empty.

Functions

func CleanNetwork

func CleanNetwork()

#nosec G204

func CleanNetworkHard added in v0.2.2

func CleanNetworkHard()

#nosec G204

func CreateCustomVMConfig added in v0.2.3

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

#nosec G204

func CreateKey added in v0.2.0

func CreateKey(keyName string) (string, error)

#nosec G204

func CreateKeyForce added in v0.2.0

func CreateKeyForce(keyName string) (string, error)

#nosec G204

func CreateKeyFromPath added in v0.2.0

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

#nosec G204

func CreateSpacesVMConfig added in v0.2.3

func CreateSpacesVMConfig(subnetName string, genesisPath string)

#nosec G204

func CreateSubnetEvmConfig added in v0.2.3

func CreateSubnetEvmConfig(subnetName string, genesisPath string)

#nosec G204

func CreateSubnetEvmConfigWithVersion added in v0.2.3

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

#nosec G204

func DeleteKey added in v0.2.0

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 DeploySubnetLocallyWithVersion added in v0.2.2

func DeploySubnetLocallyWithVersion(subnetName string, version string) string

Returns the deploy output

#nosec G204

func DeploySubnetLocallyWithViperConf added in v0.2.3

func DeploySubnetLocallyWithViperConf(subnetName string, confPath string) string

Returns the deploy output

#nosec G204

func ExportKey added in v0.2.0

func ExportKey(keyName string) (string, error)

#nosec G204

func ExportKeyToFile added in v0.2.0

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

#nosec G204

func GetVersion

func GetVersion() string

func ImportSubnetConfig added in v0.2.3

func ImportSubnetConfig(repoAlias string, subnetName string)

#nosec G204

func ImportSubnetConfigFromURL added in v0.2.3

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

#nosec G204

func ListKeys added in v0.2.0

func ListKeys() (string, error)

#nosec G204

func SimulateAddValidatorPublicly added in v0.2.3

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

simulates fuji add validator execution path on a local network

func SimulateDeploySubnetPublicly added in v0.2.3

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

simulates fuji deploy execution path on a local network

func SimulateJoinPublicly added in v0.2.3

func SimulateJoinPublicly(
	subnetName string,
	avalanchegoConfig string,
	pluginDir string,
) string

simulates fuji join execution path on a local network

func StartNetwork

func StartNetwork() string

#nosec G204

func StopNetwork

func StopNetwork()

#nosec G204

Types

This section is empty.

Jump to

Keyboard shortcuts

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