Documentation
¶
Overview ¶
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- Constants
- func AddPermissionlessDelegator(subnetName string, nodeID string, stakeAmount string, stakingPeriod string) (string, error)
- func AddPermissionlessValidator(subnetName string, nodeID string, stakeAmount string, stakingPeriod string) (string, error)
- func ApplyUpgradeLocal(subnetName string) (string, error)
- func ApplyUpgradeToPublicNode(subnetName, odygoChainConfDir 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 KeyTransferReceive(keyName string, amount string, recoveryStep string) (string, error)
- func KeyTransferSend(keyName string, targetAddr string, amount string) (string, error)
- func ListKeys(network string, omitDChain bool, useNanoDione bool) (string, error)
- func ListValidators(subnetName string, network string) (string, error)
- func RemoveValidator(subnetName string, nodeID string) (string, error)
- func SimulateGetSubnetStatsTestnet(subnetName, subnetID string) string
- func SimulateMainnetAddValidator(subnetName string, nodeID string, start string, period string, weight string) string
- func SimulateMainnetDeploy(subnetName string, mainnetChainID int, errorIsExpected bool) string
- func SimulateMainnetJoin(subnetName string, odysseygoConfig string, pluginDir string, nodeID string) string
- func SimulateMultisigMainnetDeploy(subnetName string, subnetControlAddrs []string, ...) string
- func SimulateTestnetAddPermissionlessValidator(subnetName string, key string, nodeID string, stakeAmount string, ...) (string, error)
- func SimulateTestnetAddValidator(subnetName string, key string, nodeID string, start string, period string, ...) string
- func SimulateTestnetDeploy(subnetName string, key string, controlKeys string) string
- func SimulateTestnetJoin(subnetName string, odysseygoConfig string, pluginDir string, nodeID string) string
- func SimulateTestnetRemoveValidator(subnetName string, key string, nodeID string) string
- func SimulateTestnetTransformSubnet(subnetName string, key string) (string, error)
- func StartNetwork() string
- func StartNetworkWithVersion(version string) string
- func StopNetwork()
- func TransactionCommit(subnetName string, txPath string, errorIsExpected bool) string
- func TransactionSignWithLedger(subnetName string, txPath string, errorIsExpected bool) string
- 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/odyssey" SubnetCmd = "subnet" NetworkCmd = "network" KeyCmd = "key" UpgradeCmd = "upgrade" ElasticTransformCmd = "elastic" JoinCmd = "join" RemoveValidatorCmd = "removeValidator" AddPermissionlessDelegatorCmd = "addPermissionlessDelegator" )
Variables ¶
This section is empty.
Functions ¶
func ApplyUpgradeToPublicNode ¶
#nosec G204
func ConfigureChainConfig ¶
#nosec G204
func ConfigurePerNodeChainConfig ¶
#nosec G204
func CreateCustomVMConfig ¶
#nosec G204
func CreateKeyFromPath ¶
#nosec G204
func CreateSubnetEvmConfig ¶
#nosec G204
func CreateSubnetEvmConfigWithVersion ¶
#nosec G204
func DeleteElasticSubnetConfig ¶
func DeleteElasticSubnetConfig(subnetName string)
func DeploySubnetLocallyExpectError ¶
func DeploySubnetLocallyExpectError(subnetName string)
#nosec G204
func DeploySubnetLocallyWithArgsExpectError ¶
#nosec G204
func ExportKeyToFile ¶
#nosec G204
func GetVersion ¶
func GetVersion() string
func ImportSubnetConfigFromURL ¶
#nosec G204
func ImportUpgradeBytes ¶
#nosec G204
func KeyTransferReceive ¶
#nosec G204
func KeyTransferSend ¶
#nosec G204
func ListValidators ¶
#nosec G204
func SimulateGetSubnetStatsTestnet ¶
#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 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 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 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 ¶
simulates testnet add validator execution path on a local network
func UpgradeCustomVM ¶
#nosec G204
func UpgradeCustomVMLocal ¶
#nosec G204
func UpgradeVMConfig ¶
#nosec G204
func UpgradeVMLocal ¶
#nosec G204
Types ¶
This section is empty.