utils

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: BSD-3-Clause Imports: 11 Imported by: 9

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

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 DeleteBins added in v0.2.2

func DeleteBins() error

func DeleteConfigs

func DeleteConfigs(subnetName string) error

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 GetBaseDir

func GetBaseDir() string

func KeyExists added in v0.2.0

func KeyExists(keyName string) (bool, error)

func ParseGreeterAddress

func ParseGreeterAddress(output 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 RunHardhatScript

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

func RunHardhatTests

func RunHardhatTests(test string) error

func SetHardhatRPC

func SetHardhatRPC(rpc string) error

func SubnetConfigExists

func SubnetConfigExists(subnetName string) (bool, error)

func SubnetCustomVMExists added in v0.2.2

func SubnetCustomVMExists(subnetName string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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