Skip to content

Commit

Permalink
Delete:
Browse files Browse the repository at this point in the history
* AnyByronEraOnly
* AnyByronToAllegraEra
* AnyByronToMaryEra
* AnyByronToAlonzoEra
* AnyShelleyToAllegraEra
* AnyShelleyToMaryEra
* AnyShelleyToAlonzoEra
* AnyShelleyToBabbageEra
* AnyShelleyBasedEra
* AnyMaryEraOnwards
* AnyAlonzoEraOnly
* AnyAlonzoEraOnwards
* AnyBabbageEraOnwards
* AnyConwayEraOnwards
  • Loading branch information
newhoggy committed Sep 28, 2023
1 parent b9d61fe commit b25597c
Show file tree
Hide file tree
Showing 14 changed files with 0 additions and 91 deletions.
6 changes: 0 additions & 6 deletions cardano-api/internal/Cardano/Api/Eon/AlonzoEraOnly.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

module Cardano.Api.Eon.AlonzoEraOnly
( AlonzoEraOnly(..)
, AnyAlonzoEraOnly(..)
, alonzoEraOnlyConstraints
, alonzoEraOnlyToCardanoEra
, alonzoEraOnlyToShelleyBasedEra
Expand Down Expand Up @@ -58,11 +57,6 @@ instance ToCardanoEra AlonzoEraOnly where
toCardanoEra = \case
AlonzoEraOnlyAlonzo -> AlonzoEra

data AnyAlonzoEraOnly where
AnyAlonzoEraOnly :: AlonzoEraOnly era -> AnyAlonzoEraOnly

deriving instance Show AnyAlonzoEraOnly

type AlonzoEraOnlyConstraints era =
( C.HashAlgorithm (L.HASH (L.EraCrypto (ShelleyLedgerEra era)))
, C.Signable (L.VRF (L.EraCrypto (ShelleyLedgerEra era))) L.Seed
Expand Down
6 changes: 0 additions & 6 deletions cardano-api/internal/Cardano/Api/Eon/AlonzoEraOnwards.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

module Cardano.Api.Eon.AlonzoEraOnwards
( AlonzoEraOnwards(..)
, AnyAlonzoEraOnwards(..)
, alonzoEraOnwardsConstraints
, alonzoEraOnwardsToCardanoEra
, alonzoEraOnwardsToShelleyBasedEra
Expand Down Expand Up @@ -62,11 +61,6 @@ instance ToCardanoEra AlonzoEraOnwards where
AlonzoEraOnwardsBabbage -> BabbageEra
AlonzoEraOnwardsConway -> ConwayEra

data AnyAlonzoEraOnwards where
AnyAlonzoEraOnwards :: AlonzoEraOnwards era -> AnyAlonzoEraOnwards

deriving instance Show AnyAlonzoEraOnwards

type AlonzoEraOnwardsConstraints era =
( C.HashAlgorithm (L.HASH (L.EraCrypto (ShelleyLedgerEra era)))
, C.Signable (L.VRF (L.EraCrypto (ShelleyLedgerEra era))) L.Seed
Expand Down
6 changes: 0 additions & 6 deletions cardano-api/internal/Cardano/Api/Eon/BabbageEraOnwards.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

module Cardano.Api.Eon.BabbageEraOnwards
( BabbageEraOnwards(..)
, AnyBabbageEraOnwards(..)
, babbageEraOnwardsConstraints
, babbageEraOnwardsToCardanoEra
, babbageEraOnwardsToShelleyBasedEra
Expand Down Expand Up @@ -60,11 +59,6 @@ instance ToCardanoEra BabbageEraOnwards where
BabbageEraOnwardsBabbage -> BabbageEra
BabbageEraOnwardsConway -> ConwayEra

data AnyBabbageEraOnwards where
AnyBabbageEraOnwards :: BabbageEraOnwards era -> AnyBabbageEraOnwards

deriving instance Show AnyBabbageEraOnwards

type BabbageEraOnwardsConstraints era =
( C.HashAlgorithm (L.HASH (L.EraCrypto (ShelleyLedgerEra era)))
, C.Signable (L.VRF (L.EraCrypto (ShelleyLedgerEra era))) L.Seed
Expand Down
6 changes: 0 additions & 6 deletions cardano-api/internal/Cardano/Api/Eon/ByronEraOnly.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

module Cardano.Api.Eon.ByronEraOnly
( ByronEraOnly(..)
, AnyByronEraOnly(..)
, byronEraOnlyConstraints
, byronEraOnlyToCardanoEra

Expand Down Expand Up @@ -39,11 +38,6 @@ instance ToCardanoEra ByronEraOnly where
toCardanoEra = \case
ByronEraOnlyByron -> ByronEra

data AnyByronEraOnly where
AnyByronEraOnly :: ByronEraOnly era -> AnyByronEraOnly

deriving instance Show AnyByronEraOnly

type ByronEraOnlyConstraints era =
( IsCardanoEra era
, Typeable era
Expand Down
6 changes: 0 additions & 6 deletions cardano-api/internal/Cardano/Api/Eon/ByronToAllegraEra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
module Cardano.Api.Eon.ByronToAllegraEra
( ByronToAllegraEra(..)
, IsByronToAllegraEra(..)
, AnyByronToAllegraEra(..)
, byronToAllegraEraConstraints
, byronToAllegraEraToCardanoEra

Expand Down Expand Up @@ -63,11 +62,6 @@ type ByronToAllegraEraConstraints era =
, Typeable era
)

data AnyByronToAllegraEra where
AnyByronToAllegraEra :: ByronToAllegraEra era -> AnyByronToAllegraEra

deriving instance Show AnyByronToAllegraEra

byronToAllegraEraConstraints :: ()
=> ByronToAllegraEra era
-> (ByronToAllegraEraConstraints era => a)
Expand Down
6 changes: 0 additions & 6 deletions cardano-api/internal/Cardano/Api/Eon/ByronToAlonzoEra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
module Cardano.Api.Eon.ByronToAlonzoEra
( ByronToAlonzoEra(..)
, IsByronToAlonzoEra(..)
, AnyByronToAlonzoEra(..)
, byronToAlonzoEraConstraints
, byronToAlonzoEraToCardanoEra

Expand Down Expand Up @@ -73,11 +72,6 @@ type ByronToAlonzoEraConstraints era =
, Typeable era
)

data AnyByronToAlonzoEra where
AnyByronToAlonzoEra :: ByronToAlonzoEra era -> AnyByronToAlonzoEra

deriving instance Show AnyByronToAlonzoEra

byronToAlonzoEraConstraints :: ()
=> ByronToAlonzoEra era
-> (ByronToAlonzoEraConstraints era => a)
Expand Down
6 changes: 0 additions & 6 deletions cardano-api/internal/Cardano/Api/Eon/ByronToMaryEra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
module Cardano.Api.Eon.ByronToMaryEra
( ByronToMaryEra(..)
, IsByronToMaryEra(..)
, AnyByronToMaryEra(..)
, byronToMaryEraConstraints
, byronToMaryEraToCardanoEra

Expand Down Expand Up @@ -68,11 +67,6 @@ type ByronToMaryEraConstraints era =
, Typeable era
)

data AnyByronToMaryEra where
AnyByronToMaryEra :: ByronToMaryEra era -> AnyByronToMaryEra

deriving instance Show AnyByronToMaryEra

byronToMaryEraConstraints :: ()
=> ByronToMaryEra era
-> (ByronToMaryEraConstraints era => a)
Expand Down
6 changes: 0 additions & 6 deletions cardano-api/internal/Cardano/Api/Eon/ConwayEraOnwards.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

module Cardano.Api.Eon.ConwayEraOnwards
( ConwayEraOnwards(..)
, AnyConwayEraOnwards(..)
, conwayEraOnwardsConstraints
, conwayEraOnwardsToCardanoEra
, conwayEraOnwardsToShelleyBasedEra
Expand Down Expand Up @@ -60,11 +59,6 @@ instance ToCardanoEra ConwayEraOnwards where
toCardanoEra = \case
ConwayEraOnwardsConway -> ConwayEra

data AnyConwayEraOnwards where
AnyConwayEraOnwards :: ConwayEraOnwards era -> AnyConwayEraOnwards

deriving instance Show AnyConwayEraOnwards

type ConwayEraOnwardsConstraints era =
( C.HashAlgorithm (L.HASH (L.EraCrypto (ShelleyLedgerEra era)))
, C.Signable (L.VRF (L.EraCrypto (ShelleyLedgerEra era))) L.Seed
Expand Down
6 changes: 0 additions & 6 deletions cardano-api/internal/Cardano/Api/Eon/MaryEraOnwards.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
module Cardano.Api.Eon.MaryEraOnwards
( MaryEraOnwards(..)
, IsMaryEraOnwards(..)
, AnyMaryEraOnwards(..)
, maryEraOnwardsConstraints
, maryEraOnwardsToCardanoEra
, maryEraOnwardsToShelleyBasedEra
Expand Down Expand Up @@ -81,11 +80,6 @@ instance ToCardanoEra MaryEraOnwards where
MaryEraOnwardsBabbage -> BabbageEra
MaryEraOnwardsConway -> ConwayEra

data AnyMaryEraOnwards where
AnyMaryEraOnwards :: MaryEraOnwards era -> AnyMaryEraOnwards

deriving instance Show AnyMaryEraOnwards

type MaryEraOnwardsConstraints era =
( C.HashAlgorithm (L.HASH (L.EraCrypto (ShelleyLedgerEra era)))
, C.Signable (L.VRF (L.EraCrypto (ShelleyLedgerEra era))) L.Seed
Expand Down
6 changes: 0 additions & 6 deletions cardano-api/internal/Cardano/Api/Eon/ShelleyToAllegraEra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

module Cardano.Api.Eon.ShelleyToAllegraEra
( ShelleyToAllegraEra(..)
, AnyShelleyToAllegraEra(..)
, shelleyToAllegraEraConstraints
, shelleyToAllegraEraToCardanoEra
, shelleyToAllegraEraToShelleyBasedEra
Expand Down Expand Up @@ -91,11 +90,6 @@ type ShelleyToAllegraEraConstraints era =
, Typeable era
)

data AnyShelleyToAllegraEra where
AnyShelleyToAllegraEra :: ShelleyToAllegraEra era -> AnyShelleyToAllegraEra

deriving instance Show AnyShelleyToAllegraEra

shelleyToAllegraEraConstraints :: ()
=> ShelleyToAllegraEra era
-> (ShelleyToAllegraEraConstraints era => a)
Expand Down
6 changes: 0 additions & 6 deletions cardano-api/internal/Cardano/Api/Eon/ShelleyToAlonzoEra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

module Cardano.Api.Eon.ShelleyToAlonzoEra
( ShelleyToAlonzoEra(..)
, AnyShelleyToAlonzoEra(..)
, shelleyToAlonzoEraConstraints
, shelleyToAlonzoEraToCardanoEra
, shelleyToAlonzoEraToShelleyBasedEra
Expand Down Expand Up @@ -92,11 +91,6 @@ type ShelleyToAlonzoEraConstraints era =
, Typeable era
)

data AnyShelleyToAlonzoEra where
AnyShelleyToAlonzoEra :: ShelleyToAlonzoEra era -> AnyShelleyToAlonzoEra

deriving instance Show AnyShelleyToAlonzoEra

shelleyToAlonzoEraConstraints :: ()
=> ShelleyToAlonzoEra era
-> (ShelleyToAlonzoEraConstraints era => a)
Expand Down
6 changes: 0 additions & 6 deletions cardano-api/internal/Cardano/Api/Eon/ShelleyToBabbageEra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

module Cardano.Api.Eon.ShelleyToBabbageEra
( ShelleyToBabbageEra(..)
, AnyShelleyToBabbageEra(..)
, shelleyToBabbageEraConstraints
, shelleyToBabbageEraToCardanoEra
, shelleyToBabbageEraToShelleyBasedEra
Expand Down Expand Up @@ -93,11 +92,6 @@ type ShelleyToBabbageEraConstraints era =
, Typeable era
)

data AnyShelleyToBabbageEra where
AnyShelleyToBabbageEra :: ShelleyToBabbageEra era -> AnyShelleyToBabbageEra

deriving instance Show AnyShelleyToBabbageEra

shelleyToBabbageEraConstraints :: ()
=> ShelleyToBabbageEra era
-> (ShelleyToBabbageEraConstraints era => a)
Expand Down
6 changes: 0 additions & 6 deletions cardano-api/internal/Cardano/Api/Eon/ShelleyToMaryEra.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

module Cardano.Api.Eon.ShelleyToMaryEra
( ShelleyToMaryEra(..)
, AnyShelleyToMaryEra(..)
, shelleyToMaryEraConstraints
, shelleyToMaryEraToCardanoEra
, shelleyToMaryEraToShelleyBasedEra
Expand Down Expand Up @@ -91,11 +90,6 @@ type ShelleyToMaryEraConstraints era =
, Typeable era
)

data AnyShelleyToMaryEra where
AnyShelleyToMaryEra :: ShelleyToMaryEra era -> AnyShelleyToMaryEra

deriving instance Show AnyShelleyToMaryEra

shelleyToMaryEraConstraints :: ()
=> ShelleyToMaryEra era
-> (ShelleyToMaryEraConstraints era => a)
Expand Down
13 changes: 0 additions & 13 deletions cardano-api/src/Cardano/Api.hs
Original file line number Diff line number Diff line change
Expand Up @@ -48,50 +48,42 @@ module Cardano.Api (
-- ** From Byron

ByronEraOnly(..),
AnyByronEraOnly(..),
byronEraOnlyConstraints,
byronEraOnlyToCardanoEra,

ByronToAllegraEra(..),
IsByronToAllegraEra(..),
AnyByronToAllegraEra(..),
byronToAllegraEraConstraints,
byronToAllegraEraToCardanoEra,

ByronToMaryEra(..),
IsByronToMaryEra(..),
AnyByronToMaryEra(..),
byronToMaryEraConstraints,
byronToMaryEraToCardanoEra,

ByronToAlonzoEra(..),
IsByronToAlonzoEra(..),
AnyByronToAlonzoEra(..),
byronToAlonzoEraConstraints,
byronToAlonzoEraToCardanoEra,

-- ** From Shelley

ShelleyToAllegraEra(..),
AnyShelleyToAllegraEra(..),
shelleyToAllegraEraConstraints,
shelleyToAllegraEraToCardanoEra,
shelleyToAllegraEraToShelleyBasedEra,

ShelleyToMaryEra(..),
AnyShelleyToMaryEra(..),
shelleyToMaryEraConstraints,
shelleyToMaryEraToCardanoEra,
shelleyToMaryEraToShelleyBasedEra,

ShelleyToAlonzoEra(..),
AnyShelleyToAlonzoEra(..),
shelleyToAlonzoEraConstraints,
shelleyToAlonzoEraToCardanoEra,
shelleyToAlonzoEraToShelleyBasedEra,

ShelleyToBabbageEra(..),
AnyShelleyToBabbageEra(..),
shelleyToBabbageEraConstraints,
shelleyToBabbageEraToCardanoEra,
shelleyToBabbageEraToShelleyBasedEra,
Expand All @@ -110,37 +102,32 @@ module Cardano.Api (

-- ** From Mary
MaryEraOnwards(..),
AnyMaryEraOnwards(..),
maryEraOnwardsConstraints,
maryEraOnwardsToCardanoEra,
maryEraOnwardsToShelleyBasedEra,

-- ** From Alonzo

AlonzoEraOnly(..),
AnyAlonzoEraOnly(..),
alonzoEraOnlyConstraints,
alonzoEraOnlyToCardanoEra,
alonzoEraOnlyToShelleyBasedEra,

AlonzoEraOnwards(..),
AnyAlonzoEraOnwards(..),
alonzoEraOnwardsConstraints,
alonzoEraOnwardsToCardanoEra,
alonzoEraOnwardsToShelleyBasedEra,

-- ** From Babbage

BabbageEraOnwards(..),
AnyBabbageEraOnwards(..),
babbageEraOnwardsConstraints,
babbageEraOnwardsToCardanoEra,
babbageEraOnwardsToShelleyBasedEra,

-- ** From Conway

ConwayEraOnwards(..),
AnyConwayEraOnwards(..),
conwayEraOnwardsConstraints,
conwayEraOnwardsToCardanoEra,
conwayEraOnwardsToShelleyBasedEra,
Expand Down

0 comments on commit b25597c

Please sign in to comment.