converter

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: AGPL-3.0 Imports: 10 Imported by: 1

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
}

Converter is the underlying struct for the ConverterInterface

func (*Converter) Convert

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

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

func (*Converter) Update

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

Update configures the converter for a specific contract

type ConverterInterface

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

ConverterInterface 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