converter

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
	ContractInfo *contract.Contract
}

func (*Converter) Convert

func (c *Converter) Convert(watchedEvent core.WatchedEvent, event types.Event) (*types.Log, error)

Convert the given watched event log into a types.Log for the given event

func (*Converter) Update

func (c *Converter) Update(info *contract.Contract)

type ConverterInterface

type ConverterInterface interface {
	Convert(watchedEvent core.WatchedEvent, event types.Event) (*types.Log, error)
	Update(info *contract.Contract)
}

Converter is used to convert watched event logs to custom logs containing event input name => value maps

Jump to

Keyboard shortcuts

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