relayer

package
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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type BridgeValidators

type BridgeValidators []*types.BridgeValidator

func (BridgeValidators) GetPowers

func (b BridgeValidators) GetPowers() []uint64

GetPowers returns only the power values for all members

func (BridgeValidators) HasDuplicates

func (b BridgeValidators) HasDuplicates() bool

HasDuplicates returns true if there are duplicates in the set

func (BridgeValidators) Sort

func (b BridgeValidators) Sort()

Sort sorts the validators by power

type PeggyRelayer

type PeggyRelayer interface {
	RunLoop()
}

func NewPeggyRelayer

func NewPeggyRelayer(
	cosmosQueryClient sidechain.PeggyQueryClient,
	peggyContract peggy.PeggyContract,
) PeggyRelayer

type PeggyValsetUpdatedEvents

type PeggyValsetUpdatedEvents []*wrappers.PeggyValsetUpdatedEvent

func (PeggyValsetUpdatedEvents) Len

func (a PeggyValsetUpdatedEvents) Len() int

func (PeggyValsetUpdatedEvents) Less

func (a PeggyValsetUpdatedEvents) Less(i, j int) bool

func (PeggyValsetUpdatedEvents) Swap

func (a PeggyValsetUpdatedEvents) Swap(i, j int)

Jump to

Keyboard shortcuts

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