handlers

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: LGPL-2.1 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventFetcher

type EventFetcher interface {
	FetchEventLogs(ctx context.Context, contractAddress common.Address, event string, startBlock *big.Int, endBlock *big.Int) ([]types.Log, error)
}

type StateRootEventHandler

type StateRootEventHandler struct {
	// contains filtered or unexported fields
}

func NewStateRootEventHandler

func NewStateRootEventHandler(
	msgChan chan []*message.Message,
	eventFetcher EventFetcher,
	stateRootAddress common.Address,
	domainID uint8,
) *StateRootEventHandler

func (*StateRootEventHandler) HandleEvents

func (h *StateRootEventHandler) HandleEvents(startBlock *big.Int, endBlock *big.Int) error

HandleEvents fetches state root submitted events and sends message to origin domain

Jump to

Keyboard shortcuts

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