utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: BSD-3-Clause Imports: 29 Imported by: 8

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"
	SubnetEVMVersion          = "v0.4.3"
	SpacesVMVersion           = "v0.0.9"
	AvagoVersion              = "latest"
	SubnetEvmAllowFeeRecpPath = "tests/e2e/assets/test_subnet_evm_allowFeeRecps_genesis.json"
)

Variables

This section is empty.

Functions

func APMConfigExists added in v0.2.3

func APMConfigExists(subnetName string) (bool, error)

func AddSubnetIDToSidecar added in v1.0.0

func AddSubnetIDToSidecar(subnetName string, network models.Network, subnetID string) error

func CheckAvalancheGoExists added in v0.2.2

func CheckAvalancheGoExists(version string) bool

func CheckKeyEquality added in v0.2.0

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

func CheckSubnetEVMExists added in v0.2.2

func CheckSubnetEVMExists(version string) bool

func DeleteAPMBin added in v0.2.3

func DeleteAPMBin(vmid string)

func DeleteBins added in v0.2.2

func DeleteBins() error

func DeleteConfigs

func DeleteConfigs(subnetName string) error

func DeleteCustomBinary added in v1.0.1

func DeleteCustomBinary(vmName string)

func DeleteKey added in v0.2.0

func DeleteKey(keyName string) error

func DownloadCustomVMBin added in v0.2.2

func DownloadCustomVMBin() (string, error)

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

func FundLedgerAddress added in v1.0.0

func FundLedgerAddress() error

func GetAPMDir added in v0.2.3

func GetAPMDir() string

func GetBaseDir

func GetBaseDir() string

func GetNodesInfo added in v0.2.3

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

func GetWhilelistedSubnetsFromConfigFile added in v0.2.3

func GetWhilelistedSubnetsFromConfigFile(configFile string) (string, error)

func KeyExists added in v0.2.0

func KeyExists(keyName string) (bool, error)

func ParseGreeterAddress

func ParseGreeterAddress(output string) error

func ParsePublicDeployOutput added in v0.2.3

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

func ParseRPCsFromOutput added in v0.2.0

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

func PrintStdErr added in v0.2.0

func PrintStdErr(err error)

func RemoveAPMRepo added in v0.2.3

func RemoveAPMRepo()

func RunHardhatScript

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

func RunHardhatTests

func RunHardhatTests(test string) error

func RunSpacesVMAPITest added in v0.2.3

func RunSpacesVMAPITest(rpc string) error

func SetHardhatRPC

func SetHardhatRPC(rpc string) error

func SubnetAPMVMExists added in v0.2.3

func SubnetAPMVMExists(subnetName string) (bool, error)

func SubnetConfigExists

func SubnetConfigExists(subnetName string) (bool, error)

func SubnetCustomVMExists added in v0.2.2

func SubnetCustomVMExists(subnetName string) (bool, error)

func UpdateNodesWhitelistedSubnets added in v0.2.3

func UpdateNodesWhitelistedSubnets(whitelistedSubnets string) error

func WaitSubnetValidators added in v0.2.3

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

Types

type NodeInfo added in v0.2.3

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