{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}
module Ouroboros.Consensus.Shelley.HFEras (
StandardAllegraBlock
, StandardAlonzoBlock
, StandardBabbageBlock
, StandardConwayBlock
, StandardMaryBlock
, StandardShelleyBlock
) where
import Cardano.Crypto.DSIGN (Signable)
import Cardano.Crypto.Hash (Hash)
import Cardano.Ledger.Crypto (DSIGN, HASH)
import Cardano.Ledger.Hashes (EraIndependentTxBody)
import Ouroboros.Consensus.Protocol.Praos (Praos)
import qualified Ouroboros.Consensus.Protocol.Praos as Praos
import Ouroboros.Consensus.Protocol.TPraos (StandardCrypto, TPraos)
import qualified Ouroboros.Consensus.Protocol.TPraos as TPraos
import Ouroboros.Consensus.Shelley.Eras (AllegraEra, AlonzoEra,
BabbageEra, ConwayEra, MaryEra, ShelleyEra,
StandardAllegra, StandardAlonzo, StandardBabbage,
StandardConway, StandardMary, StandardShelley)
import Ouroboros.Consensus.Shelley.Ledger.Block (ShelleyBlock,
ShelleyCompatible)
import Ouroboros.Consensus.Shelley.Ledger.Protocol ()
import Ouroboros.Consensus.Shelley.Protocol.Praos ()
import Ouroboros.Consensus.Shelley.Protocol.TPraos ()
import Ouroboros.Consensus.Shelley.ShelleyHFC ()
type StandardShelleyBlock = ShelleyBlock (TPraos StandardCrypto) StandardShelley
type StandardAllegraBlock = ShelleyBlock (TPraos StandardCrypto) StandardAllegra
type StandardMaryBlock = ShelleyBlock (TPraos StandardCrypto) StandardMary
type StandardAlonzoBlock = ShelleyBlock (TPraos StandardCrypto) StandardAlonzo
type StandardBabbageBlock = ShelleyBlock (Praos StandardCrypto) StandardBabbage
type StandardConwayBlock = ShelleyBlock (Praos StandardCrypto) StandardConway
instance
(TPraos.PraosCrypto c, Signable (DSIGN c) (Hash (HASH c) EraIndependentTxBody)) =>
ShelleyCompatible (TPraos c) (ShelleyEra c)
instance
(TPraos.PraosCrypto c, Signable (DSIGN c) (Hash (HASH c) EraIndependentTxBody)) =>
ShelleyCompatible (TPraos c) (AllegraEra c)
instance
(TPraos.PraosCrypto c, Signable (DSIGN c) (Hash (HASH c) EraIndependentTxBody)) =>
ShelleyCompatible (TPraos c) (MaryEra c)
instance
(TPraos.PraosCrypto c, Signable (DSIGN c) (Hash (HASH c) EraIndependentTxBody)) =>
ShelleyCompatible (TPraos c) (AlonzoEra c)
instance
(Praos.PraosCrypto c, TPraos.PraosCrypto c) =>
ShelleyCompatible (TPraos c) (BabbageEra c)
instance
(Praos.PraosCrypto c) => ShelleyCompatible (Praos c) (BabbageEra c)
instance
(Praos.PraosCrypto c, TPraos.PraosCrypto c) =>
ShelleyCompatible (TPraos c) (ConwayEra c)
instance
(Praos.PraosCrypto c) => ShelleyCompatible (Praos c) (ConwayEra c)