integration

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

README

These packages contain code related to the simulation and testing an end-to-end Ten network.

To include the Docker tests when running the tests, build the Docker images using the instructions in the dockerfiles/ folder, then run the tests with the docker tag (e.g. go test -v -tags docker ./...).

Documentation

Index

Constants

View Source
const (
	StartPortEth2NetworkTests        = 31000
	StartPortNodeRunnerTest          = 32000
	StartPortSimulationGethInMem     = 34000
	StartPortSimulationInMem         = 35000
	StartPortSimulationFullNetwork   = 37000
	StartPortSmartContractTests      = 38000
	StartPortContractDeployerTest    = 39000
	StartPortWalletExtensionUnitTest = 40000
	StartPortFaucetUnitTest          = 41000
	StartPortFaucetHTTPUnitTest      = 42000
	StartPortTenscanUnitTest         = 43000
	StartPortTenGatewayUnitTest      = 44000

	DefaultGethWSPortOffset         = 100
	DefaultGethAUTHPortOffset       = 200
	DefaultGethNetworkPortOffset    = 300
	DefaultPrysmHTTPPortOffset      = 400
	DefaultPrysmP2PPortOffset       = 500
	DefaultHostP2pOffset            = 600 // The default offset for the host P2p
	DefaultEnclaveOffset            = 700 // The default offset between a Geth nodes port and the enclave ports. Used in Socket Simulations.
	DefaultHostRPCHTTPOffset        = 800 // The default offset for the host's RPC HTTP port
	DefaultHostRPCWSOffset          = 900 // The default offset for the host's RPC websocket port
	DefaultTenscanHTTPPortOffset    = 910
	DefaultTenGatewayHTTPPortOffset = 930
	DefaultTenGatewayWSPortOffset   = 940
)

Tracks the start ports handed out to different tests, in a bid to minimise conflicts.

View Source
const (
	EthereumChainID = 1337
	TenChainID      = 443
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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