atlas-0.1.0.0: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainersupport@geniusyield.co
Stabilitydevelop
Safe HaskellNone
LanguageHaskell2010

GeniusYield.Providers.LiteChainIndex

Description

 
Synopsis

Documentation

data LCIClient #

A very simple chain index client, which only maintains a datum hashes.

withLCIClient #

Arguments

∷ LocalNodeConnectInfo CardanoMode 
→ [ChainPoint]

resume points

→ (LCIClientIO r) 
IO r 

newLCIClient #

Arguments

∷ LocalNodeConnectInfo CardanoMode 
→ [ChainPoint]

resume points

IO LCIClient 

Create new LCIClient.

Use withLCIClient if possible.

closeLCIClientLCIClientIO () #

Close (destroy) LCIClient.

lciWaitUntilSlotLCIClientGYSlotIO GYSlot #

Wait until LCIClient has processed a given slot.

lciGetCurrentSlotLCIClientIO GYSlot #

This is not good gyGetCurrentSlot provider as it might lag plenty behind the current slot of local node.

lciStatsLCIClientIO (GYSlot, Int) #

Return statistics of LCIClient: currently processed slot and number of hashes known.