-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add public module
Cardano.Write.Eras
- Loading branch information
1 parent
d214485
commit f628e28
Showing
3 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
-- | | ||
-- Copyright: © 2024 Cardano Foundation | ||
-- License: Apache-2.0 | ||
-- | ||
module Cardano.Write.Eras | ||
( | ||
-- * Eras | ||
Babbage | ||
, Conway | ||
|
||
-- ** RecentEra | ||
, RecentEra (..) | ||
, IsRecentEra (..) | ||
, CardanoApiEra | ||
, toRecentEra | ||
, fromRecentEra | ||
, MaybeInRecentEra (..) | ||
, LatestLedgerEra | ||
, RecentEraConstraints | ||
, allRecentEras | ||
|
||
-- ** Existential wrapper | ||
, AnyRecentEra (..) | ||
, toAnyCardanoEra | ||
, fromAnyCardanoEra | ||
|
||
-- ** Helpers for cardano-api compatibility | ||
, cardanoEra | ||
, shelleyBasedEra | ||
, CardanoApi.ShelleyLedgerEra | ||
, cardanoEraFromRecentEra | ||
, shelleyBasedEraFromRecentEra | ||
) where | ||
|
||
import Cardano.Ledger.Api | ||
( Babbage | ||
, Conway | ||
) | ||
import Internal.Cardano.Write.Eras | ||
( AnyRecentEra (..) | ||
, CardanoApi.ShelleyLedgerEra | ||
, CardanoApiEra | ||
, IsRecentEra (..) | ||
, LatestLedgerEra | ||
, MaybeInRecentEra (..) | ||
, RecentEra (..) | ||
, RecentEraConstraints | ||
, allRecentEras | ||
, cardanoEra | ||
, cardanoEraFromRecentEra | ||
, fromAnyCardanoEra | ||
, fromRecentEra | ||
, shelleyBasedEra | ||
, shelleyBasedEraFromRecentEra | ||
, toAnyCardanoEra | ||
, toRecentEra | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters