test_data

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenericTestConfig = transformer.EventTransformerConfig{
	TransformerName:     "generic-test-transformer",
	ContractAddresses:   []string{fakeAddress().Hex()},
	ContractAbi:         randomString(100),
	Topic:               topic0,
	StartingBlockNumber: startingBlockNumber,
	EndingBlockNumber:   startingBlockNumber + 1,
}
View Source
var GenericTestLog = func() types.Log {
	return types.Log{
		Address:     fakeAddress(),
		Topics:      []common.Hash{common.HexToHash(topic0), fakeHash()},
		Data:        hexutil.MustDecode(fakeHash().Hex()),
		BlockNumber: uint64(startingBlockNumber),
		TxHash:      fakeHash(),
		TxIndex:     uint(rand.Int31()),
		BlockHash:   fakeHash(),
		Index:       uint(rand.Int31()),
	}
}

Functions

This section is empty.

Types

type GenericEntity

type GenericEntity struct{}

type GenericModel

type GenericModel struct{}

Jump to

Keyboard shortcuts

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