Safe Haskell | None |
---|---|
Language | Haskell2010 |
Maestro.Types.V1.Common.Timestamped
Description
Module to define typeclass for timestamped response, i.e. response which has a data
& last_updated
field.
Synopsis
- data LastUpdated = LastUpdated {}
- class IsTimestamped a where
- type TimestampedData a ∷ Type
- getTimestampedData ∷ a → TimestampedData a
- getTimestamp ∷ a → LastUpdated
Documentation
data LastUpdated #
Details of the most recent block processed by the indexer (aka chain tip); that is, the data returned is correct as of this block in time.
Constructors
LastUpdated | |
Fields
|
Instances
class IsTimestamped a where #
Is the endpoint timestamped?
Methods
getTimestampedData ∷ a → TimestampedData a #
Get the main data from the value of the given type a
.
getTimestamp ∷ a → LastUpdated #
Get the LastUpdated
field.