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

→ (LCIClient → IO r) 
→ IO r 

newLCIClient #

Arguments

∷ LocalNodeConnectInfo CardanoMode 
→ [ChainPoint]

resume points

→ IO LCIClient 

Create new LCIClient.

Use withLCIClient if possible.

closeLCIClient ∷ LCIClient → IO () #

Close (destroy) LCIClient.

lciWaitUntilSlot ∷ LCIClient → GYSlot → IO GYSlot #

Wait until LCIClient has processed a given slot.

lciGetCurrentSlot ∷ LCIClient → IO GYSlot #

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

lciStats ∷ LCIClient → IO (GYSlot, Int) #

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