maestro-sdk-1.7.3: Maestro Blockchain Indexer SDK
Safe HaskellNone
LanguageHaskell2010

Maestro.Types.V1.Common.Timestamped

Description

Module to define typeclass for timestamped response, i.e. response which has a data & last_updated field.

Synopsis

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

Instances details
Eq LastUpdated # 
Instance details

Defined in Maestro.Types.V1.Common.Timestamped

Ord LastUpdated # 
Instance details

Defined in Maestro.Types.V1.Common.Timestamped

Show LastUpdated # 
Instance details

Defined in Maestro.Types.V1.Common.Timestamped

Generic LastUpdated # 
Instance details

Defined in Maestro.Types.V1.Common.Timestamped

Associated Types

type Rep LastUpdatedTypeType #

ToJSON LastUpdated # 
Instance details

Defined in Maestro.Types.V1.Common.Timestamped

Methods

toJSONLastUpdated → Value

toEncodingLastUpdated → Encoding

toJSONList ∷ [LastUpdated] → Value

toEncodingList ∷ [LastUpdated] → Encoding

omitFieldLastUpdatedBool

FromJSON LastUpdated # 
Instance details

Defined in Maestro.Types.V1.Common.Timestamped

Methods

parseJSON ∷ Value → Parser LastUpdated

parseJSONList ∷ Value → Parser [LastUpdated]

omittedFieldMaybe LastUpdated

type Rep LastUpdated # 
Instance details

Defined in Maestro.Types.V1.Common.Timestamped

type Rep LastUpdated = D1 ('MetaData "LastUpdated" "Maestro.Types.V1.Common.Timestamped" "maestro-sdk-1.7.3-inplace" 'False) (C1 ('MetaCons "LastUpdated" 'PrefixI 'True) (S1 ('MetaSel ('Just "lastUpdatedBlockHash") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 BlockHash) :*: S1 ('MetaSel ('Just "lastUpdatedBlockSlot") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 SlotNo)))

class IsTimestamped a where #

Is the endpoint timestamped?

Associated Types

type TimestampedData a ∷ Type #

What is the type of the main data in question?

Methods

getTimestampedData ∷ a → TimestampedData a #

Get the main data from the value of the given type a.

getTimestamp ∷ a → LastUpdated #

Get the LastUpdated field.

Instances

Instances details
IsTimestamped PaginatedUtxoWithSlot # 
Instance details

Defined in Maestro.Types.V1.Common

IsTimestamped TimestampedBlockDetails # 
Instance details

Defined in Maestro.Types.V1.Blocks

IsTimestamped TimestampedAssetInfo # 
Instance details

Defined in Maestro.Types.V1.Assets

IsTimestamped PaginatedPaymentCredentialTransaction # 
Instance details

Defined in Maestro.Types.V1.Addresses

IsTimestamped PaginatedAddressTransaction # 
Instance details

Defined in Maestro.Types.V1.Addresses

IsTimestamped PaginatedOutputReferenceObject # 
Instance details

Defined in Maestro.Types.V1.Addresses

IsTimestamped PaginatedAccountUpdate # 
Instance details

Defined in Maestro.Types.V1.Accounts

IsTimestamped PaginatedAccountReward # 
Instance details

Defined in Maestro.Types.V1.Accounts

IsTimestamped PaginatedAccountHistory # 
Instance details

Defined in Maestro.Types.V1.Accounts

IsTimestamped TimestampedAccountInfo # 
Instance details

Defined in Maestro.Types.V1.Accounts

IsTimestamped PaginatedAsset # 
Instance details

Defined in Maestro.Types.V1.Accounts

Associated Types

type TimestampedData PaginatedAsset #

IsTimestamped PaginatedAddress # 
Instance details

Defined in Maestro.Types.V1.Accounts

Associated Types

type TimestampedData PaginatedAddress #

IsTimestamped TimestampedDatum # 
Instance details

Defined in Maestro.Types.V1.Datum

Associated Types

type TimestampedData TimestampedDatum #

IsTimestamped TimestampedChainTip # 
Instance details

Defined in Maestro.Types.V1.General

IsTimestamped TimestampedProtocolParameters # 
Instance details

Defined in Maestro.Types.V1.General

IsTimestamped TimestampedEraSummaries # 
Instance details

Defined in Maestro.Types.V1.General

IsTimestamped TimestampedSystemStart # 
Instance details

Defined in Maestro.Types.V1.General

IsTimestamped PaginatedPoolListInfo # 
Instance details

Defined in Maestro.Types.V1.Pools

IsTimestamped TimestampedTxDetails # 
Instance details

Defined in Maestro.Types.V1.Transactions

IsTimestamped PaginatedUtxo # 
Instance details

Defined in Maestro.Types.V1.Transactions

Associated Types

type TimestampedData PaginatedUtxo #