test_helpers

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ENSConfig = config.ContractConfig{
	Network: "",
	Addresses: map[string]bool{
		// contains filtered or unexported fields
	},
	Abis: map[string]string{
		// contains filtered or unexported fields
	},
	Events: map[string][]string{
		// contains filtered or unexported fields
	},
	EventArgs: map[string][]string{
		// contains filtered or unexported fields
	},
	StartingBlocks: map[string]int64{
		// contains filtered or unexported fields
	},
}
View Source
var ENSandTusdConfig = config.ContractConfig{
	Network: "",
	Addresses: map[string]bool{
		// contains filtered or unexported fields
	},
	Abis: map[string]string{
		// contains filtered or unexported fields
	},
	Events: map[string][]string{
		// contains filtered or unexported fields
	},
	EventArgs: map[string][]string{
		// contains filtered or unexported fields
	},
	StartingBlocks: map[string]int64{
		// contains filtered or unexported fields
	},
}
View Source
var TusdConfig = config.ContractConfig{
	Network: "",
	Addresses: map[string]bool{
		// contains filtered or unexported fields
	},
	Abis: map[string]string{
		// contains filtered or unexported fields
	},
	Events: map[string][]string{
		// contains filtered or unexported fields
	},
	EventArgs: map[string][]string{
		// contains filtered or unexported fields
	},
	StartingBlocks: map[string]int64{
		// contains filtered or unexported fields
	},
}

Functions

func ResetCheckedHeadersTableSchema

func ResetCheckedHeadersTableSchema(db *postgres.DB) error

func SetupMarketPlaceContract

func SetupMarketPlaceContract(wantedEvents []string) *contract.Contract

func SetupMolochContract

func SetupMolochContract(wantedEvents []string) *contract.Contract

func SetupOasisContract

func SetupOasisContract(wantedEvents []string) *contract.Contract

func SetupTusdContract

func SetupTusdContract(wantedEvents []string) *contract.Contract

func SetupTusdRepo

func SetupTusdRepo(wantedEvents []string) (*postgres.DB, *contract.Contract)

func TearDown

func TearDown(db *postgres.DB)

TODO: tear down/setup DB from migrations so this doesn't alter the schema between tests

Types

type NewOwnerLog

type NewOwnerLog struct {
	ID       int64  `db:"id"`
	HeaderID int64  `db:"header_id"`
	LogIndex int64  `db:"log_idx"`
	TxIndex  int64  `db:"tx_idx"`
	Node     string `db:"node_"`
	Label    string `db:"label_"`
	Owner    string `db:"owner_"`
	RawLog   []byte `db:"raw_log"`
}

type TransferLog

type TransferLog struct {
	ID       int64  `db:"id"`
	HeaderID int64  `db:"header_id"`
	LogIndex int64  `db:"log_idx"`
	TxIndex  int64  `db:"tx_idx"`
	From     string `db:"from_"`
	To       string `db:"to_"`
	Value    string `db:"value_"`
	RawLog   []byte `db:"raw_log"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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