fullstack

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT, Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ChainID = tableland.ChainID(1337)

ChainID is the test chain id.

Functions

This section is empty.

Types

type Deps

type Deps struct {
	DBURI          string
	Parser         parsing.SQLValidator
	Database       *database.SQLiteDB
	ACL            tableland.ACL
	GatewayService gateway.Gateway
}

Deps holds possile dependencies that can optionally be provided to spin up the full stack.

type FullStack

type FullStack struct {
	Backend           *backends.SimulatedBackend
	Address           common.Address
	Contract          *ethereum.Contract
	TransactOpts      *bind.TransactOpts
	Wallet            *wallet.Wallet
	TblContractClient *ethereum.Client
	Server            *httptest.Server
}

FullStack holds all potentially useful components of the Tableland test stack.

func CreateFullStack

func CreateFullStack(t *testing.T, deps Deps) FullStack

CreateFullStack creates a running validator with the provided dependencies, or defaults otherwise.

Jump to

Keyboard shortcuts

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