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.Maestro

Description

 
Synopsis

Documentation

data MaestroApiEnv #

The Maestro blockchain API env, containing the Servant client and the Maestro API key.

Constructors

MaestroApiEnv !ClientEnv !Text 

newMaestroApiEnv ∷ String → Text → IO MaestroApiEnv #

Returns a new MaestroApiEnv given the base URL to query and the API Token.

maestroSlotActions ∷ MaestroApiEnv → GYSlotActions #

Definition of GYSlotActions for the Maestro provider.

maestroGetCurrentSlot ∷ MaestroApiEnv → IO GYSlot #

Returns the current GYSlot.

maestroQueryUtxo ∷ MaestroApiEnv → GYQueryUTxO #

Definition of GYQueryUTxO for the Maestro provider.

maestroRefsAtAddress ∷ MaestroApiEnv → GYAddress → IO [GYTxOutRef] #

Returns a list containing all GYTxOutRef for a given GYAddress.

maestroProtocolParams ∷ MaestroApiEnv → IO ProtocolParameters #

Returns the ProtocolParameters queried from Maestro.

maestroStakePools ∷ MaestroApiEnv → IO (Set PoolId) #

Returns a set of all Stake Pool's PoolId.

maestroSystemStart ∷ MaestroApiEnv → IO SystemStart #

Returns the SystemStart queried from Maestro.

maestroEraHistory ∷ MaestroApiEnv → IO (EraHistory CardanoMode) #

Returns the EraHistory queried from Maestro.

maestroLookupDatum ∷ MaestroApiEnv → GYLookupDatum #

Given a GYDatumHash returns the corresponding GYDatum if found.

networkIdToMaestroUrl ∷ GYNetworkId → String #

Constructs the Maestro base URL from network id.