test_helpers

package
Version: v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2019 License: AGPL-3.0 Imports: 17 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 CreateBlock

func CreateBlock(blockNumber int64, repository repositories.BlockRepository) (blockId int64)

func SetupDBandBC

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

func SetupENSContract

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

func SetupENSRepo

func SetupENSRepo(vulcanizeLogId *int64, wantedEvents, wantedMethods []string) (*postgres.DB, *contract.Contract)

func SetupTusdContract

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

func SetupTusdRepo

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

func TearDown

func TearDown(db *postgres.DB)

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 HeaderSyncNewOwnerLog added in v0.0.2

type HeaderSyncNewOwnerLog 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 HeaderSyncTransferLog added in v0.0.2

type HeaderSyncTransferLog 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"`
}

type NewOwnerLog

type NewOwnerLog struct {
	Id             int64  `db:"id"`
	VulvanizeLogId int64  `db:"vulcanize_log_id"`
	TokenName      string `db:"token_name"`
	Block          int64  `db:"block"`
	Tx             string `db:"tx"`
	Node           string `db:"node_"`
	Label          string `db:"label_"`
	Owner          string `db:"owner_"`
}

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"`
	VulvanizeLogId int64  `db:"vulcanize_log_id"`
	TokenName      string `db:"token_name"`
	Block          int64  `db:"block"`
	Tx             string `db:"tx"`
	From           string `db:"from_"`
	To             string `db:"to_"`
	Value          string `db:"value_"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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