| Copyright | (c) 2023 GYELD GMBH |
|---|---|
| License | Apache 2.0 |
| Maintainer | [email protected] |
| Stability | develop |
| Safe Haskell | None |
| Language | GHC2021 |
GeniusYield.Providers.Kupo
Description
Synopsis
- data KupoApiEnv
- newKupoApiEnv :: String -> IO KupoApiEnv
- kupoLookupDatum :: KupoApiEnv -> GYLookupDatum
- kupoLookupScript :: KupoApiEnv -> GYScriptHash -> IO (Maybe GYAnyScript)
- kupoQueryUtxo :: KupoApiEnv -> GYQueryUTxO
- kupoAwaitTxConfirmed :: KupoApiEnv -> GYAwaitTx
- data KupoProviderException
Documentation
data KupoApiEnv #
Kupo api env.
newKupoApiEnv :: String -> IO KupoApiEnv #
Returns a new KupoApiEnv given the base url to query from.
kupoLookupDatum :: KupoApiEnv -> GYLookupDatum #
Given a GYDatumHash returns the corresponding GYDatum if found.
kupoLookupScript :: KupoApiEnv -> GYScriptHash -> IO (Maybe GYAnyScript) #
Given a GYScriptHash returns the corresponding GYScript if found.
kupoQueryUtxo :: KupoApiEnv -> GYQueryUTxO #
Definition of GYQueryUTxO for the Kupo provider.
data KupoProviderException #
Exceptions.
Constructors
| KupoApiError !Text !ClientError | Error from the Kupo API. |
| KupoAbsurdResponse !Text | Received an absurd response from Kupo. This shouldn't ever happen. |
Instances
| Exception KupoProviderException # | |
Defined in GeniusYield.Providers.Kupo | |
| Show KupoProviderException # | |
Defined in GeniusYield.Providers.Kupo Methods showsPrec :: Int -> KupoProviderException -> ShowS # show :: KupoProviderException -> String # showList :: [KupoProviderException] -> ShowS # | |
| Eq KupoProviderException # | |
Defined in GeniusYield.Providers.Kupo Methods (==) :: KupoProviderException -> KupoProviderException -> Bool # (/=) :: KupoProviderException -> KupoProviderException -> Bool # | |