relayer

package
v1.38.2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 18 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 {
	Start(ctx context.Context) error

	FindLatestValset(ctx context.Context) (*types.Valset, error)
	RelayBatches(ctx context.Context) error
	RelayValsets(ctx context.Context) error
}

func NewPeggyRelayer

func NewPeggyRelayer(
	cosmosQueryClient cosmos.PeggyQueryClient,
	tmClient tmclient.TendermintClient,
	peggyContract peggy.PeggyContract,
	valsetRelayEnabled bool,
	relayValsetOffsetDur string,
	batchRelayEnabled bool,
	relayBatchOffsetDur string,
) 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