| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
Hydra.HeadLogic.StateEvent
Synopsis
- data StateEvent tx = StateEvent {
- eventId :: EventId
- stateChanged :: StateChanged tx
- time :: UTCTime
- mkCheckpoint :: NodeState tx -> EventId -> UTCTime -> StateEvent tx
State change events as used by Hydra.Node
data StateEvent tx Source #
A state change event with an event id that is the common entity to be
loaded from an EventSource and sent to EventSinks.
Constructors
| StateEvent | |
Fields
| |
Instances
mkCheckpoint :: NodeState tx -> EventId -> UTCTime -> StateEvent tx Source #