client

package
v0.0.0-...-c106c27 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImplemented = errors.New("not implememented")

Functions

func NewLoomchainFilter

func NewLoomchainFilter(dappClient *client.DAppChainRPCClient) bind.ContractFilterer

Types

type BlockHeight

type BlockHeight string

type EthBlockFilter

type EthBlockFilter struct {
	Addresses []loom.LocalAddress
	Topics    [][]string
}

type EthFilter

type EthFilter struct {
	EthBlockFilter
	FromBlock BlockHeight
	ToBlock   BlockHeight
}

type LoomchainBackend

type LoomchainBackend struct {
	*client.DAppChainRPCClient
}

LoomchainBackend implments a bare bone ethcontract filterer

func (*LoomchainBackend) FilterLogs

func (l *LoomchainBackend) FilterLogs(ctx context.Context, query ethereum.FilterQuery) ([]types.Log, error)

func (*LoomchainBackend) SubscribeFilterLogs

func (l *LoomchainBackend) SubscribeFilterLogs(ctx context.Context, query 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