utils

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

Documentation

Index

Constants

View Source
const (
	BaseTest      = "./test/index.ts"
	GreeterScript = "./scripts/deploy.ts"
	GreeterCheck  = "./scripts/checkGreeting.ts"

	SubnetEvmGenesisPath  = "tests/e2e/assets/test_subnet_evm_genesis.json"
	SubnetEvmGenesis2Path = "tests/e2e/assets/test_subnet_evm_genesis_2.json"
	SpacesVMGenesisPath   = "tests/e2e/assets/test_spacesvm_genesis.json"
	EwoqKeyPath           = "tests/e2e/assets/ewoq_key.pk"
)

Variables

This section is empty.

Functions

func APMConfigExists

func APMConfigExists(subnetName string) (bool, error)

func CheckAvalancheGoExists

func CheckAvalancheGoExists(version string) bool

func CheckKeyEquality

func CheckKeyEquality(keyPath1, keyPath2 string) (bool, error)

func CheckSubnetEVMExists

func CheckSubnetEVMExists(version string) bool

func DeleteAPMBin

func DeleteAPMBin(vmid string)

func DeleteBins

func DeleteBins() error

func DeleteConfigs

func DeleteConfigs(subnetName string) error

func DeleteKey

func DeleteKey(keyName string) error

func DownloadCustomVMBin

func DownloadCustomVMBin() (string, error)

Currently downloads subnet-evm, but that suffices to test the custom vm functionality

func GetAPMDir

func GetAPMDir() string

func GetBaseDir

func GetBaseDir() string

func GetNodesInfo

func GetNodesInfo() (map[string]NodeInfo, error)

func GetWhilelistedSubnetsFromConfigFile

func GetWhilelistedSubnetsFromConfigFile(configFile string) (string, error)

func KeyExists

func KeyExists(keyName string) (bool, error)

func ParseGreeterAddress

func ParseGreeterAddress(output string) error

func ParsePublicDeployOutput

func ParsePublicDeployOutput(output string) (string, string, error)

func ParseRPCsFromOutput

func ParseRPCsFromOutput(output string) ([]string, error)

func PrintStdErr

func PrintStdErr(err error)

func RemoveAPMRepo

func RemoveAPMRepo()

func RunHardhatScript

func RunHardhatScript(script string) (string, string, error)

func RunHardhatTests

func RunHardhatTests(test string) error

func RunSpacesVMAPITest

func RunSpacesVMAPITest(rpc string) error

func SetHardhatRPC

func SetHardhatRPC(rpc string) error

func SubnetAPMVMExists

func SubnetAPMVMExists(subnetName string) (bool, error)

func SubnetConfigExists

func SubnetConfigExists(subnetName string) (bool, error)

func SubnetCustomVMExists

func SubnetCustomVMExists(subnetName string) (bool, error)

func UpdateNodesWhitelistedSubnets

func UpdateNodesWhitelistedSubnets(whitelistedSubnets string) error

func WaitSubnetValidators

func WaitSubnetValidators(subnetIDStr string, nodeInfos map[string]NodeInfo) error

Types

type NodeInfo

type NodeInfo struct {
	ID         string
	PluginDir  string
	ConfigFile string
	URI        string
}

Jump to

Keyboard shortcuts

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