fullstack

package
v0.0.1-alpha-3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: MIT, Apache-2.0 Imports: 32 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
	SystemStore   sqlstore.SystemStore
	UserStore     sqlstore.UserStore
	ACL           tableland.ACL
	Tableland     tableland.Tableland
	SystemService system.SystemService
}

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