{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}
module Cardano.Ledger.Babbage (
Babbage,
BabbageEra,
BabbageTxOut,
BabbageTxBody,
AlonzoScript,
AlonzoTxAuxData,
)
where
import Cardano.Ledger.Alonzo (reapplyAlonzoTx)
import Cardano.Ledger.Alonzo.Scripts (AlonzoScript (..))
import Cardano.Ledger.Alonzo.TxAuxData (AlonzoTxAuxData (..))
import Cardano.Ledger.Babbage.Core
import Cardano.Ledger.Babbage.Era (BabbageEra)
import Cardano.Ledger.Babbage.Rules ()
import Cardano.Ledger.Babbage.Transition ()
import Cardano.Ledger.Babbage.Translation ()
import Cardano.Ledger.Babbage.TxBody (BabbageTxBody, BabbageTxOut)
import Cardano.Ledger.Babbage.TxInfo ()
import Cardano.Ledger.Babbage.UTxO ()
import Cardano.Ledger.Crypto (Crypto, StandardCrypto)
import Cardano.Ledger.Keys (DSignable)
import Cardano.Ledger.Shelley.API
type Babbage = BabbageEra StandardCrypto
instance (Crypto c, DSignable c (Hash c EraIndependentTxBody)) => ApplyTx (BabbageEra c) where
reapplyTx :: forall (m :: * -> *).
MonadError (ApplyTxError (BabbageEra c)) m =>
Globals
-> LedgerEnv (BabbageEra c)
-> MempoolState (BabbageEra c)
-> Validated (Tx (BabbageEra c))
-> m (MempoolState (BabbageEra c))
reapplyTx = forall era (m :: * -> *).
(ApplyTx era, MonadError (ApplyTxError era) m) =>
Globals
-> MempoolEnv era
-> MempoolState era
-> Validated (Tx era)
-> m (MempoolState era)
reapplyAlonzoTx
instance (Crypto c, DSignable c (Hash c EraIndependentTxBody)) => ApplyBlock (BabbageEra c)