Versions in this module Expand all Collapse all v0 v0.0.0 Apr 29, 2024 Changes in this version + const RetrialTimeoutMS + var ErrBlockBodyAssertion = errors.New("error asserting BodyHandler interface of type block body") + var ErrCannotCastAccountHandlerToUserAccount = errors.New("cannot cast AccountHandler to UserAccountHandler") + var ErrNilAccountsAdapter = errors.New("received nil input value: accounts adapter") + var ErrNilDataHandler = errors.New("received nil input value: data handler") + var ErrNilHTTPServer = errors.New("received nil input value: http server") + var ErrNilHasher = errors.New("received nil input value: hasher") + var ErrNilMarshaller = errors.New("received nil input value: marshaller") + var ErrNilMiniBlockHandler = errors.New("received nil input value: mini block handler") + var ErrNilPubKeyConverter = errors.New("received nil input value: pub key converter") + var ErrNilShardCoordinator = errors.New("received nil input value: shard coordinator") + func NewCovalentDataIndexer(processor DataHandler, server *http.Server) (*covalentIndexer, error) + type AccountsAdapter interface + IsInterfaceNil func() bool + LoadAccount func(address []byte) (vmcommon.AccountHandler, error) + type DataHandler interface + ProcessData func(args *indexer.ArgsSaveBlockData) (*schema.BlockResult, error) + type Driver interface + Close func() error + FinalizedBlock func(headerHash []byte) error + IsInterfaceNil func() bool + RevertIndexedBlock func(header data.HeaderHandler, body data.BodyHandler) error + SaveAccounts func(blockTimestamp uint64, acc []data.UserAccountHandler) error + SaveBlock func(args *indexer.ArgsSaveBlockData) error + SaveRoundsInfo func(roundsInfos []*indexer.RoundInfo) error + SaveValidatorsPubKeys func(validatorsPubKeys map[uint32][][]byte, epoch uint32) error + SaveValidatorsRating func(indexID string, infoRating []*indexer.ValidatorRatingInfo) error