Versions in this module Expand all Collapse all v0 v0.7.0 Jun 7, 2023 v0.6.0 Jun 6, 2023 Changes in this version + const DefaultConfDepth + const DefaultConnectionTimeout + const DefaultMaxBatchSize + func HeadersByRange(ctx context.Context, client *rpc.Client, startHeight uint64, count int) ([]*types.Header, error) + type ConfirmedHeaderSelector struct + func NewConfirmedHeaderSelector(cfg HeaderSelectorConfig) (*ConfirmedHeaderSelector, error) + func (f *ConfirmedHeaderSelector) NewHead(ctx context.Context, lowest uint64, header *types.Header, client *rpc.Client) ([]*types.Header, error) + type HeaderSelectorConfig struct + ConfDepth uint64 + MaxBatchSize uint64 + type IndexerStatus struct + Highest db.BlockLocator + Synced float64 + type Service struct + func NewService(cfg ServiceConfig) (*Service, error) + func (s *Service) GetIndexerStatus(w http.ResponseWriter, r *http.Request) + func (s *Service) GetWithdrawalBatch(w http.ResponseWriter, r *http.Request) + func (s *Service) GetWithdrawals(w http.ResponseWriter, r *http.Request) + func (s *Service) Start() error + func (s *Service) Stop() + func (s *Service) Update(newHeader *types.Header) error + type ServiceConfig struct + Bedrock bool + ChainID *big.Int + ConfDepth uint64 + Context context.Context + DB *db.Database + L2Client *ethclient.Client + L2RPC *rpc.Client + MaxHeaderBatchSize uint64 + Metrics *metrics.Metrics + StartBlockNumber uint64 Other modules containing this package github.com/ethereum-optimism/optimism