commands

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: BSD-3-Clause Imports: 6 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/avalanche"
	SubnetCmd  = "subnet"
	NetworkCmd = "network"
	KeyCmd     = "key"
)

Variables

This section is empty.

Functions

func CleanNetwork

func CleanNetwork()

#nosec G204

func CleanNetworkHard

func CleanNetworkHard()

#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 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 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 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 ListKeys

func ListKeys() (string, error)

#nosec G204

func SimulateAddValidatorPublicly

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

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

simulates fuji deploy execution path on a local network

func SimulateJoinPublicly

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