{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE TypeFamilies #-}

{-# OPTIONS_GHC -Wno-orphans #-}

module Test.ThreadNet.TxGen.Alonzo () where

import           Ouroboros.Consensus.Protocol.TPraos (TPraos)
import           Ouroboros.Consensus.Shelley.Eras
import           Ouroboros.Consensus.Shelley.Ledger
import           Test.ThreadNet.TxGen (TxGen (..))

-- | Dummy generator until CAD-2119 is done, i.e., the transaction generator in
-- the ledger has been generalised over the eras.
instance TxGen (ShelleyBlock (TPraos c) (AlonzoEra c)) where

  type TxGenExtra _ = ()

  testGenTxs :: CoreNodeId
-> NumCoreNodes
-> SlotNo
-> TopLevelConfig (ShelleyBlock (TPraos c) (AlonzoEra c))
-> TxGenExtra (ShelleyBlock (TPraos c) (AlonzoEra c))
-> LedgerState (ShelleyBlock (TPraos c) (AlonzoEra c))
-> Gen [GenTx (ShelleyBlock (TPraos c) (AlonzoEra c))]
testGenTxs CoreNodeId
_ NumCoreNodes
_ SlotNo
_ TopLevelConfig (ShelleyBlock (TPraos c) (AlonzoEra c))
_ TxGenExtra (ShelleyBlock (TPraos c) (AlonzoEra c))
_ LedgerState (ShelleyBlock (TPraos c) (AlonzoEra c))
_ = [GenTx (ShelleyBlock (TPraos c) (AlonzoEra c))]
-> Gen [GenTx (ShelleyBlock (TPraos c) (AlonzoEra c))]
forall a. a -> Gen a
forall (f :: * -> *) a. Applicative f => a -> f a
pure []