Skip to content

Commit 29c591b

Browse files
amesgenlehins
andcommitted
Update ledger-api-1.6 and ledger-conway-1.9
Co-authored-by: Alexey Kuleshevich <[email protected]>
1 parent a70f0f3 commit 29c591b

File tree

39 files changed

+381
-638
lines changed

39 files changed

+381
-638
lines changed

cabal.project

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,40 @@ tests: true
3131
benchmarks: true
3232

3333
import: ./asserts.cabal
34+
35+
-- TEMP
36+
37+
source-repository-package
38+
type: git
39+
location: https://github.com/input-output-hk/cardano-ledger
40+
tag: c6a86f5f43b8a06ef224f441d21e38f7d16a0f6b
41+
--sha256: 1bjkkf8p230nj34vw537x2gysap8xdmkn2y6yx6gckrwbyzxg9bh
42+
subdir:
43+
eras/allegra/impl
44+
eras/alonzo/impl
45+
eras/alonzo/test-suite
46+
eras/babbage/impl
47+
eras/babbage/test-suite
48+
eras/conway/impl
49+
eras/conway/test-suite
50+
eras/mary/impl
51+
eras/shelley/impl
52+
eras/shelley/test-suite
53+
eras/shelley-ma/test-suite
54+
libs/cardano-ledger-api
55+
libs/cardano-ledger-core
56+
libs/cardano-ledger-binary
57+
libs/cardano-ledger-pretty
58+
libs/cardano-protocol-tpraos
59+
libs/non-integral
60+
libs/small-steps
61+
libs/small-steps-test
62+
libs/cardano-data
63+
libs/set-algebra
64+
libs/vector-map
65+
eras/byron/chain/executable-spec
66+
eras/byron/ledger/executable-spec
67+
eras/byron/ledger/impl
68+
eras/byron/ledger/impl/test
69+
eras/byron/crypto
70+
eras/byron/crypto/test
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

ouroboros-consensus-cardano/ouroboros-consensus-cardano.cabal

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ library
7878
Ouroboros.Consensus.Cardano.CanHardFork
7979
Ouroboros.Consensus.Cardano.Condense
8080
Ouroboros.Consensus.Cardano.Node
81-
Ouroboros.Consensus.Cardano.ShelleyBased
8281
Ouroboros.Consensus.Shelley.Crypto
8382
Ouroboros.Consensus.Shelley.Eras
8483
Ouroboros.Consensus.Shelley.HFEras
@@ -116,15 +115,14 @@ library
116115
, cardano-crypto
117116
, cardano-crypto-class
118117
, cardano-crypto-wrapper
119-
, cardano-data
120118
, cardano-ledger-allegra
121119
, cardano-ledger-alonzo ^>=1.4.1
122-
, cardano-ledger-api ^>=1.5
120+
, cardano-ledger-api ^>=1.6
123121
, cardano-ledger-babbage ^>=1.4.4
124122
, cardano-ledger-binary
125123
, cardano-ledger-byron
126-
, cardano-ledger-conway ^>=1.8
127-
, cardano-ledger-core ^>=1.6
124+
, cardano-ledger-conway ^>=1.9
125+
, cardano-ledger-core ^>=1.7
128126
, cardano-ledger-mary
129127
, cardano-ledger-shelley ^>=1.6
130128
, cardano-prelude
@@ -359,6 +357,7 @@ library unstable-cardano-testlib
359357
, cardano-crypto-class
360358
, cardano-crypto-wrapper
361359
, cardano-ledger-alonzo-test
360+
, cardano-ledger-api
362361
, cardano-ledger-byron
363362
, cardano-ledger-conway-test ^>=1.2.0.5
364363
, cardano-ledger-core:{cardano-ledger-core, testlib}
@@ -404,6 +403,7 @@ test-suite cardano-test
404403
, cardano-crypto-class
405404
, cardano-ledger-alonzo
406405
, cardano-ledger-alonzo-test
406+
, cardano-ledger-api
407407
, cardano-ledger-byron
408408
, cardano-ledger-core
409409
, cardano-ledger-shelley
@@ -484,6 +484,7 @@ library unstable-cardano-tools
484484
, cardano-crypto-wrapper
485485
, cardano-ledger-allegra
486486
, cardano-ledger-alonzo
487+
, cardano-ledger-api
487488
, cardano-ledger-babbage
488489
, cardano-ledger-binary
489490
, cardano-ledger-byron

ouroboros-consensus-cardano/src/ouroboros-consensus-cardano/Ouroboros/Consensus/Cardano.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ module Ouroboros.Consensus.Cardano (
88
, ProtocolCardano
99
, ProtocolShelley
1010
-- * Abstract over the various protocols
11+
, CardanoHardForkTriggers (..)
1112
, ProtocolParams (..)
12-
, ProtocolTransitionParams (..)
1313
, module X
1414
) where
1515

ouroboros-consensus-cardano/src/ouroboros-consensus-cardano/Ouroboros/Consensus/Cardano/CanHardFork.hs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ import qualified Cardano.Ledger.Era as SL
3636
import Cardano.Ledger.Hashes (EraIndependentTxBody)
3737
import Cardano.Ledger.Keys (DSignable, Hash)
3838
import qualified Cardano.Ledger.Shelley.API as SL
39-
import qualified Cardano.Ledger.Shelley.Governance as SL
4039
import qualified Cardano.Ledger.Shelley.LedgerState as SL
4140
import Cardano.Ledger.Shelley.Translation
4241
(toFromByronTranslationContext)
@@ -61,7 +60,7 @@ import qualified Data.SOP.Tails as Tails
6160
import Data.Void
6261
import Data.Word
6362
import GHC.Generics (Generic)
64-
import Lens.Micro (Lens', (.~))
63+
import Lens.Micro ((.~))
6564
import Lens.Micro.Extras (view)
6665
import NoThunks.Class (NoThunks)
6766
import Ouroboros.Consensus.Block
@@ -727,17 +726,11 @@ translateLedgerStateBabbageToConwayWrapper =
727726
-> LedgerState (ShelleyBlock proto (BabbageEra c))
728727
patchGovState st =
729728
st { shelleyLedgerState = shelleyLedgerState st
730-
& newEpochStateGovStateL .~ newGovState
729+
& SL.newEpochStateGovStateL .~ newGovState
731730
}
732731
where
733-
-- next ledger release already provides this
734-
newEpochStateGovStateL ::
735-
Lens' (SL.NewEpochState era) (SL.GovState era)
736-
newEpochStateGovStateL =
737-
SL.nesEsL . SL.esLStateL . SL.lsUTxOStateL . SL.utxosGovStateL
738-
739732
newGovState =
740-
view newEpochStateGovStateL
733+
view SL.newEpochStateGovStateL
741734
. tickedShelleyLedgerState
742735
. applyChainTick
743736
(unwrapLedgerConfig cfgBabbage)

0 commit comments

Comments
 (0)