mock

package
v0.0.0-...-b400eb5 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateBlockHeader

func GenerateBlockHeader(parentHash common.Hash, number int64, topics []common.Hash) *types.Header

func GenerateChainSplit

func GenerateChainSplit(start, n int64, parentHash common.Hash, extra []byte) []*types.Header

func GenerateHeaderChain

func GenerateHeaderChain(n int64) []*types.Header

func NewMockLogFilterer

func NewMockLogFilterer(logs []types.Log) ethereum.LogFilterer

Types

type MockLogFilterer

type MockLogFilterer struct {
	// contains filtered or unexported fields
}

func (*MockLogFilterer) FilterLogs

func (lf *MockLogFilterer) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)

func (*MockLogFilterer) SubscribeFilterLogs

func (lf *MockLogFilterer) SubscribeFilterLogs(ctx context.Context, q ethereum.FilterQuery, ch chan<- types.Log) (ethereum.Subscription, error)

Jump to

Keyboard shortcuts

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