listener

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventListener

type EventListener interface {
	FetchKeygenEvents(ctx context.Context, address common.Address, startBlock *big.Int, endBlock *big.Int) ([]types.Log, error)
	FetchRefreshEvents(ctx context.Context, address common.Address, startBlock *big.Int, endBlock *big.Int) ([]*events.Refresh, error)
}

type KeygenEventHandler

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

func NewKeygenEventHandler

func NewKeygenEventHandler(
	logC zerolog.Context,
	eventListener EventListener,
	coordinator *tss.Coordinator,
	host host.Host,
	communication comm.Communication,
	storer keygen.ECDSAKeyshareStorer,
	bridgeAddress common.Address,
	threshold int,
) *KeygenEventHandler

func (*KeygenEventHandler) HandleEvents

func (eh *KeygenEventHandler) HandleEvents(
	startBlock *big.Int,
	endBlock *big.Int,
) error

type RefreshEventHandler

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

func NewRefreshEventHandler

func NewRefreshEventHandler(
	logC zerolog.Context,
	topologyProvider topology.NetworkTopologyProvider,
	topologyStore *topology.TopologyStore,
	eventListener EventListener,
	coordinator *tss.Coordinator,
	host host.Host,
	communication comm.Communication,
	connectionGate *p2p.ConnectionGate,
	ecdsaStorer resharing.SaveDataStorer,
	bridgeAddress common.Address,
) *RefreshEventHandler

func (*RefreshEventHandler) HandleEvents

func (eh *RefreshEventHandler) HandleEvents(
	startBlock *big.Int,
	endBlock *big.Int,
) error

HandleEvent fetches refresh events and in case of an event retrieves and stores the latest topology and starts a resharing tss process

Jump to

Keyboard shortcuts

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