test_config

package
v1.0.0-mainnet.rc1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ABIFilePath string
View Source
var DBConfig config.Database
View Source
var Infura *viper.Viper
View Source
var InfuraClient config.Client
View Source
var TestClient config.Client
View Source
var TestConfig *viper.Viper

Functions

func CleanTestDB

func CleanTestDB(db *postgres.DB)

Cleans all tables in the DB. Note that this requires cascade constraints to be in place, so deletion can be run in any order.

func NewTestDB

func NewTestDB(node core.Node) *postgres.DB

func NewTestNode

func NewTestNode() core.Node

Returns a new test node, with the same ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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