orchestrator

package module
v0.0.0-...-8e94ecf Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("not found")

Functions

func PowerDiff

func PowerDiff(old *types.Valset, new *types.Valset) float64

PowerDiff returns the difference in power between two bridge validator sets TODO: this needs to be potentially refactored

Types

type PeggyOrchestrator

type PeggyOrchestrator interface {
	RunLoop(ctx context.Context)
}

func NewPeggyOrchestrator

func NewPeggyOrchestrator(
	cosmosQueryClient sidechain.PeggyQueryClient,
	peggyBroadcastClient sidechain.PeggyBroadcastClient,
	tmClient tmclient.TendermintClient,
	peggyContract peggy.PeggyContract,
	ethPrivateKey *ecdsa.PrivateKey,
	injContractAddress string,
) PeggyOrchestrator

Directories

Path Synopsis
cmd
ethereum

Jump to

Keyboard shortcuts

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