cardano-api-8.36.1.1: The cardano api
Safe HaskellNone
LanguageHaskell2010

Cardano.Api.ChainSync.Client

Synopsis

Protocol type for the client

The protocol states from the point of view of the client.

newtype ChainSyncClient header point tip (m :: Type -> Type) a #

Constructors

ChainSyncClient 

Fields

data ClientStIdle header point tip (m :: Type -> Type) a where #

Constructors

SendMsgRequestNext :: forall header point tip (m :: Type -> Type) a. ClientStNext header point tip m a -> m (ClientStNext header point tip m a) -> ClientStIdle header point tip m a 
SendMsgFindIntersect :: forall point header tip (m :: Type -> Type) a. [point] -> ClientStIntersect header point tip m a -> ClientStIdle header point tip m a 
SendMsgDone :: forall a header point tip (m :: Type -> Type). a -> ClientStIdle header point tip m a 

data ClientStNext header point tip (m :: Type -> Type) a #

Constructors

ClientStNext 

Fields

data ClientStIntersect header point tip (m :: Type -> Type) a #

Constructors

ClientStIntersect 

Fields

Null chain sync client

chainSyncClientNull :: forall (m :: Type -> Type) header point tip a. MonadTimer m => ChainSyncClient header point tip m a #

Utilities

mapChainSyncClient :: forall header header' point point' tip tip' (m :: Type -> Type) a. Functor m => (point -> point') -> (point' -> point) -> (header' -> header) -> (tip' -> tip) -> ChainSyncClient header point tip m a -> ChainSyncClient header' point' tip' m a #