atlas-cardano
Copyright(c) 2025 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellNone
LanguageGHC2021

GeniusYield.Providers.CacheMempool

Description

 
Synopsis

Documentation

augmentQueryUTxOWithMempool #

Arguments

:: GYQueryUTxO

The query to augment.

-> IO [GYTx]

The function to fetch mempool transactions.

-> NominalDiffTime

The interval to cache the mempool transactions so as to avoid querying mempool with high frequency.

-> IO GYQueryUTxO 

Augment the query with mempool transactions.

augmentQueryUTxO #

Arguments

:: GYQueryUTxO

The query to augment.

-> a

Placeholder for a particular data store.

-> (a -> IO (Map GYTxOutRef (GYUTxO, Maybe GYDatum)))

Function fetch outputs (modulo inputs) from the data store.

-> GYQueryUTxO 

Augment the query with mempool transactions.

splitTxsInsOuts :: [GYTx] -> (Set GYTxOutRef, Map GYTxOutRef (GYUTxO, Maybe GYDatum)) #

Split the transactions into inputs & outputs.