Skip to content

Commit d714789

Browse files
authored
Merge pull request #5182 from IntersectMBO/lehins/remove-tx-wrappers
Remove tx wrappers
2 parents b4980a4 + 2048594 commit d714789

File tree

44 files changed

+58
-110
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+58
-110
lines changed

eras/allegra/impl/src/Cardano/Ledger/Allegra/Translation.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import Cardano.Ledger.Shelley.LedgerState (
2727
returnRedeemAddrsToReserves,
2828
)
2929
import Cardano.Ledger.Shelley.PParams (ProposedPPUpdates (..), Update (..))
30-
import Cardano.Ledger.Shelley.Tx (ShelleyTx)
3130
import Cardano.Ledger.Shelley.TxOut (ShelleyTxOut)
3231
import Cardano.Ledger.Shelley.TxWits (ShelleyTxWits)
3332
import Data.Coerce (coerce)
@@ -72,8 +71,8 @@ instance TranslateEra AllegraEra NewEpochState where
7271
stashedAVVMAddresses = ()
7372
}
7473

75-
instance TranslateEra AllegraEra ShelleyTx where
76-
type TranslationError AllegraEra ShelleyTx = DecoderError
74+
instance TranslateEra AllegraEra Tx where
75+
type TranslationError AllegraEra Tx = DecoderError
7776
translateEra _ctx = translateEraThroughCBOR "ShelleyTx"
7877

7978
--------------------------------------------------------------------------------

eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Core.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
module Cardano.Ledger.Alonzo.Core (
44
AlonzoEraTx (..),
5+
IsValid (..),
56
AlonzoEraTxOut (..),
67
AlonzoEraScript (..),
78
AsIx (..),
@@ -66,7 +67,7 @@ import Cardano.Ledger.Alonzo.Scripts (
6667
pattern RewardingPurpose,
6768
pattern SpendingPurpose,
6869
)
69-
import Cardano.Ledger.Alonzo.Tx (AlonzoEraTx (..))
70+
import Cardano.Ledger.Alonzo.Tx (AlonzoEraTx (..), IsValid (..))
7071
import Cardano.Ledger.Alonzo.TxAuxData (AlonzoEraTxAuxData (..))
7172
import Cardano.Ledger.Alonzo.TxBody (AlonzoEraTxBody (..), ScriptIntegrityHash)
7273
import Cardano.Ledger.Alonzo.TxOut (AlonzoEraTxOut (..))

eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Rules/Utxos.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ import Cardano.Ledger.Alonzo.Plutus.Evaluate (
4242
)
4343
import Cardano.Ledger.Alonzo.Rules.Ppup ()
4444
import Cardano.Ledger.Alonzo.State
45-
import Cardano.Ledger.Alonzo.Tx (IsValid (..))
4645
import Cardano.Ledger.Alonzo.UTxO (AlonzoEraUTxO (..), AlonzoScriptsNeeded)
4746
import Cardano.Ledger.BaseTypes (
4847
Globals,

eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Translation.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,13 @@
1010
{-# LANGUAGE UndecidableInstances #-}
1111
{-# OPTIONS_GHC -Wno-orphans #-}
1212

13-
module Cardano.Ledger.Alonzo.Translation where
13+
module Cardano.Ledger.Alonzo.Translation () where
1414

15-
import Cardano.Ledger.Alonzo.Core hiding (Tx)
15+
import Cardano.Ledger.Alonzo.Core
1616
import Cardano.Ledger.Alonzo.Era (AlonzoEra)
1717
import Cardano.Ledger.Alonzo.Genesis (AlonzoGenesis (..))
1818
import Cardano.Ledger.Alonzo.PParams ()
1919
import Cardano.Ledger.Alonzo.State
20-
import Cardano.Ledger.Alonzo.Tx (IsValid (..), Tx (..))
2120
import Cardano.Ledger.Binary (DecoderError)
2221
import Cardano.Ledger.Shelley.LedgerState (
2322
EpochState (..),

eras/alonzo/impl/testlib/Test/Cardano/Ledger/Alonzo/Arbitrary.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ import Cardano.Ledger.Alonzo.Scripts (
6262
import Cardano.Ledger.Alonzo.Transition (TransitionConfig (..))
6363
import Cardano.Ledger.Alonzo.Tx (
6464
AlonzoTx (AlonzoTx),
65-
IsValid (IsValid),
6665
ScriptIntegrity (ScriptIntegrity),
6766
getLanguageView,
6867
)

eras/alonzo/impl/testlib/Test/Cardano/Ledger/Alonzo/Imp/UtxosSpec.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import Cardano.Ledger.Alonzo.Rules (
1717
TagMismatchDescription (..),
1818
)
1919
import Cardano.Ledger.Alonzo.Scripts (eraLanguages)
20-
import Cardano.Ledger.Alonzo.Tx (IsValid (..))
2120
import Cardano.Ledger.Alonzo.TxWits (unRedeemersL)
2221
import Cardano.Ledger.Plutus.Data (Data (..))
2322
import Cardano.Ledger.Plutus.Language (hashPlutusScript, withSLanguage)

eras/alonzo/impl/testlib/Test/Cardano/Ledger/Alonzo/ImpTest.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ import Cardano.Ledger.Alonzo.Rules (
5757
scriptFailureToFailureDescription,
5858
)
5959
import Cardano.Ledger.Alonzo.Scripts (plutusScriptLanguage, toAsItem, toAsIx)
60-
import Cardano.Ledger.Alonzo.Tx (IsValid (..), hashScriptIntegrity)
60+
import Cardano.Ledger.Alonzo.Tx (hashScriptIntegrity)
6161
import Cardano.Ledger.Alonzo.TxAuxData (AlonzoTxAuxData)
6262
import Cardano.Ledger.Alonzo.TxWits (unRedeemersL, unTxDatsL)
6363
import Cardano.Ledger.Alonzo.UTxO (AlonzoScriptsNeeded (..))

eras/alonzo/test-suite/CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44

55
* Removed `Test.Cardano.Ledger.Alonzo.Examples.Consensus` (moved to `cardano-ledger-api` testlib)
66

7-
## 1.3.1.1
8-
9-
*
10-
117
## 1.3.1.0
128

139
* Account for removal of crypto parametrization

eras/alonzo/test-suite/src/Test/Cardano/Ledger/Alonzo/AlonzoEraGen.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ import Cardano.Ledger.Alonzo.Scripts as Alonzo (
4040
)
4141
import Cardano.Ledger.Alonzo.Tx (
4242
AlonzoTx (AlonzoTx),
43-
IsValid (..),
4443
hashScriptIntegrity,
4544
totExUnits,
4645
)

eras/alonzo/test-suite/test/Test/Cardano/Ledger/Alonzo/Golden.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import Cardano.Ledger.Alonzo.PParams (
1717
getLanguageView,
1818
)
1919
import Cardano.Ledger.Alonzo.Rules (FailureDescription (..), TagMismatchDescription (..))
20-
import Cardano.Ledger.Alonzo.Tx (IsValid (..), alonzoMinFeeTx)
20+
import Cardano.Ledger.Alonzo.Tx (alonzoMinFeeTx)
2121
import Cardano.Ledger.Alonzo.TxBody (AlonzoTxOut (..), utxoEntrySize)
2222
import Cardano.Ledger.BaseTypes (SlotNo (..), StrictMaybe (..), boundRational)
2323
import Cardano.Ledger.Binary (decCBOR, decodeFullAnnotator)

0 commit comments

Comments
 (0)