integration

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 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      = 10000
	StartPortTenscanUnitTest       = 11000
	StartPortNodeRunnerTest        = 12000
	StartPortSimulationGethInMem   = 14000
	StartPortSimulationInMem       = 15000
	StartPortSimulationFullNetwork = 16000
	DoNotUse                       = 17000 // port conflict on this address
	StartPortSmartContractTests    = 18000
	StartPortContractDeployerTest1 = 19000
	StartPortContractDeployerTest2 = 21000
	StartPortFaucetUnitTest        = 22000
	StartPortFaucetHTTPUnitTest    = 23000
	StartPortTenGatewayUnitTest    = 24000
	StartPortNetworkTests          = 25000

	DefaultGethWSPortOffset         = 100
	DefaultGethAUTHPortOffset       = 200
	DefaultGethNetworkPortOffset    = 300
	DefaultGethHTTPPortOffset       = 400
	DefaultPrysmP2PPortOffset       = 500
	DefaultPrysmRPCPortOffset       = 550
	DefaultPrysmGatewayPortOffset   = 560
	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    = 950
	DefaultTenGatewayHTTPPortOffset = 951
	DefaultTenGatewayWSPortOffset   = 952
)

Tracks the start ports handed out to different tests, in a bid to minimise conflicts. Note: the max should not exceed 30000 because the OS can use those ports and we'll get conflicts

View Source
const (
	EthereumChainID = 1337
	TenChainID      = 443
)
View Source
const (
	GethNodeAddress = "0x123463a4b065722e99115d6c222f267d9cabb524"
	GethNodePK      = "2e0834786285daccd064ca17f1654f67b4aef298acbb82cef9ec422fb4975622"
)

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