statuschecker

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InitialStatusActionNone initialStatusAction = iota
	InitialStatusActionUpdateCurrentCert
	InitialStatusActionInsertNewCert
)

Variables

View Source
var ErrAgglayerInconsistence = errors.New("recovery: agglayer inconsistence")

Functions

func NewCertStatusChecker

func NewCertStatusChecker(
	log *log.Logger,
	storage db.AggSenderStorage,
	agglayerClient agglayer.AgglayerClientInterface,
	l2OriginNetwork uint32,
) types.CertificateStatusChecker

NewCertStatusChecker creates a new instance of a CertificateStatusChecker. It initializes the checker with the provided logger, storage, Agglayer client, and the L2 origin network identifier.

Parameters:

  • log: Logger instance for logging messages.
  • storage: Interface for accessing the AggSender storage.
  • agglayerClient: Client interface for interacting with the Agglayer.
  • l2OriginNetwork: Identifier for the L2 origin network.

Returns:

A types.CertificateStatusChecker instance configured with the provided parameters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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