watcher

package
Version: v0.8.2 Latest Latest
Warning

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

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

README

Tendermint Ethereum Watcher

An experimental library which watches the Ethereum blockchain, and notifies a Tendermint blockchain of interesting events.

TODO:

  • Bust the interesting parts out of main.go and into library code
  • Provide a simple interface for Tendermint-based applications to subscribe
  • Provide a way to shoot new events into the Tendermint chain
  • Config file allowing some parameters to be set:
    • number of Ethereum chain confirmations needed before events sent to Tendermint

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watcher

type Watcher struct {
	worker.Worker
	// contains filtered or unexported fields
}

func New

func New(cfg *config.Config) (*Watcher, error)

func (*Watcher) Shutdown

func (w *Watcher) Shutdown()

Shutdown cleanly shuts down a given Watcher instance.

func (*Watcher) Wait

func (w *Watcher) Wait()

Wait waits till the Watcher is terminated for any reason.

Source Files

Directories

Path Synopsis
Package config defines configuration used by Ethereum watcher.
Package config defines configuration used by Ethereum watcher.

Jump to

Keyboard shortcuts

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