{-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TypeFamilies #-} {-# OPTIONS_GHC -Wno-orphans #-} module Cardano.Ledger.Conway.TxWits ( module BabbageTxWitsReExport, ) where import Cardano.Ledger.Alonzo.TxWits ( addrAlonzoTxWitsL, bootAddrAlonzoTxWitsL, datsAlonzoTxWitsL, rdmrsAlonzoTxWitsL, scriptAlonzoTxWitsL, ) import Cardano.Ledger.Alonzo.TxWits as BabbageTxWitsReExport ( AlonzoEraTxWits (..), AlonzoTxWits (..), ) import Cardano.Ledger.Conway.Era (ConwayEra) import Cardano.Ledger.Conway.Scripts () import Cardano.Ledger.Core instance EraTxWits ConwayEra where type TxWits ConwayEra = AlonzoTxWits ConwayEra mkBasicTxWits :: TxWits ConwayEra mkBasicTxWits = TxWits ConwayEra AlonzoTxWits ConwayEra forall a. Monoid a => a mempty addrTxWitsL :: Lens' (TxWits ConwayEra) (Set (WitVKey 'Witness)) addrTxWitsL = (Set (WitVKey 'Witness) -> f (Set (WitVKey 'Witness))) -> TxWits ConwayEra -> f (TxWits ConwayEra) (Set (WitVKey 'Witness) -> f (Set (WitVKey 'Witness))) -> AlonzoTxWits ConwayEra -> f (AlonzoTxWits ConwayEra) forall era. AlonzoEraScript era => Lens' (AlonzoTxWits era) (Set (WitVKey 'Witness)) Lens' (AlonzoTxWits ConwayEra) (Set (WitVKey 'Witness)) addrAlonzoTxWitsL {-# INLINE addrTxWitsL #-} bootAddrTxWitsL :: Lens' (TxWits ConwayEra) (Set BootstrapWitness) bootAddrTxWitsL = (Set BootstrapWitness -> f (Set BootstrapWitness)) -> TxWits ConwayEra -> f (TxWits ConwayEra) (Set BootstrapWitness -> f (Set BootstrapWitness)) -> AlonzoTxWits ConwayEra -> f (AlonzoTxWits ConwayEra) forall era. AlonzoEraScript era => Lens' (AlonzoTxWits era) (Set BootstrapWitness) Lens' (AlonzoTxWits ConwayEra) (Set BootstrapWitness) bootAddrAlonzoTxWitsL {-# INLINE bootAddrTxWitsL #-} scriptTxWitsL :: Lens' (TxWits ConwayEra) (Map ScriptHash (Script ConwayEra)) scriptTxWitsL = (Map ScriptHash (Script ConwayEra) -> f (Map ScriptHash (Script ConwayEra))) -> TxWits ConwayEra -> f (TxWits ConwayEra) (Map ScriptHash (Script ConwayEra) -> f (Map ScriptHash (Script ConwayEra))) -> AlonzoTxWits ConwayEra -> f (AlonzoTxWits ConwayEra) forall era. AlonzoEraScript era => Lens' (AlonzoTxWits era) (Map ScriptHash (Script era)) Lens' (AlonzoTxWits ConwayEra) (Map ScriptHash (Script ConwayEra)) scriptAlonzoTxWitsL {-# INLINE scriptTxWitsL #-} instance AlonzoEraTxWits ConwayEra where datsTxWitsL :: Lens' (TxWits ConwayEra) (TxDats ConwayEra) datsTxWitsL = (TxDats ConwayEra -> f (TxDats ConwayEra)) -> TxWits ConwayEra -> f (TxWits ConwayEra) (TxDats ConwayEra -> f (TxDats ConwayEra)) -> AlonzoTxWits ConwayEra -> f (AlonzoTxWits ConwayEra) forall era. AlonzoEraScript era => Lens' (AlonzoTxWits era) (TxDats era) Lens' (AlonzoTxWits ConwayEra) (TxDats ConwayEra) datsAlonzoTxWitsL {-# INLINE datsTxWitsL #-} rdmrsTxWitsL :: Lens' (TxWits ConwayEra) (Redeemers ConwayEra) rdmrsTxWitsL = (Redeemers ConwayEra -> f (Redeemers ConwayEra)) -> TxWits ConwayEra -> f (TxWits ConwayEra) (Redeemers ConwayEra -> f (Redeemers ConwayEra)) -> AlonzoTxWits ConwayEra -> f (AlonzoTxWits ConwayEra) forall era. AlonzoEraScript era => Lens' (AlonzoTxWits era) (Redeemers era) Lens' (AlonzoTxWits ConwayEra) (Redeemers ConwayEra) rdmrsAlonzoTxWitsL {-# INLINE rdmrsTxWitsL #-}