{-# LANGUAGE DataKinds #-} {-# LANGUAGE DerivingStrategies #-} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE UndecidableInstances #-} {-# OPTIONS_GHC -Wno-orphans #-} module Cardano.Ledger.Babbage.Rules.Bbody () where import Cardano.Ledger.Allegra.Rules (AllegraUtxoPredFailure) import Cardano.Ledger.Alonzo.Rules ( AlonzoBbodyPredFailure (..), AlonzoUtxoPredFailure, AlonzoUtxosPredFailure, AlonzoUtxowPredFailure, ) import Cardano.Ledger.Babbage.Era (BabbageEra) import Cardano.Ledger.Babbage.Rules.Ledgers () import Cardano.Ledger.Babbage.Rules.Utxo (BabbageUtxoPredFailure) import Cardano.Ledger.Babbage.Rules.Utxow (BabbageUtxowPredFailure) import Cardano.Ledger.Core import Cardano.Ledger.Shelley.Rules ( ShelleyBbodyPredFailure (..), ShelleyDelegPredFailure, ShelleyDelegsPredFailure, ShelleyDelplPredFailure, ShelleyLedgerPredFailure, ShelleyLedgersPredFailure, ShelleyPoolPredFailure, ShelleyPpupPredFailure, ShelleyUtxoPredFailure, ShelleyUtxowPredFailure, ) type instance EraRuleFailure "BBODY" BabbageEra = AlonzoBbodyPredFailure BabbageEra instance InjectRuleFailure "BBODY" AlonzoBbodyPredFailure BabbageEra instance InjectRuleFailure "BBODY" ShelleyBbodyPredFailure BabbageEra where injectFailure :: ShelleyBbodyPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure instance InjectRuleFailure "BBODY" ShelleyLedgersPredFailure BabbageEra where injectFailure :: ShelleyLedgersPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure instance InjectRuleFailure "BBODY" ShelleyLedgerPredFailure BabbageEra where injectFailure :: ShelleyLedgerPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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 "BBODY" BabbageUtxowPredFailure BabbageEra where injectFailure :: BabbageUtxowPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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 "BBODY" AlonzoUtxowPredFailure BabbageEra where injectFailure :: AlonzoUtxowPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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 "BBODY" ShelleyUtxowPredFailure BabbageEra where injectFailure :: ShelleyUtxowPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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 "BBODY" BabbageUtxoPredFailure BabbageEra where injectFailure :: BabbageUtxoPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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 "BBODY" AlonzoUtxoPredFailure BabbageEra where injectFailure :: AlonzoUtxoPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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 "BBODY" AlonzoUtxosPredFailure BabbageEra where injectFailure :: AlonzoUtxosPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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 "BBODY" ShelleyPpupPredFailure BabbageEra where injectFailure :: ShelleyPpupPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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 "BBODY" ShelleyUtxoPredFailure BabbageEra where injectFailure :: ShelleyUtxoPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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 "BBODY" AllegraUtxoPredFailure BabbageEra where injectFailure :: AllegraUtxoPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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 "BBODY" ShelleyDelegsPredFailure BabbageEra where injectFailure :: ShelleyDelegsPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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 "BBODY" ShelleyDelplPredFailure BabbageEra where injectFailure :: ShelleyDelplPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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 "BBODY" ShelleyPoolPredFailure BabbageEra where injectFailure :: ShelleyPoolPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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 "BBODY" ShelleyDelegPredFailure BabbageEra where injectFailure :: ShelleyDelegPredFailure BabbageEra -> EraRuleFailure "BBODY" BabbageEra injectFailure = forall era. ShelleyBbodyPredFailure era -> AlonzoBbodyPredFailure era ShelleyInAlonzoBbodyPredFailure forall b c a. (b -> c) -> (a -> b) -> a -> c . forall era. PredicateFailure (EraRule "LEDGERS" era) -> ShelleyBbodyPredFailure era LedgersFailure 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