{-# LANGUAGE DataKinds #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -Wno-orphans #-} module Cardano.Ledger.Conway.Rules.Ledgers () where import Cardano.Ledger.Allegra.Rules (AllegraUtxoPredFailure) import Cardano.Ledger.Alonzo.Rules ( AlonzoUtxoPredFailure, AlonzoUtxosPredFailure, AlonzoUtxowPredFailure, ) import Cardano.Ledger.Babbage.Rules (BabbageUtxoPredFailure, BabbageUtxowPredFailure) import Cardano.Ledger.Conway.Era (ConwayEra) import Cardano.Ledger.Conway.Rules.Cert (ConwayCertPredFailure) import Cardano.Ledger.Conway.Rules.Certs (ConwayCertsPredFailure) import Cardano.Ledger.Conway.Rules.Deleg (ConwayDelegPredFailure) import Cardano.Ledger.Conway.Rules.Gov (ConwayGovPredFailure) import Cardano.Ledger.Conway.Rules.GovCert (ConwayGovCertPredFailure) import Cardano.Ledger.Conway.Rules.Ledger (ConwayLedgerPredFailure) import Cardano.Ledger.Conway.Rules.Utxo (ConwayUtxoPredFailure) import Cardano.Ledger.Conway.Rules.Utxos (ConwayUtxosPredFailure) import Cardano.Ledger.Conway.Rules.Utxow (ConwayUtxowPredFailure) import Cardano.Ledger.Core import Cardano.Ledger.Shelley.Rules ( ShelleyLedgersEvent, ShelleyLedgersPredFailure (..), ShelleyPoolPredFailure, ShelleyUtxoPredFailure, ShelleyUtxowPredFailure, ) type instance EraRuleFailure "LEDGERS" ConwayEra = ShelleyLedgersPredFailure ConwayEra type instance EraRuleEvent "LEDGERS" ConwayEra = ShelleyLedgersEvent ConwayEra instance InjectRuleFailure "LEDGERS" ShelleyLedgersPredFailure ConwayEra instance InjectRuleFailure "LEDGERS" ConwayLedgerPredFailure ConwayEra where injectFailure :: ConwayLedgerPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure instance InjectRuleFailure "LEDGERS" ConwayUtxowPredFailure ConwayEra where injectFailure :: ConwayUtxowPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" BabbageUtxowPredFailure ConwayEra where injectFailure :: BabbageUtxowPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" AlonzoUtxowPredFailure ConwayEra where injectFailure :: AlonzoUtxowPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" ShelleyUtxowPredFailure ConwayEra where injectFailure :: ShelleyUtxowPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" ConwayUtxoPredFailure ConwayEra where injectFailure :: ConwayUtxoPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" BabbageUtxoPredFailure ConwayEra where injectFailure :: BabbageUtxoPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" AlonzoUtxoPredFailure ConwayEra where injectFailure :: AlonzoUtxoPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" AlonzoUtxosPredFailure ConwayEra where injectFailure :: AlonzoUtxosPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" ConwayUtxosPredFailure ConwayEra where injectFailure :: ConwayUtxosPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" ShelleyUtxoPredFailure ConwayEra where injectFailure :: ShelleyUtxoPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" AllegraUtxoPredFailure ConwayEra where injectFailure :: AllegraUtxoPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" ConwayCertsPredFailure ConwayEra where injectFailure :: ConwayCertsPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" ConwayCertPredFailure ConwayEra where injectFailure :: ConwayCertPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" ConwayDelegPredFailure ConwayEra where injectFailure :: ConwayDelegPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" ShelleyPoolPredFailure ConwayEra where injectFailure :: ShelleyPoolPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" ConwayGovCertPredFailure ConwayEra where injectFailure :: ConwayGovCertPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure instance InjectRuleFailure "LEDGERS" ConwayGovPredFailure ConwayEra where injectFailure :: ConwayGovPredFailure ConwayEra -> EraRuleFailure "LEDGERS" ConwayEra injectFailure = forall era. PredicateFailure (EraRule "LEDGER" era) -> ShelleyLedgersPredFailure era LedgerFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall (rule :: Symbol) (t :: * -> *) era. InjectRuleFailure rule t era => t era -> EraRuleFailure rule era injectFailure