Skip to content

Commit da28951

Browse files
committed
Integrate js/coot/aniketd/release-10-3
1 parent 36d3f23 commit da28951

File tree

11 files changed

+15
-47
lines changed

11 files changed

+15
-47
lines changed

cabal.project

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repository cardano-haskell-packages
1414
-- you need to run if you change them
1515
index-state:
1616
, hackage.haskell.org 2024-12-24T12:56:48Z
17-
, cardano-haskell-packages 2025-02-11T21:18:23Z
17+
, cardano-haskell-packages 2025-02-26T16:38:34Z
1818

1919
packages:
2020
cardano-api
@@ -59,12 +59,13 @@ source-repository-package
5959
--sha256: sha256-TDEBINZ3SkhpRNomMdt53bR3gdzgkWR9jIlAr8yrU6o=
6060
subdir:
6161
cardano-crypto-class
62+
cardano-slotting
6263

6364
source-repository-package
6465
type: git
6566
location: https://github.com/input-output-hk/cardano-ledger
66-
tag: 0d750d882181b12fad62ff28de056ee85c7e0c0e
67-
--sha256: sha256-LLp+FHSuVG2IsnXDv0aGMRaX19+trs5AT1gql6oji0U=
67+
tag: f5b35692b4d92d664187781a98b7af3fab445bad
68+
--sha256: sha256-krYzn7ct6S52bGLC8vs5/pL421UbP0+jVjxwUhOcbcA=
6869
subdir:
6970
eras/allegra/impl
7071
eras/alonzo/impl
@@ -98,8 +99,8 @@ source-repository-package
9899
source-repository-package
99100
type: git
100101
location: https://github.com/input-output-hk/ouroboros-consensus
101-
tag: c97a657928adaebccf5f38484e910843af8c59e7
102-
--sha256: sha256-LG29k3Ii3+yxkKskTjwlVZ99LJSzuWzUJYjDC5thyiw=
102+
tag: 1e2c0fed8e81c15575bf3cd3aaa9b6efde328d8d
103+
--sha256: sha256-osyNYXxJqg4MS6ISXtEneuYRb0xBIr5ztGmxvMyGTL4=
103104
subdir:
104105
ouroboros-consensus
105106
ouroboros-consensus-cardano
@@ -115,6 +116,3 @@ source-repository-package
115116
plutus-core
116117
plutus-ledger-api
117118
plutus-tx
118-
119-
allow-newer: none
120-

cardano-api/cardano-api.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ library
156156
ouroboros-consensus-diffusion ^>=0.19 || ^>=0.20,
157157
ouroboros-consensus-protocol ^>=0.10,
158158
ouroboros-network,
159-
ouroboros-network-api ^>=0.12,
159+
ouroboros-network-api ^>=0.13,
160160
ouroboros-network-framework,
161161
ouroboros-network-protocols,
162162
parsec,

cardano-api/src/Cardano/Api.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,6 @@ module Cardano.Api
10201020
, queryPoolDistribution
10211021
, queryPoolState
10221022
, queryProtocolParameters
1023-
, queryProtocolParametersUpdate
10241023
, queryProtocolState
10251024
, queryStakeAddresses
10261025
, queryStakeDelegDeposits

cardano-api/src/Cardano/Api/Internal/IPC.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -561,6 +561,8 @@ mapLocalTxMonitoringClient convTxid convTx ltxmc =
561561
CTxMon.SendMsgAwaitAcquire $ (fmap . fmap) convClientStateAcquired f
562562
convClientStateAcquired (CTxMon.SendMsgRelease eff) =
563563
CTxMon.SendMsgRelease (convClientStateIdle <$> eff)
564+
convClientStateAcquired (CTxMon.SendMsgGetMeasures f) =
565+
CTxMon.SendMsgGetMeasures $ (fmap . fmap) convClientStateAcquired f
564566

565567
-- ----------------------------------------------------------------------------
566568
-- Wrappers for specific protocol use-cases

cardano-api/src/Cardano/Api/Internal/LedgerEvents/ConvertLedgerEvent.hs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ toLedgerEventConway evt =
173173
case conwayLedgerEvent of
174174
Conway.UtxowEvent utxowEvent -> handleConwayUTxOWEvent utxowEvent
175175
Conway.CertsEvent{} -> Nothing
176-
Conway.MempoolEvent{} -> Nothing
177176
Conway.GovEvent govEvent ->
178177
case govEvent of
179178
Conway.GovNewProposals txid props ->

cardano-api/src/Cardano/Api/Internal/LedgerState.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ import Cardano.Slotting.Slot (WithOrigin (At, Origin))
166166
import Cardano.Slotting.Slot qualified as Slot
167167
import Ouroboros.Consensus.Block.Abstract qualified as Consensus
168168
import Ouroboros.Consensus.Block.Forging (BlockForging)
169+
import Ouroboros.Consensus.Byron.ByronHFC qualified as Consensus
169170
import Ouroboros.Consensus.Byron.Ledger qualified as Byron
170171
import Ouroboros.Consensus.Cardano qualified as Consensus
171172
import Ouroboros.Consensus.Cardano.Block qualified as Consensus
172-
import Ouroboros.Consensus.Cardano.CanHardFork qualified as Consensus
173173
import Ouroboros.Consensus.Cardano.Node qualified as Consensus
174174
import Ouroboros.Consensus.Config qualified as Consensus
175175
import Ouroboros.Consensus.HardFork.Combinator qualified as Consensus
@@ -1698,7 +1698,7 @@ tickThenReapplyCheckHash cfg block lsb =
16981698
if Consensus.blockPrevHash block == Ledger.ledgerTipHash lsb
16991699
then
17001700
Right . toLedgerStateEvents $
1701-
Ledger.tickThenReapplyLedgerResult cfg block lsb
1701+
Ledger.tickThenReapplyLedgerResult Ledger.ComputeLedgerEvents cfg block lsb
17021702
else
17031703
Left $
17041704
ApplyBlockHashMismatch $
@@ -1733,7 +1733,7 @@ tickThenApply
17331733
tickThenApply cfg block lsb =
17341734
either (Left . ApplyBlockError) (Right . toLedgerStateEvents) $
17351735
runExcept $
1736-
Ledger.tickThenApplyLedgerResult cfg block lsb
1736+
Ledger.tickThenApplyLedgerResult Ledger.ComputeLedgerEvents cfg block lsb
17371737

17381738
renderByteArray :: ByteArrayAccess bin => bin -> Text
17391739
renderByteArray =

cardano-api/src/Cardano/Api/Internal/Modes.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ import Cardano.Api.Internal.Eras.Core
3131

3232
import Cardano.Chain.Slotting qualified as Byron (EpochSlots (..))
3333
import Cardano.Protocol.Crypto (StandardCrypto)
34+
import Ouroboros.Consensus.Byron.ByronHFC qualified as Consensus
3435
import Ouroboros.Consensus.Byron.Ledger qualified as Consensus
3536
import Ouroboros.Consensus.Cardano.Block qualified as Consensus
36-
import Ouroboros.Consensus.Cardano.ByronHFC qualified as Consensus
3737
import Ouroboros.Consensus.HardFork.Combinator as Consensus
3838
( EraIndex (..)
3939
, eraIndexSucc

cardano-api/src/Cardano/Api/Internal/Protocol.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ where
2323
import Cardano.Api.Internal.Modes
2424

2525
import Ouroboros.Consensus.Block.Forging (BlockForging)
26+
import Ouroboros.Consensus.Byron.ByronHFC (ByronBlockHFC)
2627
import Ouroboros.Consensus.Cardano
2728
import Ouroboros.Consensus.Cardano.Block
28-
import Ouroboros.Consensus.Cardano.ByronHFC (ByronBlockHFC)
2929
import Ouroboros.Consensus.Cardano.Node
3030
import Ouroboros.Consensus.HardFork.Combinator.Embed.Unary
3131
import Ouroboros.Consensus.Ledger.SupportsProtocol qualified as Consensus (LedgerSupportsProtocol)

cardano-api/src/Cardano/Api/Internal/Query.hs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ import Cardano.Api.Internal.IPC.Version
7575
import Cardano.Api.Internal.Keys.Shelley
7676
import Cardano.Api.Internal.Modes
7777
import Cardano.Api.Internal.NetworkId
78-
import Cardano.Api.Internal.ProtocolParameters
7978
import Cardano.Api.Internal.Query.Types
8079
import Cardano.Api.Internal.ReexposeLedger qualified as Ledger
8180
import Cardano.Api.Internal.Tx.Body
@@ -229,10 +228,6 @@ data QueryInShelleyBasedEra era result where
229228
:: QueryInShelleyBasedEra era (GenesisParameters ShelleyEra)
230229
QueryProtocolParameters
231230
:: QueryInShelleyBasedEra era (Ledger.PParams (ShelleyLedgerEra era))
232-
QueryProtocolParametersUpdate
233-
:: QueryInShelleyBasedEra
234-
era
235-
(Map (Hash GenesisKey) ProtocolParametersUpdate)
236231
QueryStakeDistribution
237232
:: QueryInShelleyBasedEra era (Map (Hash StakePoolKey) Rational)
238233
QueryUTxO
@@ -312,7 +307,6 @@ instance NodeToClientVersionOf (QueryInShelleyBasedEra era result) where
312307
nodeToClientVersionOf QueryEpoch = NodeToClientV_16
313308
nodeToClientVersionOf QueryGenesisParameters = NodeToClientV_16
314309
nodeToClientVersionOf QueryProtocolParameters = NodeToClientV_16
315-
nodeToClientVersionOf QueryProtocolParametersUpdate = NodeToClientV_16
316310
nodeToClientVersionOf QueryStakeDistribution = NodeToClientV_16
317311
nodeToClientVersionOf (QueryUTxO f) = nodeToClientVersionOf f
318312
nodeToClientVersionOf (QueryStakeAddresses _ _) = NodeToClientV_16
@@ -584,8 +578,6 @@ toConsensusQueryShelleyBased sbe = \case
584578
Some (consensusQueryInEraInMode era Consensus.GetGenesisConfig)
585579
QueryProtocolParameters ->
586580
Some (consensusQueryInEraInMode era Consensus.GetCurrentPParams)
587-
QueryProtocolParametersUpdate ->
588-
Some (consensusQueryInEraInMode era Consensus.GetProposedPParamsUpdates)
589581
QueryStakeDistribution ->
590582
Some (consensusQueryInEraInMode era Consensus.GetStakeDistribution)
591583
QueryUTxO QueryUTxOWhole ->
@@ -889,10 +881,6 @@ fromConsensusQueryResultShelleyBased sbe sbeQuery q' r' =
889881
case q' of
890882
Consensus.GetCurrentPParams -> r'
891883
_ -> fromConsensusQueryResultMismatch
892-
QueryProtocolParametersUpdate ->
893-
case q' of
894-
Consensus.GetProposedPParamsUpdates -> fromLedgerProposedPPUpdates sbe r'
895-
_ -> fromConsensusQueryResultMismatch
896884
QueryStakeDistribution ->
897885
case q' of
898886
Consensus.GetStakeDistribution -> fromShelleyPoolDistr r'

cardano-api/src/Cardano/Api/Internal/Query/Expr.hs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ module Cardano.Api.Internal.Query.Expr
1717
, queryPoolDistribution
1818
, queryPoolState
1919
, queryProtocolParameters
20-
, queryProtocolParametersUpdate
2120
, queryProtocolState
2221
, queryStakeAddresses
2322
, queryStakeDelegDeposits
@@ -55,7 +54,6 @@ import Cardano.Api.Internal.IPC
5554
import Cardano.Api.Internal.IPC.Monad
5655
import Cardano.Api.Internal.Keys.Shelley
5756
import Cardano.Api.Internal.NetworkId
58-
import Cardano.Api.Internal.ProtocolParameters
5957
import Cardano.Api.Internal.Query
6058
import Cardano.Api.Internal.ReexposeLedger qualified as Ledger
6159
import Cardano.Api.Internal.Tx.UTxO
@@ -235,22 +233,6 @@ queryConstitutionHash sbe =
235233
QueryInEra $
236234
QueryInShelleyBasedEra sbe QueryConstitution
237235

238-
queryProtocolParametersUpdate
239-
:: ()
240-
=> ShelleyBasedEra era
241-
-> LocalStateQueryExpr
242-
block
243-
point
244-
QueryInMode
245-
r
246-
IO
247-
( Either
248-
UnsupportedNtcVersionError
249-
(Either EraMismatch (Map (Hash GenesisKey) ProtocolParametersUpdate))
250-
)
251-
queryProtocolParametersUpdate sbe =
252-
queryExpr $ QueryInEra $ QueryInShelleyBasedEra sbe QueryProtocolParametersUpdate
253-
254236
queryProtocolState
255237
:: ()
256238
=> ShelleyBasedEra era

0 commit comments

Comments
 (0)