Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
LastUpdated | |
|
Instances
class IsTimestamped a where #
Is the endpoint timestamped?
type TimestampedData a ∷ Type #
What is the type of the main data in question?
getTimestampedData ∷ a → TimestampedData a #
Get the main data from the value of the given type a
.
getTimestamp ∷ a → LastUpdated #
Get the LastUpdated
field.