subnetcmd

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: 67 Imported by: 0

Documentation

Overview

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMutuallyExclusiveKeyLedger = errors.New("key source flags --key, --ledger/--ledger-addrs are mutually exclusive")
	ErrStoredKeyOnMainnet         = errors.New("key --key is not available for mainnet operations")
)

Functions

func CallAddValidator

func CallAddValidator(
	network models.Network,
	kc *keychain.Keychain,
	useLedgerSetting bool,
	subnetName string,
	nodeIDStr string,
	defaultValidatorParamsSetting bool,
) error

func CallConfigure

func CallConfigure(
	cmd *cobra.Command,
	subnetName string,
	chainConfParam string,
	subnetConfParam string,
	nodeConfParam string,
) error

func CallCreate

func CallCreate(
	cmd *cobra.Command,
	subnetName string,
	forceCreateParam bool,
	genesisFileParam string,
	useSubnetEvmParam bool,
	useCustomParam bool,
	evmVersionParam string,
	evmChainIDParam uint64,
	evmTokenParam string,
	evmDefaultsParam bool,
	useLatestEvmVersionParam bool,
	customVMRepoURLParam string,
	customVMBranchParam string,
	customVMBuildScriptParam string,
) error

func CallDeploy

func CallDeploy(
	cmd *cobra.Command,
	subnetName string,
	deployLocalParam bool,
	deployDevnetParam bool,
	deployTestnetParam bool,
	deployMainnetParam bool,
	endpointParam string,
	keyNameParam string,
	useLedgerParam bool,
	useEwoqParam bool,
	sameControlKeyParam bool,
) error

func CallExportSubnet

func CallExportSubnet(subnetName, exportPath string) error

func CheckForInvalidDeployAndGetOdygoVersion

func CheckForInvalidDeployAndGetOdygoVersion(network localnetworkinterface.StatusChecker, configuredRPCVersion int) (string, error)

Determines the appropriate version of odysseygo to run with. Returns an error if that version conflicts with the current deployment.

func CheckSubnetIsElastic

func CheckSubnetIsElastic(subnetID ids.ID, network models.Network) (bool, error)

func GetNetworkFromCmdLineFlags

func GetNetworkFromCmdLineFlags(
	useLocal bool,
	useDevnet bool,
	useTestnet bool,
	useMainnet bool,
	endpoint string,
	askForDevnetEndpoint bool,
	supportedNetworkKinds []models.NetworkKind,
) (models.Network, error)

func NewCmd

func NewCmd(injectedApp *application.Odyssey) *cobra.Command

odyssey subnet

func PrintDeployResults

func PrintDeployResults(chain string, subnetID ids.ID, blockchainID ids.ID) error

func PrintReadyToSignMsg

func PrintReadyToSignMsg(
	chain string,
	outputTxPath string,
)

func PrintRemainingToSignMsg

func PrintRemainingToSignMsg(
	chain string,
	remainingSubnetAuthKeys []string,
	outputTxPath string,
)

func PrintTransformResults

func PrintTransformResults(chain string, txID ids.ID, subnetID ids.ID, tokenName string, tokenSymbol string, assetID ids.ID)

func PromptDuration

func PromptDuration(start time.Time, network models.Network) (time.Duration, error)

func PromptNodeID

func PromptNodeID() (ids.NodeID, error)

func SaveNotFullySignedTx

func SaveNotFullySignedTx(
	txName string,
	tx *txs.Tx,
	chain string,
	subnetAuthKeys []string,
	remainingSubnetAuthKeys []string,
	outputTxPath string,
	forceOverwrite bool,
) error

func ValidateSubnetNameAndGetChains

func ValidateSubnetNameAndGetChains(args []string) ([]string, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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