Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconProvider ¶
type EVMListener ¶
type EVMListener struct {
// contains filtered or unexported fields
}
func NewEVMListener ¶
func NewEVMListener( beaconProvider BeaconProvider, eventHandlers []EventHandler, domainID uint8, retryInterval time.Duration, ) *EVMListener
NewEVMListener creates an EVMListener that listens to deposit events on chain and calls event handler when one occurs
func (*EVMListener) ListenToEvents ¶
func (l *EVMListener) ListenToEvents(ctx context.Context, epoch *big.Int)
ListenToEvents waits for new finality checkpoints and calls event handlers with the finalized epoch block range
type EventHandler ¶
Click to show internal directories.
Click to hide internal directories.