Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultConnectionTimeout = 30 * time.Second DefaultMaxBatchSize = 100 )
Variables ¶
View Source
var ZeroAddress common.Address
Functions ¶
func QueryStateBatches ¶
func QueryStateBatches(filterer *legacy_bindings.StateCommitmentChainFilterer, startHeight, endHeight uint64, ctx context.Context) (map[common.Hash][]db.StateBatch, error)
Types ¶
type ConfirmedHeaderSelector ¶
type ConfirmedHeaderSelector struct {
// contains filtered or unexported fields
}
func NewConfirmedHeaderSelector ¶
func NewConfirmedHeaderSelector(cfg HeaderSelectorConfig) (*ConfirmedHeaderSelector, error)
type Driver ¶
type Driver interface { // Name is an identifier used to prefix logs for a particular service. Name() string }
Driver is an interface for indexing deposits from l1.
type HeaderSelectorConfig ¶
type IndexerStatus ¶
type IndexerStatus struct { Synced float64 `json:"synced"` Highest db.BlockLocator `json:"highest_block"` }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(cfg ServiceConfig) (*Service, error)
func (*Service) GetDeposits ¶
func (s *Service) GetDeposits(w http.ResponseWriter, r *http.Request)
func (*Service) GetIndexerStatus ¶
func (s *Service) GetIndexerStatus(w http.ResponseWriter, r *http.Request)
type ServiceConfig ¶
Click to show internal directories.
Click to hide internal directories.