Documentation ¶
Overview ¶
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- Constants
- func AddPermissionlessValidator(subnetName string, nodeID string, stakeAmount string, stakingPeriod string) (string, error)
- func ApplyUpgradeLocal(subnetName string) (string, error)
- func ApplyUpgradeToPublicNode(subnetName, avagoChainConfDir string) (string, error)
- func CleanNetwork()
- func CleanNetworkHard()
- func ConfigureChainConfig(subnetName string, genesisPath string)
- func ConfigurePerNodeChainConfig(subnetName string, perNodeChainConfigPath string)
- func CreateCustomVMConfig(subnetName string, genesisPath string, vmPath string)
- func CreateKey(keyName string) (string, error)
- func CreateKeyForce(keyName string) (string, error)
- func CreateKeyFromPath(keyName string, keyPath string) (string, error)
- func CreateSubnetEvmConfig(subnetName string, genesisPath string) (string, string)
- func CreateSubnetEvmConfigWithVersion(subnetName string, genesisPath string, version string)
- func DeleteElasticSubnetConfig(subnetName string)
- func DeleteKey(keyName string) (string, error)
- func DeleteSubnetConfig(subnetName string)
- func DeploySubnetLocally(subnetName string) string
- func DeploySubnetLocallyExpectError(subnetName string)
- func DeploySubnetLocallyWithArgs(subnetName string, version string, confPath string) string
- func DeploySubnetLocallyWithArgsAndOutput(subnetName string, version string, confPath string) ([]byte, error)
- func DeploySubnetLocallyWithArgsExpectError(subnetName string, version string, confPath string)
- func DeploySubnetLocallyWithVersion(subnetName string, version string) string
- func DeploySubnetLocallyWithViperConf(subnetName string, confPath string) string
- func DescribeSubnet(subnetName string) (string, error)
- func ExportKey(keyName string) (string, error)
- func ExportKeyToFile(keyName string, outputPath string) (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 ListKeys() (string, error)
- func ListValidators(subnetName string, network string) (string, error)
- func RemoveValidator(subnetName string, nodeID string) (string, error)
- func SimulateFujiAddValidator(subnetName string, key string, nodeID string, start string, period string, ...) string
- func SimulateFujiDeploy(subnetName string, key string, controlKeys string) string
- func SimulateFujiJoin(subnetName string, avalanchegoConfig string, pluginDir string, nodeID string) string
- func SimulateFujiRemoveValidator(subnetName string, key string, nodeID string) string
- func SimulateGetSubnetStatsFuji(subnetName, subnetID string) string
- func SimulateMainnetAddValidator(subnetName string, nodeID string, start string, period string, weight string) string
- func SimulateMainnetDeploy(subnetName string) string
- func SimulateMainnetJoin(subnetName string, avalanchegoConfig string, pluginDir string, nodeID string) string
- func StartNetwork() string
- func StartNetworkWithVersion(version string) string
- func StopNetwork()
- 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)
Constants ¶
const ( CLIBinary = "./bin/avalanche" SubnetCmd = "subnet" NetworkCmd = "network" KeyCmd = "key" UpgradeCmd = "upgrade" ElasticTransformCmd = "elastic" JoinCmd = "join" RemoveValidatorCmd = "removeValidator" )
Variables ¶
This section is empty.
Functions ¶
func AddPermissionlessValidator ¶ added in v1.2.1
func ApplyUpgradeLocal ¶ added in v1.1.0
#nosec G204
func ApplyUpgradeToPublicNode ¶ added in v1.1.1
#nosec G204
func ConfigureChainConfig ¶ added in v1.0.2
#nosec G204
func ConfigurePerNodeChainConfig ¶ added in v1.0.4
#nosec G204
func CreateCustomVMConfig ¶ added in v0.2.3
#nosec G204
func CreateKeyForce ¶ added in v0.2.0
#nosec G204
func CreateKeyFromPath ¶ added in v0.2.0
#nosec G204
func CreateSubnetEvmConfig ¶ added in v0.2.3
#nosec G204
func CreateSubnetEvmConfigWithVersion ¶ added in v0.2.3
#nosec G204
func DeleteElasticSubnetConfig ¶ added in v1.2.0
func DeleteElasticSubnetConfig(subnetName string)
func DeploySubnetLocallyExpectError ¶ added in v1.0.1
func DeploySubnetLocallyExpectError(subnetName string)
#nosec G204
func DeploySubnetLocallyWithArgsAndOutput ¶ added in v1.1.3
func DeploySubnetLocallyWithArgsExpectError ¶ added in v1.0.1
#nosec G204
func DescribeSubnet ¶ added in v1.1.0
#nosec G204
func ExportKeyToFile ¶ added in v0.2.0
#nosec G204
func GetVersion ¶
func GetVersion() string
func ImportSubnetConfig ¶ added in v0.2.3
#nosec G204
func ImportSubnetConfigFromURL ¶ added in v0.2.3
#nosec G204
func ImportUpgradeBytes ¶ added in v1.1.0
#nosec G204
func ListValidators ¶ added in v1.2.1
#nosec G204
func RemoveValidator ¶ added in v1.2.1
func SimulateFujiAddValidator ¶ added in v1.0.0
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
#nosec G204
func SimulateFujiDeploy ¶ added in v1.0.0
simulates fuji deploy execution path on a local network
#nosec G204
func SimulateFujiJoin ¶ added in v1.0.0
func SimulateFujiJoin( subnetName string, avalanchegoConfig string, pluginDir string, nodeID string, ) string
simulates fuji join execution path on a local network
#nosec G204
func SimulateFujiRemoveValidator ¶ added in v1.2.0
simulates fuji add validator execution path on a local network
func SimulateGetSubnetStatsFuji ¶ added in v1.0.0
#nosec G204
func SimulateMainnetAddValidator ¶ added in v1.0.0
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 SimulateMainnetDeploy ¶ added in v1.0.0
simulates mainnet deploy execution path on a local network
#nosec G204
func SimulateMainnetJoin ¶ added in v1.0.0
func SimulateMainnetJoin( subnetName string, avalanchegoConfig string, pluginDir string, nodeID string, ) string
simulates mainnet join execution path on a local network
#nosec G204
func StartNetworkWithVersion ¶ added in v1.0.0
#nosec G204
func TransformElasticSubnetLocally ¶ added in v1.2.0
func TransformElasticSubnetLocallyandTransformValidators ¶ added in v1.2.1
func UpgradeCustomVM ¶ added in v1.1.0
#nosec G204
func UpgradeCustomVMLocal ¶ added in v1.1.0
#nosec G204
func UpgradeVMConfig ¶ added in v1.1.0
#nosec G204
func UpgradeVMLocal ¶ added in v1.1.0
#nosec G204
Types ¶
This section is empty.