{-# LANGUAGE DataKinds #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -Wno-orphans #-}
module Cardano.Ledger.Conway (
Conway,
ConwayEra,
)
where
import Cardano.Ledger.Alonzo (reapplyAlonzoTx)
import Cardano.Ledger.Babbage.TxBody ()
import Cardano.Ledger.Conway.Core
import Cardano.Ledger.Conway.Era (ConwayEra)
import Cardano.Ledger.Conway.Governance (RunConwayRatify (..))
import Cardano.Ledger.Conway.Rules ()
import Cardano.Ledger.Conway.Transition ()
import Cardano.Ledger.Conway.Translation ()
import Cardano.Ledger.Conway.Tx ()
import Cardano.Ledger.Conway.TxInfo ()
import Cardano.Ledger.Conway.TxOut ()
import Cardano.Ledger.Conway.UTxO ()
import Cardano.Ledger.Crypto (Crypto, StandardCrypto)
import Cardano.Ledger.Keys (DSignable)
import Cardano.Ledger.Shelley.API
type Conway = ConwayEra StandardCrypto
instance (Crypto c, DSignable c (Hash c EraIndependentTxBody)) => ApplyTx (ConwayEra c) where
reapplyTx :: forall (m :: * -> *).
MonadError (ApplyTxError (ConwayEra c)) m =>
Globals
-> LedgerEnv (ConwayEra c)
-> MempoolState (ConwayEra c)
-> Validated (Tx (ConwayEra c))
-> m (MempoolState (ConwayEra 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 (ConwayEra c)
instance Crypto c => RunConwayRatify (ConwayEra c)