Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | support@geniusyield.co |
Stability | develop |
Safe Haskell | None |
Language | Haskell2010 |
GeniusYield.Providers.Maestro
Description
Synopsis
- data MaestroApiEnv = MaestroApiEnv !ClientEnv !Text
- newMaestroApiEnv ∷ String → Text → IO MaestroApiEnv
- maestroSubmitTx ∷ MaestroApiEnv → GYSubmitTx
- maestroSlotActions ∷ MaestroApiEnv → GYSlotActions
- maestroGetCurrentSlot ∷ MaestroApiEnv → IO GYSlot
- maestroQueryUtxo ∷ MaestroApiEnv → GYQueryUTxO
- maestroRefsAtAddress ∷ MaestroApiEnv → GYAddress → IO [GYTxOutRef]
- maestroProtocolParams ∷ MaestroApiEnv → IO ProtocolParameters
- maestroStakePools ∷ MaestroApiEnv → IO (Set PoolId)
- maestroSystemStart ∷ MaestroApiEnv → IO SystemStart
- maestroEraHistory ∷ MaestroApiEnv → IO (EraHistory CardanoMode)
- maestroLookupDatum ∷ MaestroApiEnv → GYLookupDatum
- networkIdToMaestroUrl ∷ GYNetworkId → String
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.
maestroSubmitTx ∷ MaestroApiEnv → GYSubmitTx #
Submits a GYTx
.
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.