Skip to content

Commit 685f1da

Browse files
authored
Merge pull request #4868 from IntersectMBO/lehins/organize-ledger-state
Organize ledger state
2 parents 09dc377 + c95100b commit 685f1da

File tree

157 files changed

+1155
-1109
lines changed

Some content is hidden

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

157 files changed

+1155
-1109
lines changed

eras/allegra/impl/src/Cardano/Ledger/Allegra/Rules/Utxo.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ import Cardano.Ledger.Shelley.Rules (
5050
ShelleyPpupPredFailure,
5151
)
5252
import qualified Cardano.Ledger.Shelley.Rules as Shelley
53+
import Cardano.Ledger.State (EraUTxO (..), UTxO (..), txouts)
5354
import Cardano.Ledger.TxIn (TxIn)
54-
import Cardano.Ledger.UTxO (EraUTxO (..), UTxO (..), txouts)
5555
import qualified Cardano.Ledger.Val as Val
5656
import Cardano.Slotting.Slot (SlotNo)
5757
import Control.DeepSeq (NFData)

eras/allegra/impl/src/Cardano/Ledger/Allegra/Rules/Utxow.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import Cardano.Ledger.Shelley.Rules (
2525
)
2626
import qualified Cardano.Ledger.Shelley.Rules as Shelley
2727
import Cardano.Ledger.Shelley.UTxO (ShelleyScriptsNeeded)
28-
import Cardano.Ledger.UTxO (EraUTxO (..))
28+
import Cardano.Ledger.State (EraUTxO (..))
2929
import Control.State.Transition.Extended
3030

3131
type instance EraRuleFailure "UTXOW" AllegraEra = ShelleyUtxowPredFailure AllegraEra

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import Cardano.Ledger.Shelley.PParams (ProposedPPUpdates (..), Update (..))
3434
import Cardano.Ledger.Shelley.Tx (ShelleyTx)
3535
import Cardano.Ledger.Shelley.TxOut (ShelleyTxOut)
3636
import Cardano.Ledger.Shelley.TxWits (ShelleyTxWits)
37-
import Cardano.Ledger.UTxO (UTxO (..))
37+
import Cardano.Ledger.State (UTxO (..))
3838
import Data.Coerce (coerce)
3939
import qualified Data.Map.Strict as Map
4040

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Cardano.Ledger.Shelley.UTxO (
1616
getShelleyWitsVKeyNeeded,
1717
shelleyProducedValue,
1818
)
19-
import Cardano.Ledger.UTxO (EraUTxO (..), ScriptsProvided (..))
19+
import Cardano.Ledger.State (EraUTxO (..), ScriptsProvided (..))
2020
import Lens.Micro
2121

2222
instance EraUTxO AllegraEra where

eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Plutus/Context.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ import Cardano.Ledger.Plutus (
5252
SLanguage (..),
5353
isLanguage,
5454
)
55-
import Cardano.Ledger.UTxO (UTxO (..))
55+
import Cardano.Ledger.State (UTxO (..))
5656
import Cardano.Slotting.EpochInfo (EpochInfo)
5757
import Cardano.Slotting.Time (SystemStart)
5858
import Control.DeepSeq (NFData)

eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Plutus/Evaluate.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ import Cardano.Ledger.Plutus.Evaluate (
5050
import Cardano.Ledger.Plutus.ExUnits
5151
import Cardano.Ledger.Plutus.Language (Language (..))
5252
import Cardano.Ledger.Plutus.TxInfo (exBudgetToExUnits)
53+
import Cardano.Ledger.State (EraUTxO (..), ScriptsProvided (..), UTxO (..))
5354
import Cardano.Ledger.TxIn (TxIn)
54-
import Cardano.Ledger.UTxO (EraUTxO (..), ScriptsProvided (..), UTxO (..))
5555
import Cardano.Slotting.EpochInfo (EpochInfo)
5656
import Cardano.Slotting.Time (SystemStart)
5757
import Control.DeepSeq (NFData)

eras/alonzo/impl/src/Cardano/Ledger/Alonzo/Plutus/TxInfo.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ import Cardano.Ledger.Plutus.TxInfo
7979
import Cardano.Ledger.PoolParams (PoolParams (..))
8080
import Cardano.Ledger.Rules.ValidationMode (Inject (..))
8181
import qualified Cardano.Ledger.Shelley.HardForks as HardForks
82+
import Cardano.Ledger.State (UTxO (..))
8283
import Cardano.Ledger.TxIn (TxIn (..), txInToText)
83-
import Cardano.Ledger.UTxO (UTxO (..))
8484
import Cardano.Ledger.Val (zero)
8585
import Cardano.Slotting.EpochInfo (EpochInfo)
8686
import Cardano.Slotting.Time (SystemStart)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ import Cardano.Ledger.Rules.ValidationMode (
8989
import Cardano.Ledger.Shelley.LedgerState (UTxOState (utxosUtxo))
9090
import Cardano.Ledger.Shelley.Rules (ShelleyPpupPredFailure, ShelleyUtxoPredFailure, UtxoEnv (..))
9191
import qualified Cardano.Ledger.Shelley.Rules as Shelley
92+
import Cardano.Ledger.State (EraUTxO (..), UTxO (..), areAllAdaOnly, coinBalance, sumAllValue)
9293
import Cardano.Ledger.TxIn (TxIn)
93-
import Cardano.Ledger.UTxO (EraUTxO (..), UTxO (..), areAllAdaOnly, coinBalance, sumAllValue)
9494
import qualified Cardano.Ledger.Val as Val
9595
import Cardano.Slotting.EpochInfo.API (EpochInfo, epochInfoSlotToUTCTime)
9696
import Cardano.Slotting.EpochInfo.Extend (unsafeLinearExtendEpochInfo)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ import Cardano.Ledger.Shelley.Rules (
7878
updateUTxOState,
7979
)
8080
import Cardano.Ledger.Shelley.TxCert (ShelleyTxCert)
81-
import Cardano.Ledger.UTxO (
81+
import Cardano.Ledger.State (
8282
EraUTxO (..),
8383
UTxO (..),
8484
coinBalance,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ import Cardano.Ledger.Shelley.Rules (
7070
import qualified Cardano.Ledger.Shelley.Rules as Shelley
7171
import Cardano.Ledger.Shelley.Tx (witsFromTxWitnesses)
7272
import Cardano.Ledger.Shelley.UTxO (ShelleyScriptsNeeded (..))
73+
import Cardano.Ledger.State (EraUTxO (..), ScriptsProvided (..), UTxO (..))
7374
import Cardano.Ledger.TxIn (TxIn (..))
74-
import Cardano.Ledger.UTxO (EraUTxO (..), ScriptsProvided (..), UTxO (..))
7575
import Control.DeepSeq (NFData)
7676
import Control.Monad.Trans.Reader (asks)
7777
import Control.SetAlgebra (domain, eval, (➖))

0 commit comments

Comments
 (0)