Copyright | (c) 2023 GYELD GMBH |
---|---|
License | Apache 2.0 |
Maintainer | [email protected] |
Stability | develop |
Safe Haskell | None |
Language | GHC2021 |
GeniusYield.Providers.Maestro
Description
Synopsis
- networkIdToMaestroEnv :: Text -> GYNetworkId -> IO (MaestroEnv 'V1)
- maestroSubmitTx :: Bool -> MaestroEnv 'V1 -> GYSubmitTx
- maestroAwaitTxConfirmed :: MaestroEnv 'V1 -> GYAwaitTx
- maestroGetSlotOfCurrentBlock :: MaestroEnv 'V1 -> IO GYSlot
- utxoFromMaestro :: IsUtxo a => a -> Either SomeDeserializeError GYUTxO
- maestroQueryUtxo :: MaestroEnv 'V1 -> GYQueryUTxO
- maestroProtocolParams :: MaestroEnv 'V1 -> IO ApiProtocolParameters
- maestroStakePools :: MaestroEnv 'V1 -> IO (Set PoolId)
- maestroSystemStart :: MaestroEnv 'V1 -> IO SystemStart
- maestroEraHistory :: MaestroEnv 'V1 -> IO EraHistory
- maestroLookupDatum :: MaestroEnv 'V1 -> GYLookupDatum
- maestroUtxosAtAddressesWithDatums :: MaestroEnv 'V1 -> [GYAddress] -> IO [(GYUTxO, Maybe GYDatum)]
- maestroUtxosAtPaymentCredentialsWithDatums :: MaestroEnv 'V1 -> [GYPaymentCredential] -> IO [(GYUTxO, Maybe GYDatum)]
- maestroStakeAddressInfo :: MaestroEnv 'V1 -> GYStakeAddress -> IO (Maybe GYStakeAddressInfo)
- maestroDRepState :: MaestroEnv 'V1 -> GYCredential 'GYKeyRoleDRep -> IO (Maybe GYDRepState)
- maestroDRepsState :: MaestroEnv 'V1 -> Set (GYCredential 'GYKeyRoleDRep) -> IO (Map (GYCredential 'GYKeyRoleDRep) (Maybe GYDRepState))
- maestroConstitution :: MaestroEnv 'V1 -> IO GYConstitution
- maestroProposals :: MaestroEnv 'V1 -> Set GYGovActionId -> IO (Seq GYGovActionState)
- maestroMempoolTxs :: MaestroEnv 'V1 -> IO [GYTx]
Documentation
networkIdToMaestroEnv :: Text -> GYNetworkId -> IO (MaestroEnv 'V1) #
Convert our representation of Network ID to Maestro's.
maestroSubmitTx :: Bool -> MaestroEnv 'V1 -> GYSubmitTx #
Submits a GYTx
.
maestroAwaitTxConfirmed :: MaestroEnv 'V1 -> GYAwaitTx #
Awaits for the confirmation of a given GYTxId
maestroGetSlotOfCurrentBlock :: MaestroEnv 'V1 -> IO GYSlot #
Returns the current GYSlot
.
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.
maestroProtocolParams :: MaestroEnv 'V1 -> IO ApiProtocolParameters #
Returns the ApiProtocolParameters
queried from Maestro.
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.
maestroStakeAddressInfo :: MaestroEnv 'V1 -> GYStakeAddress -> IO (Maybe GYStakeAddressInfo) #
Returns the GYStakeAddressInfo
queried from Maestro.
maestroDRepState :: MaestroEnv 'V1 -> GYCredential 'GYKeyRoleDRep -> IO (Maybe GYDRepState) #
maestroDRepsState :: MaestroEnv 'V1 -> Set (GYCredential 'GYKeyRoleDRep) -> IO (Map (GYCredential 'GYKeyRoleDRep) (Maybe GYDRepState)) #
maestroConstitution :: MaestroEnv 'V1 -> IO GYConstitution #
maestroProposals :: MaestroEnv 'V1 -> Set GYGovActionId -> IO (Seq GYGovActionState) #
maestroMempoolTxs :: MaestroEnv 'V1 -> IO [GYTx] #