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

Description

 
Synopsis

Documentation

newServantClientEnvStringIO ClientEnv #

Creates a new Servant ClientEnv from a base url.

parseEraHist ∷ (t → EraSummary) → [t] → Maybe (EraHistory CardanoMode) #

Convert a regular list of era summaries (a la Ogmios) into a typed EraHistory (a la Ouroboros).

NOTE ==

This must be updated with each hardfork.

See NonEmptyConsSummaryCardanoEras types to understand why one cannot trivially automate this.

Well, unless one uses vectors, from dependent type land.

babbageProtocolVersionNatural #

Hardcoded babbage protocol Version

preprodEraHist ∷ Interpreter (CardanoEras StandardCrypto) #

Hardcoded era history for preprod. FIXME: Remove this hack; https://github.com/geniusyield/Core/issues/433

See: "GeniusYield.CardanoApi.EraHistory.showEraHistory"

previewEraHist ∷ Interpreter (CardanoEras StandardCrypto) #

mainnetEraHist ∷ Interpreter (CardanoEras StandardCrypto) #

silenceHeadersClientError ∷ ClientError → ClientError #

Remove request headers info from returned ClientError.

This is used as quick and simple way to hide confidential information such as API token.