relayer

package
v0.0.0-...-1ed95e1 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2025 License: LGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RelayerConfig

type RelayerConfig struct {
	EventListenerConfig     *l1.EventListenerConfig
	FinalityEnsurerConfig   *l1.FinalityEnsurerConfig
	TransactionSenderConfig *l2.TransactionSenderConfig
	L2ContractConfig        *l2.ContractConfig
	TelemetryConfig         *telemetry.Config
	DebugAPIConfig          *debug.Config
	HeartbeatConfig         *debug.HeartbeatConfig
}

func DefaultRelayerConfig

func DefaultRelayerConfig() *RelayerConfig

type RelayerService

type RelayerService struct {
	Logger              logging.Logger
	Config              *RelayerConfig
	L1EventListener     *l1.EventListener
	L1FinalityEnsurer   *l1.FinalityEnsurer
	L2TransactionSender *l2.TransactionSender
	DebugListener       *debug.RPCListener
	HeartbeatSender     *debug.HeartbeatSender
}

func New

func New(
	ctx context.Context,
	database db.DB,
	clock clockwork.Clock,
	config *RelayerConfig,
	l1Client l1.EthClient,
) (*RelayerService, error)

func (*RelayerService) Run

func (rs *RelayerService) Run(ctx context.Context) error

Directories

Path Synopsis
internal
l1
l2

Jump to

Keyboard shortcuts

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