test_helpers

package
v0.0.12-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: AGPL-3.0 Imports: 15 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
	},
	Methods: map[string][]string{
		// contains filtered or unexported fields
	},
	MethodArgs: 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
	},
	Methods: map[string][]string{
		// contains filtered or unexported fields
	},
	MethodArgs: 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
	},
	Methods: map[string][]string{
		// contains filtered or unexported fields
	},
	MethodArgs: 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 SetupDBandBC

func SetupDBandBC() (*postgres.DB, core.BlockChain)

func SetupENSContract

func SetupENSContract(wantedEvents, wantedMethods []string) *contract.Contract

func SetupMarketPlaceContract

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

func SetupMolochContract

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

func SetupOasisContract

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

func SetupTusdContract

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

func SetupTusdRepo

func SetupTusdRepo(wantedEvents, wantedMethods []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 BalanceOf

type BalanceOf struct {
	Id        int64  `db:"id"`
	TokenName string `db:"token_name"`
	Block     int64  `db:"block"`
	Address   string `db:"who_"`
	Balance   string `db:"returned"`
}

type NewOwnerLog

type NewOwnerLog struct {
	Id        int64  `db:"id"`
	HeaderID  int64  `db:"header_id"`
	TokenName string `db:"token_name"`
	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 Owner

type Owner struct {
	Id        int64  `db:"id"`
	TokenName string `db:"token_name"`
	Block     int64  `db:"block"`
	Node      string `db:"node_"`
	Address   string `db:"returned"`
}

type Resolver

type Resolver struct {
	Id        int64  `db:"id"`
	TokenName string `db:"token_name"`
	Block     int64  `db:"block"`
	Node      string `db:"node_"`
	Address   string `db:"returned"`
}

type TransferLog

type TransferLog struct {
	Id        int64  `db:"id"`
	HeaderID  int64  `db:"header_id"`
	TokenName string `db:"token_name"`
	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