commands

package
v1.3.7 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: BSD-3-Clause Imports: 11 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/odyssey"
	SubnetCmd                     = "subnet"
	NetworkCmd                    = "network"
	KeyCmd                        = "key"
	UpgradeCmd                    = "upgrade"
	ElasticTransformCmd           = "elastic"
	JoinCmd                       = "join"
	RemoveValidatorCmd            = "removeValidator"
	AddPermissionlessDelegatorCmd = "addPermissionlessDelegator"
)

Variables

This section is empty.

Functions

func AddPermissionlessDelegator

func AddPermissionlessDelegator(subnetName string, nodeID string, stakeAmount string, stakingPeriod string) (string, error)

func AddPermissionlessValidator

func AddPermissionlessValidator(subnetName string, nodeID string, stakeAmount string, stakingPeriod string) (string, error)

func ApplyUpgradeLocal

func ApplyUpgradeLocal(subnetName string) (string, error)

#nosec G204

func ApplyUpgradeToPublicNode

func ApplyUpgradeToPublicNode(subnetName, odygoChainConfDir string) (string, error)

#nosec G204

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 CreateSubnetEvmConfig

func CreateSubnetEvmConfig(subnetName string, genesisPath string) (string, string)

#nosec G204

func CreateSubnetEvmConfigWithVersion

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

#nosec G204

func DeleteElasticSubnetConfig

func DeleteElasticSubnetConfig(subnetName string)

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 DeploySubnetLocallyWithArgsAndOutput

func DeploySubnetLocallyWithArgsAndOutput(subnetName string, version string, confPath string) ([]byte, error)

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)

#nosec G204

func KeyTransferReceive

func KeyTransferReceive(keyName string, amount string, recoveryStep string) (string, error)

#nosec G204

func KeyTransferSend

func KeyTransferSend(keyName string, targetAddr string, amount string) (string, error)

#nosec G204

func ListKeys

func ListKeys(network string, omitDChain bool, useNanoDione bool) (string, error)

#nosec G204

func ListValidators

func ListValidators(subnetName string, network string) (string, error)

#nosec G204

func RemoveValidator

func RemoveValidator(subnetName string, nodeID string) (string, error)

func SimulateGetSubnetStatsTestnet

func SimulateGetSubnetStatsTestnet(subnetName, subnetID string) string

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

func SimulateMainnetDeploy(
	subnetName string,
	mainnetChainID int,
	errorIsExpected bool,
) string

simulates mainnet deploy execution path on a local network

#nosec G204

func SimulateMainnetJoin

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

simulates mainnet join execution path on a local network

#nosec G204

func SimulateMultisigMainnetDeploy

func SimulateMultisigMainnetDeploy(
	subnetName string,
	subnetControlAddrs []string,
	chainCreationAuthAddrs []string,
	txPath string,
	errorIsExpected bool,
) string

simulates multisig mainnet deploy execution path on a local network

#nosec G204

func SimulateTestnetAddPermissionlessValidator

func SimulateTestnetAddPermissionlessValidator(
	subnetName string,
	key string,
	nodeID string,
	stakeAmount string,
	stakingPeriod string,
) (string, error)

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 SimulateTestnetDeploy

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

simulates testnet deploy execution path on a local network

#nosec G204

func SimulateTestnetJoin

func SimulateTestnetJoin(
	subnetName string,
	odysseygoConfig string,
	pluginDir string,
	nodeID string,
) string

simulates testnet join execution path on a local network

#nosec G204

func SimulateTestnetRemoveValidator

func SimulateTestnetRemoveValidator(
	subnetName string,
	key string,
	nodeID string,
) string

simulates testnet add validator execution path on a local network

func SimulateTestnetTransformSubnet

func SimulateTestnetTransformSubnet(
	subnetName string,
	key string,
) (string, error)

func StartNetwork

func StartNetwork() string

#nosec G204

func StartNetworkWithVersion

func StartNetworkWithVersion(version string) string

#nosec G204

func StopNetwork

func StopNetwork()

#nosec G204

func TransactionCommit

func TransactionCommit(
	subnetName string,
	txPath string,
	errorIsExpected bool,
) string

transaction commit

#nosec G204

func TransactionSignWithLedger

func TransactionSignWithLedger(
	subnetName string,
	txPath string,
	errorIsExpected bool,
) string

transaction signing with ledger

#nosec G204

func TransformElasticSubnetLocally

func TransformElasticSubnetLocally(subnetName string) (string, error)

func TransformElasticSubnetLocallyandTransformValidators

func TransformElasticSubnetLocallyandTransformValidators(subnetName string, stakeAmount string) (string, error)

func UpgradeCustomVM

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

#nosec G204

func UpgradeCustomVMLocal

func UpgradeCustomVMLocal(subnetName string, binaryPath string) string

#nosec G204

func UpgradeVMConfig

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

#nosec G204

func UpgradeVMLocal

func UpgradeVMLocal(subnetName string, targetVersion string) string

#nosec G204

func UpgradeVMPublic

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

#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