marconi-cardano-indexers-1.2.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Marconi.Cardano.Indexers.SnapshotBlockEvent

Synopsis

Documentation

snapshotBlockEventWorker :: forall input m n. (MonadIO m, MonadError IndexerError m, MonadIO n) => StandardWorkerConfig n input SnapshotBlockEvent -> SnapshotWorkerConfig input -> FilePath -> m (WorkerIndexer n input SnapshotBlockEvent (WithTrace n (FileIndexer SnapshotMetadata))) #

Builds the worker on top of the BlockEvent indexer. This is where the events are preprocessed by filtering out any blocks which are not in the given BlockRange.

newtype SnapshotBlockEvent #

Instances

Instances details
type Point SnapshotBlockEvent # 
Instance details

Defined in Marconi.Cardano.Indexers.SnapshotBlockEvent

data SnapshotWorkerConfig input #

Type which contains the data needed to configure the snapshot indexer workers for BlockEvents and ExtLedgerState events.

Constructors

SnapshotWorkerConfig 

Fields

data SnapshotMetadata #

A representation of the names provided for the snapshot files. This is used by the file indexer when parsing and unparsing the file names.

Constructors

SnapshotMetadata 

Fields

Block ranges

data BlockRange #

A range of block number

Instances

Instances details
FromJSON BlockRange # 
Instance details

Defined in Marconi.Cardano.Indexers.SnapshotBlockEvent

Methods

parseJSON :: Value -> Parser BlockRange

parseJSONList :: Value -> Parser [BlockRange]

ToJSON BlockRange # 
Instance details

Defined in Marconi.Cardano.Indexers.SnapshotBlockEvent

Methods

toJSON :: BlockRange -> Value

toEncoding :: BlockRange -> Encoding

toJSONList :: [BlockRange] -> Value

toEncodingList :: [BlockRange] -> Encoding

Generic BlockRange # 
Instance details

Defined in Marconi.Cardano.Indexers.SnapshotBlockEvent

Associated Types

type Rep BlockRange :: Type -> Type Source #

Show BlockRange # 
Instance details

Defined in Marconi.Cardano.Indexers.SnapshotBlockEvent

type Rep BlockRange # 
Instance details

Defined in Marconi.Cardano.Indexers.SnapshotBlockEvent

type Rep BlockRange = D1 ('MetaData "BlockRange" "Marconi.Cardano.Indexers.SnapshotBlockEvent" "marconi-cardano-indexers-1.2.0.0-inplace" 'False) (C1 ('MetaCons "BlockRange" 'PrefixI 'True) (S1 ('MetaSel ('Just "_blockRangeFst") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64) :*: S1 ('MetaSel ('Just "_blockRangeSnd") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Word64)))

mkBlockRange :: Word64 -> Word64 -> Either String BlockRange #

Smart constructor for BlockRange that ensures that the lower bound is lower than the upper bound.

For testing