atlas-cardano-0.5.0: Application backend for Plutus smart contracts on Cardano
Copyright(c) 2023 GYELD GMBH
LicenseApache 2.0
Maintainer[email protected]
Stabilitydevelop
Safe HaskellSafe-Inferred
LanguageGHC2021

GeniusYield.CardanoApi.EraHistory

Description

 
Synopsis

Documentation

extractEraSummariesEraHistory CardanoModeSummary (CardanoEras StandardCrypto) #

Extract the Summary from Cardano EraHistory.

This is safe as long as Ouroboros.Interpeter is defined as a newtype to Ouroboros.Summary.

TODO: Can we ensure at runtime, that Interpreter is still a newtype to Summary? #20 (https:/github.comgeniusyieldatlasissues/20)

showEraSummariesEraHistory CardanoModeString #

Extract and show the era summaries with all its details, useful for manually constructing EraHistory.

See: "GeniusYield.Providers.Common.preprodEraHist"

getEraEndSlotEraHistory CardanoModeMaybe SlotNo #

Get the slot after which the current era ends.