# Functions
CheckTestSkipForNetworks checks if network for test is one of the prohibited ones and skips the test in this case.
EnsureNodeSync waits until node synchronzation is done to continue with tests afterwards.
GetAccount1PKFile returns the filename for Account1 keystore based on the current network.
GetAccount2PKFile returns the filename for Account2 keystore based on the current network.
GetHeadHash returns the hash associated with a given network id.
GetHeadHashFromNetworkID returns the hash associated with a given network id.
GetNetworkID returns appropriate network id for test based on default or provided -network flag.
GetRemoteURL returns the url associated with a given network id.
GetRemoteURLFromNetworkID returns associated network url for giving network id.
ImportTestAccount imports keystore from static resources, see "static/keys" folder.
LoadFromFile is useful for loading test data, from testdata/filename into a variable nolint: errcheck.
MakeTestNodeConfig defines a function to return a params.NodeConfig where specific network addresses are assigned based on provided network id.
MakeTestNodeConfigWithDataDir defines a function to return a params.NodeConfig where specific network addresses are assigned based on provided network id, and assigns a given name and data dir.
WaitClosed used to wait on a channel in tests.
# Variables
ErrNoRemoteURL is returned when network id has no associated url.
ErrTimeout is returned when test times out.
RootDir is the main application directory.
TestConfig defines the default config usable at package-level.
TestDataDir is data directory used for tests.
TestNetworkNames network ID to name mapping.
# Type aliases
EnsureSync waits until blockchain synchronization is complete and returns.