Type alias ProjectionEvent<ExtraProps>

ProjectionEvent<ExtraProps>: UnifiedExtChainSyncEvent<BootstrapExtraProps & ExtraProps>

All projections start by obtaining a source/producer, which is an Observable<ProjectionEvent<{}>>. These events are very similar to Chain Sync events, but there are some important differences:

  1. Block format is compatible with types from @cardano-sdk/core package.
  2. Events include some additional properties: {eraSummaries, genesisParameters, epochNo, crossEpochBoundary}.
  3. RollBackward events include block data (instead of just specifying the rollback point), and are emitted once for each rolled back block.

ExtraProps (Generic Parameter)

Source observable can be piped through a series of RxJS operators, which may add some properties to the event. In an nutshell, type ProjectionEvent<T> = ProjectionEvent<{}> & T.

Type Parameters

  • ExtraProps = {}

Generated using TypeDoc