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

GeniusYield.Providers.Maestro

Description

 
Synopsis

Documentation

networkIdToMaestroEnv :: Text -> GYNetworkId -> IO (MaestroEnv 'V1) #

Convert our representation of Network ID to Maestro's.

maestroAwaitTxConfirmed :: MaestroEnv 'V1 -> GYAwaitTx #

Awaits for the confirmation of a given GYTxId

utxoFromMaestro :: IsUtxo a => a -> Either SomeDeserializeError GYUTxO #

Convert Maestro's UTxO to our GY type.

maestroQueryUtxo :: MaestroEnv 'V1 -> GYQueryUTxO #

Definition of GYQueryUTxO for the Maestro provider.

maestroStakePools :: MaestroEnv 'V1 -> IO (Set PoolId) #

Returns a set of all Stake Pool's PoolId.

maestroSystemStart :: MaestroEnv 'V1 -> IO SystemStart #

Returns the SystemStart queried from Maestro.

maestroEraHistory :: MaestroEnv 'V1 -> IO EraHistory #

Returns the EraHistory queried from Maestro.

maestroLookupDatum :: MaestroEnv 'V1 -> GYLookupDatum #

Given a GYDatumHash returns the corresponding GYDatum if found.

maestroUtxosAtAddressesWithDatums :: MaestroEnv 'V1 -> [GYAddress] -> IO [(GYUTxO, Maybe GYDatum)] #

Query UTxOs present at multiple addresses with datums.

maestroUtxosAtPaymentCredentialsWithDatums :: MaestroEnv 'V1 -> [GYPaymentCredential] -> IO [(GYUTxO, Maybe GYDatum)] #

Query UTxOs present at multiple payment credentials with datums.