{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleContexts #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE MonoLocalBinds #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}
module Test.Cardano.Ledger.Shelley.TreeDiff (
module Test.Cardano.Ledger.TreeDiff,
) where
import Cardano.Ledger.AuxiliaryData
import Cardano.Ledger.BaseTypes
import Cardano.Ledger.CertState (Obligations)
import Cardano.Ledger.Core
import Cardano.Ledger.Shelley.AdaPots (AdaPots)
import Cardano.Ledger.Shelley.Governance
import Cardano.Ledger.Shelley.LedgerState
import Cardano.Ledger.Shelley.PParams
import Cardano.Ledger.Shelley.PoolRank
import Cardano.Ledger.Shelley.Rules
import Cardano.Ledger.Shelley.Scripts
import Cardano.Ledger.Shelley.Tx
import Cardano.Ledger.Shelley.TxAuxData
import Cardano.Ledger.Shelley.TxBody
import Cardano.Ledger.Shelley.TxCert
import Cardano.Ledger.Shelley.TxOut
import Cardano.Ledger.Shelley.TxWits
import Test.Cardano.Ledger.TreeDiff
instance ToExpr (PParamsUpdate era) => ToExpr (ProposedPPUpdates era)
instance ToExpr (ShelleyPParams StrictMaybe era)
instance ToExpr (ShelleyPParams Identity era)
instance ToExpr (PParamsUpdate era) => ToExpr (Update era)
instance ToExpr (MultiSigRaw era)
instance ToExpr (MultiSig era)
instance ToExpr Metadatum
instance ToExpr (ShelleyTxAuxDataRaw era)
instance ToExpr (ShelleyTxAuxData era)
instance ToExpr (PParams era) => ToExpr (FuturePParams era)
instance
( ToExpr (PParamsUpdate era)
, ToExpr (PParams era)
) =>
ToExpr (ShelleyGovState era)
instance ToExpr (GenesisDelegCert c)
instance ToExpr MIRPot
instance ToExpr (MIRTarget c)
instance ToExpr (MIRCert c)
instance ToExpr (ShelleyTxCert era)
instance ToExpr (ShelleyDelegCert c)
instance (Era era, ToExpr (Script era)) => ToExpr (ShelleyTxWits era)
instance (Era era, ToExpr (Script era)) => ToExpr (ShelleyTxWitsRaw era)
instance ToExpr VotingPeriod
instance ToExpr (ShelleyPpupPredFailure era)
instance (EraTxOut era, ToExpr (Value era)) => ToExpr (ShelleyTxOut era) where
toExpr :: ShelleyTxOut era -> Expr
toExpr (ShelleyTxOut Addr (EraCrypto era)
x Value era
y) = ConstructorName -> [Expr] -> Expr
App ConstructorName
"ShelleyTxOut" [forall a. ToExpr a => a -> Expr
toExpr Addr (EraCrypto era)
x, forall a. ToExpr a => a -> Expr
toExpr Value era
y]
instance
( ToExpr (TxOut era)
, ToExpr (TxCert era)
, ToExpr (Update era)
) =>
ToExpr (ShelleyTxBodyRaw era)
instance
( ToExpr (TxOut era)
, ToExpr (TxCert era)
, ToExpr (Update era)
) =>
ToExpr (ShelleyTxBody era)
instance ToExpr Likelihood
instance ToExpr LogWeight
instance ToExpr (NonMyopic c)
instance
( ToExpr (TxAuxData era)
, ToExpr (TxBody era)
, ToExpr (TxWits era)
) =>
ToExpr (ShelleyTxRaw era)
instance
( ToExpr (TxAuxData era)
, ToExpr (TxBody era)
, ToExpr (TxWits era)
) =>
ToExpr (ShelleyTx era)
instance ToExpr (PulsingRewUpdate c) where
toExpr :: PulsingRewUpdate c -> Expr
toExpr PulsingRewUpdate c
_ = ConstructorName -> [Expr] -> Expr
App ConstructorName
"PulsingRewUpdate..." []
instance ToExpr (RewardUpdate c)
instance ToExpr AccountState
instance
( ToExpr (TxOut era)
, ToExpr (PParams era)
, ToExpr (StashedAVVMAddresses era)
, ToExpr (GovState era)
) =>
ToExpr (NewEpochState era)
instance
( ToExpr (TxOut era)
, ToExpr (PParams era)
, ToExpr (GovState era)
) =>
ToExpr (EpochState era)
instance
( ToExpr (TxOut era)
, ToExpr (GovState era)
) =>
ToExpr (LedgerState era)
instance
( ToExpr (TxOut era)
, ToExpr (GovState era)
) =>
ToExpr (UTxOState era)
instance ToExpr (IncrementalStake c)
instance
( ToExpr (EraRuleFailure "PPUP" era)
, ToExpr (Value era)
, ToExpr (TxOut era)
) =>
ToExpr (ShelleyUtxoPredFailure era)
instance ToExpr (ShelleyPoolPredFailure era)
instance ToExpr (ShelleyDelegPredFailure era)
instance
( Era era
, ToExpr (PredicateFailure (EraRule "UTXO" era))
, ToExpr (AuxiliaryDataHash (EraCrypto era))
) =>
ToExpr (ShelleyUtxowPredFailure era)
instance
( ToExpr (PredicateFailure (EraRule "DELEG" era))
, ToExpr (PredicateFailure (EraRule "POOL" era))
) =>
ToExpr (ShelleyDelplPredFailure era)
instance
ToExpr (PredicateFailure (EraRule "DELPL" era)) =>
ToExpr (ShelleyDelegsPredFailure era)
instance
( ToExpr (PredicateFailure (EraRule "UTXOW" era))
, ToExpr (PredicateFailure (EraRule "DELEGS" era))
) =>
ToExpr (ShelleyLedgerPredFailure era)
instance ToExpr Obligations
instance ToExpr AdaPots
instance
( ToExpr (Event (EraRule "UTXOW" era))
, ToExpr (Event (EraRule "DELEGS" era))
) =>
ToExpr (ShelleyLedgerEvent era)
instance
ToExpr (Event (EraRule "UTXO" era)) =>
ToExpr (ShelleyUtxowEvent era)
instance
( ToExpr (Event (EraRule "PPUP" era))
, ToExpr (TxOut era)
) =>
ToExpr (UtxoEvent era)
instance ToExpr (PpupEvent era)
instance ToExpr (Event (EraRule "DELPL" era)) => ToExpr (ShelleyDelegsEvent era)
instance
( ToExpr (Event (EraRule "DELEG" era))
, ToExpr (Event (EraRule "POOL" era))
) =>
ToExpr (ShelleyDelplEvent era)
instance ToExpr (ShelleyDelegEvent era)
instance ToExpr (PoolEvent era)
instance ToExpr (PParamsHKD Identity era) => ToExpr (PoolEnv era)
instance
( ToExpr (Event (EraRule "NEWEPOCH" era))
, ToExpr (Event (EraRule "RUPD" era))
) =>
ToExpr (ShelleyTickEvent era)
instance ToExpr RewardType
instance ToExpr (Reward c)
instance
( ToExpr (Event (EraRule "EPOCH" era))
, ToExpr (Event (EraRule "MIR" era))
, ToExpr (Event (EraRule "RUPD" era))
) =>
ToExpr (ShelleyNewEpochEvent era)
instance
( ToExpr (Event (EraRule "POOLREAP" era))
, ToExpr (Event (EraRule "SNAP" era))
, ToExpr (Event (EraRule "UPEC" era))
) =>
ToExpr (ShelleyEpochEvent era)
instance ToExpr (ShelleyPoolreapEvent era)
instance ToExpr (SnapEvent era)
instance ToExpr (ShelleyMirEvent era)
instance ToExpr (RupdEvent era)
instance ToExpr (PParamsHKD Identity era) => ToExpr (UtxoEnv era)
instance ToExpr (PParamsHKD Identity era) => ToExpr (LedgerEnv era)
instance ToExpr (PParamsHKD Identity era) => ToExpr (ShelleyLedgersEnv era)
instance
ToExpr (PredicateFailure (EraRule "LEDGER" era)) =>
ToExpr (ShelleyLedgersPredFailure era)