Documentation ¶
Overview ¶
Package service is the sinner service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChainIndexer ¶
type ChainIndexer struct {
// contains filtered or unexported fields
}
ChainIndexer indexes message logs for a chain.
func NewChainIndexer ¶
func NewChainIndexer(eventDB db.EventDB, parsers Parsers, fetcher fetcher.ScribeFetcher, config indexerConfig.ChainConfig, refreshRate time.Duration) *ChainIndexer
NewChainIndexer creates a new chain indexer.
type Parsers ¶
type Parsers struct { // ChainID is the chain these parsers are for. ChainID uint32 // OriginParser parses logs from the origin contract. OriginParser sinnerTypes.EventParser // DestinationParser parses logs from the execution hub contract. DestinationParser sinnerTypes.EventParser }
Parsers holds all the parsers for a given chain.
type Sinner ¶
type Sinner struct {
// contains filtered or unexported fields
}
Sinner parses messages stored in scribe.
Click to show internal directories.
Click to hide internal directories.