Versions in this module Expand all Collapse all v1 v1.0.0 Nov 14, 2024 Changes in this version + const BaseTest + const EwoqKeyPath + const GreeterCheck + const GreeterScript + const LatestAvago2EVMKey + const LatestEVM2AvagoKey + const MultiAvago1Key + const MultiAvago2Key + const MultiAvagoSubnetEVMKey + const OnlyAvagoKey + const OnlyAvagoValue + const PluginDirExt + const SoloAvagoKey + const SoloSubnetEVMKey1 + const SoloSubnetEVMKey2 + const SubnetEvmAllowFeeRecpPath + const SubnetEvmGenesis2Path + const SubnetEvmGenesisBadPath + const SubnetEvmGenesisPath + func APMConfigExists(subnetName string) (bool, error) + func AddSubnetIDToSidecar(subnetName string, network models.Network, subnetID string) error + func AllPermissionlessValidatorExistsInSidecar(subnetName string, network string) (bool, error) + func ChainConfigExists(subnetName string) (bool, error) + func CheckAllNodesAreCurrentValidators(subnetName string) (bool, error) + func CheckAvalancheGoExists(version string) bool + func CheckKeyEquality(keyPath1, keyPath2 string) (bool, error) + func CheckSubnetEVMExists(version string) bool + func CheckUpgradeIsDeployed(rpcEndpoint string, deployedUpgrades params.UpgradeConfig) error + func DeleteAPMBin(vmid string) + func DeleteBins() error + func DeleteConfigs(subnetName string) error + func DeleteCustomBinary(vmName string) + func DeleteKey(keyName string) error + func DownloadCustomVMBin(subnetEVMversion string) (string, error) + func ElasticSubnetConfigExists(subnetName string) (bool, error) + func ExecCommand(cmdName string, args []string, showStdout bool, errorIsExpected bool) string + func FundLedgerAddress(amount uint64) error + func GetAPMDir() string + func GetBaseDir() string + func GetCurrentSupply(subnetName string) error + func GetFileHash(filename string) (string, error) + func GetLedgerAddress(network models.Network, index uint32) (string, error) + func GetNodeVMVersion(nodeURI string, vmid string) (string, error) + func GetNodesInfo() (map[string]NodeInfo, error) + func GetPluginBinaries() ([]string, error) + func GetSubnetDir() string + func GetSubnetEVMMainneChainID(subnetName string) (uint, error) + func GetTmpFilePath(fnamePrefix string) (string, error) + func GetValidators(subnetName string) ([]string, error) + func GetVersionMapping(mapper VersionMapper) (map[string]string, error) + func GetWhitelistedSubnetsFromConfigFile(configFile string) (string, error) + func IsCustomVM(subnetName string) (bool, error) + func IsNodeInValidators(subnetName string, nodeID string) (bool, error) + func KeyExists(keyName string) (bool, error) + func ParseAddrBalanceFromKeyListOutput(output string, keyName string) (string, uint64, error) + func ParseGreeterAddress(output string) error + func ParsePublicDeployOutput(output string) (string, error) + func ParseRPCsFromOutput(output string) ([]string, error) + func PerNodeChainConfigExists(subnetName string) (bool, error) + func PermissionlessValidatorExistsInSidecar(subnetName string, nodeID string, network string) (bool, error) + func PrintStdErr(err error) + func RemoveAPMRepo() + func RestartNodesWithWhitelistedSubnets(whitelistedSubnets string) error + func RunHardhatScript(script string) (string, string, error) + func RunHardhatTests(test string) error + func RunLedgerSim(iters int, seed string, ledgerSimReadyCh chan struct{}, ...) error + func SetHardhatRPC(rpc string) error + func StartLedgerSim(iters int, seed string, showStdout bool) (chan struct{}, chan struct{}) + func SubnetAPMVMExists(subnetName string) (bool, error) + func SubnetConfigExists(subnetName string) (bool, error) + func SubnetCustomVMExists(subnetName string) (bool, error) + func WaitSubnetValidators(subnetIDStr string, nodeInfos map[string]NodeInfo) error + type NodeInfo struct + ConfigFile string + ID string + LogDir string + PluginDir string + URI string + type VersionMapper interface + FilterAvailableVersions func(versions []string) []string + GetApp func() *application.Avalanche + GetAvagoURL func() string + GetCompatURL func(vmType models.VMType) string + GetEligibleVersions func(sortedVersions []string, repoName string, app *application.Avalanche) ([]string, error) + GetLatestAvagoByProtoVersion func(app *application.Avalanche, rpcVersion int, url string) (string, error) + func NewVersionMapper() VersionMapper