plutus-chain-index-core-1.2.0.0
Safe HaskellNone
LanguageHaskell2010

Plutus.ChainIndex.Marconi

Synopsis

Documentation

data ChainIndexIndexers Source #

Constructors

ChainIndexIndexers 

Fields

utxosIndexer :: Iso' ChainIndexIndexers (State UtxoHandle) Source #

data ChainIndexIndexersMVar Source #

Constructors

ChainIndexIndexersMVar 

Fields

utxosIndexerMVar :: Iso' ChainIndexIndexersMVar (MVar (State UtxoHandle)) Source #

data MarconiEffect handle r where Source #

Constructors

QueryIndexer :: StorableQuery handle -> MarconiEffect handle (StorableResult handle) 

queryIndexer :: forall handle. forall effs. Member (MarconiEffect handle) effs => StorableQuery handle -> Eff effs (StorableResult handle) Source #

handleMarconiQuery :: (LastMember IO effs, Member (State ChainIndexIndexers) effs, StorableMonad handle ~ IO, HasPoint (StorableEvent handle) (StorablePoint handle), Ord (StorablePoint handle), Queryable handle) => Lens' ChainIndexIndexers (State handle) -> MarconiEffect handle ~> Eff effs Source #

getUtxoSetAtAddress :: forall effs. Member (MarconiEffect UtxoHandle) effs => PageQuery TxOutRef -> CardanoAddress -> Eff effs UtxosResponse Source #

getUtxoEvents Source #

Arguments

:: [CardanoTx] 
-> ChainPoint 
-> StorableEvent UtxoHandle

UtxoEvents are stored in storage after conversion to UtxoRow

data RunRequirements Source #

The required arguments to run the chain index effects.

Constructors

RunRequirements 

Fields

handleControl :: (LastMember IO effs, Member (State ChainIndexIndexers) effs, Member (Error ChainIndexError) effs) => ChainIndexControlEffect ~> Eff effs Source #

handleQuery :: (LastMember IO effs, Member (State ChainIndexIndexers) effs, Member (Error ChainIndexError) effs) => ChainIndexQueryEffect ~> Eff effs Source #

handleChainIndexEffects :: (LastMember IO effs, Member (Reader ChainIndexIndexersMVar) effs) => Eff (ChainIndexQueryEffect ': (ChainIndexControlEffect ': effs)) a -> Eff effs (Either ChainIndexError a) Source #

Handle the chain index effects from the set of all effects.