Versions in this module Expand all Collapse all v1 v1.12.2 Mar 3, 2025 Changes in this version + const DefaultGasLimit + const DefaultNetworkDir + const DefaultPollingInterval + const DefaultTimeout + const DefaultValidatorStartTimeDiff + const PrivateNetworksDirName + const SkipBootstrapChecksEnvName + const UsesCChainLabel + var EmitMetricsLink bool + func AddEphemeralNode(tc tests.TestContext, network *tmpnet.Network, flags tmpnet.FlagsMap) *tmpnet.Node + func CheckBootstrapIsPossible(tc tests.TestContext, network *tmpnet.Network) *tmpnet.Node + func DescribeCChain(text string, args ...interface{}) bool + func DescribePChain(text string, args ...interface{}) bool + func DescribeXChain(text string, args ...interface{}) bool + func DescribeXChainSerial(text string, args ...interface{}) bool + func GetEnvWithDefault(envVar, defaultVal string) string + func GetLocalStakingAddress(tc tests.TestContext, node *tmpnet.Node) netip.AddrPort + func GetLocalURI(tc tests.TestContext, node *tmpnet.Node) string + func GetRepoRootPath(suffix string) (string, error) + func GetWalletBalances(tc tests.TestContext, wallet *primary.Wallet) (uint64, uint64) + func InitSharedTestEnvironment(t require.TestingT, envBytes []byte) + func NewEthClient(tc tests.TestContext, nodeURI tmpnet.NodeURI) ethclient.Client + func NewPChainFeeCalculatorFromContext(context *builder.Context) fee.Calculator + func NewPrivateKey(tc tests.TestContext) *secp256k1.PrivateKey + func NewWallet(tc tests.TestContext, keychain *secp256k1fx.Keychain, nodeURI tmpnet.NodeURI) *primary.Wallet + func OutputWalletBalances(tc tests.TestContext, wallet *primary.Wallet) + func SendEthTransaction(tc tests.TestContext, ethClient ethclient.Client, signedTx *types.Transaction) *types.Receipt + func StartNetwork(tc tests.TestContext, network *tmpnet.Network, avalancheGoExecPath string, ...) + func SuggestGasPrice(tc tests.TestContext, ethClient ethclient.Client) *big.Int + func WaitForHealthy(t require.TestingT, node *tmpnet.Node) + func WithSuggestedGasPrice(tc tests.TestContext, ethClient ethclient.Client) common.Option + type FlagVars struct + func RegisterFlags() *FlagVars + func (v *FlagVars) AvalancheGoExecPath() (string, error) + func (v *FlagVars) NetworkDir() string + func (v *FlagVars) NetworkShutdownDelay() time.Duration + func (v *FlagVars) NodeCount() int + func (v *FlagVars) PluginDir() string + func (v *FlagVars) RestartNetwork() bool + func (v *FlagVars) ReuseNetwork() bool + func (v *FlagVars) StartNetwork() bool + func (v *FlagVars) StopNetwork() bool + type GinkgoTestContext struct + func NewEventHandlerTestContext() *GinkgoTestContext + func NewTestContext() *GinkgoTestContext + func (*GinkgoTestContext) By(text string, callback ...func()) + func (*GinkgoTestContext) Cleanup() + func (*GinkgoTestContext) DeferCleanup(cleanup func()) + func (*GinkgoTestContext) Errorf(format string, args ...interface{}) + func (*GinkgoTestContext) Eventually(condition func() bool, waitFor time.Duration, tick time.Duration, msg string) + func (*GinkgoTestContext) FailNow() + func (tc *GinkgoTestContext) ContextWithTimeout(duration time.Duration) context.Context + func (tc *GinkgoTestContext) DefaultContext() context.Context + func (tc *GinkgoTestContext) Log() logging.Logger + func (tc *GinkgoTestContext) WithDefaultContext() common.Option + type TestEnvironment struct + NetworkDir string + PreFundedKey *secp256k1.PrivateKey + PrivateNetworkShutdownDelay time.Duration + URIs []tmpnet.NodeURI + func GetEnv(tc tests.TestContext) *TestEnvironment + func NewTestEnvironment(tc tests.TestContext, flagVars *FlagVars, desiredNetwork *tmpnet.Network) *TestEnvironment + func (te *TestEnvironment) GetNetwork() *tmpnet.Network + func (te *TestEnvironment) GetRandomNodeURI() tmpnet.NodeURI + func (te *TestEnvironment) Marshal() []byte + func (te *TestEnvironment) NewKeychain() *secp256k1fx.Keychain + func (te *TestEnvironment) StartPrivateNetwork(network *tmpnet.Network)