plutus-chain-index-core-1.2.0.0
Safe Haskell None
Language Haskell2010

Cardano.Protocol.Socket.Client

Synopsis

Documentation

data ChainSyncHandle event Source #

Constructors

ChainSyncHandle

Fields

type ChainSyncCallback = ChainSyncEvent -> Slot -> IO () Source #

The Slot parameter here represents the current slot as computed from the current time. There is also the slot where the block was published, which is available from the ChainSyncEvent .

Currently we are using this current slot everywhere, which is why I leave it here, as a parameter.

data ClientMsg Source #

Instances

Instances details
Eq ClientMsg Source #
Instance details

Defined in Cardano.Protocol.Socket.Client

Show ClientMsg Source #
Instance details

Defined in Cardano.Protocol.Socket.Client

Generic ClientMsg Source #
Instance details

Defined in Cardano.Protocol.Socket.Client

ToJSON ClientMsg Source #
Instance details

Defined in Cardano.Protocol.Socket.Client

FromJSON ClientMsg Source #
Instance details

Defined in Cardano.Protocol.Socket.Client

ToObject ClientMsg Source #
Instance details

Defined in Cardano.Protocol.Socket.Client

type Rep ClientMsg Source #
Instance details

Defined in Cardano.Protocol.Socket.Client

runChainSync' :: FilePath -> SlotConfig -> NetworkId -> [ ChainPoint ] -> IO ( ChainSyncHandle ChainSyncEvent ) Source #

Run the chain sync protocol to get access to the current slot number.