Skip to content
Open
Show file tree
Hide file tree
Changes from 128 commits
Commits
Show all changes
174 commits
Select commit Hold shift + click to select a range
dc0b68b
Bump `cardano-cli` to `10.12.0.0` and `cardano-api` to `10.18`
palas Sep 17, 2025
653ce0c
Fix compilation errors
palas Sep 17, 2025
bb2c3b1
WIP: bump upper bounds
ana-pantilie Sep 23, 2025
14be36d
WIP: fix dependencies
ana-pantilie Sep 24, 2025
015b955
Depend on new ekg-forward
ana-pantilie Sep 24, 2025
b47ed9a
Fix all dependency issues
ana-pantilie Sep 24, 2025
c38a12e
Propagate changes from cardano-cli
Jimbo4350 Jul 24, 2025
f6a5b99
REMOVE ME: Srps
Jimbo4350 Jul 24, 2025
b7b0f15
WIP: 10.6 dependency bump
Aug 9, 2025
1768396
Update deps
carbolymer Aug 14, 2025
0323395
Try update ekg-forward
carbolymer Aug 18, 2025
2c8dae5
Integrated ouroboros-network:cardano-diffusion package
coot Jun 12, 2025
81422ce
Fixed failing tests
coot Jun 16, 2025
c0d305b
Removed a stale TODO comment
coot Jun 16, 2025
92081aa
More fixes, still not compiling yet
carbolymer Aug 19, 2025
6c289f3
Update SRPs and flake.lock
carbolymer Aug 20, 2025
b8a9e20
nix build fix
carbolymer Aug 20, 2025
4f23de1
Fix non-exhaustive pattern-matching in LedgerQueries
geo2a Aug 25, 2025
b2c1170
Consensus traces: update ChainDB.PoppedBlockFromQueue trace
geo2a Aug 25, 2025
66cd58a
Consensus traces: update Mempool traces
geo2a Aug 25, 2025
34552bc
Consensus traces: update Genesis State Machine traces
geo2a Aug 25, 2025
782dc0a
Consensus traces: update LedgerDB.V2.FlavorImplSpecificTrace
geo2a Aug 25, 2025
bd5c990
Consensus traces: update LedgerDB.TraceForkerEvent trace
geo2a Aug 25, 2025
82d3a80
Consensus traces: update SelectView traces
geo2a Aug 25, 2025
e6e2465
Bump cardano-api & cardano-cli
carbolymer Sep 24, 2025
fd237cd
Update project and flake
ana-pantilie Sep 25, 2025
5ef0788
Bump `cardano-cli` to `10.12.0.0` and `cardano-api` to `10.18`
palas Sep 17, 2025
4708003
Fix compilation errors
palas Sep 17, 2025
8c9a9e7
WIP: bump upper bounds
ana-pantilie Sep 23, 2025
0db70eb
WIP: fix dependencies
ana-pantilie Sep 24, 2025
1057b4f
Depend on new ekg-forward
ana-pantilie Sep 24, 2025
c8f62aa
Merge branch 'ana/10.6-final-integration' into ana/10.6-final-integra…
ana-pantilie Sep 25, 2025
57dd6c8
Regenerate flake.lock
ana-pantilie Sep 25, 2025
57da667
WIP: fix compilation errors in cardano-node package
ana-pantilie Sep 25, 2025
8abde9f
WIP: partial fixes for ledger stuff
crocodile-dentist Oct 2, 2025
e493327
WIP: fix ledger stuff
ana-pantilie Sep 25, 2025
bcb34b7
New Dijkstra configuration
jasagredo Sep 26, 2025
2ea395e
Fix Alonzo genesis parsing
jasagredo Sep 26, 2025
438dce9
Provide initial Shelley credentials (unsound credentials)
jasagredo Sep 26, 2025
5be8cca
Fix ledger queries to be usable in all eras
jasagredo Sep 26, 2025
eb1e774
Add tracing instances for `PraosTiebreakerView`
jasagredo Sep 26, 2025
f029899
Add cases for tracing new NT* constructors
jasagredo Sep 26, 2025
f2009c9
Add tracing instances for `KESAgentClientTrace`
jasagredo Sep 26, 2025
e82ef32
Fill in tracing instances for some GSM constructors
jasagredo Sep 26, 2025
54d3912
Use new constructor `IgnoreBlockOlderThanImmTip`
jasagredo Sep 26, 2025
3442e73
Update Consensus and remove KES-agent SRP
jasagredo Sep 26, 2025
647c904
Add missing qualifiers
ana-pantilie Sep 26, 2025
6cbfab9
Ledger changes; fix parsing errors
ana-pantilie Sep 30, 2025
03fe6b1
integrate o-n 0.22.3
crocodile-dentist Oct 2, 2025
34612cc
Configure deadline peer selection targets
crocodile-dentist Oct 2, 2025
c6f48e8
TODO fix
crocodile-dentist Oct 2, 2025
180cb55
Propagate changes from cardano-cli
Jimbo4350 Jul 24, 2025
1830660
REMOVE ME: Srps
Jimbo4350 Jul 24, 2025
fc17333
WIP: 10.6 dependency bump
Aug 9, 2025
bd81e49
Update deps
carbolymer Aug 14, 2025
77e57b8
Try update ekg-forward
carbolymer Aug 18, 2025
5746d9c
Integrated ouroboros-network:cardano-diffusion package
coot Jun 12, 2025
11124dd
Fixed failing tests
coot Jun 16, 2025
fd9b7d3
Removed a stale TODO comment
coot Jun 16, 2025
9c94ec9
More fixes, still not compiling yet
carbolymer Aug 19, 2025
56ad0b9
Update SRPs and flake.lock
carbolymer Aug 20, 2025
bb556ca
nix build fix
carbolymer Aug 20, 2025
f556380
Fix non-exhaustive pattern-matching in LedgerQueries
geo2a Aug 25, 2025
8f850e6
Consensus traces: update ChainDB.PoppedBlockFromQueue trace
geo2a Aug 25, 2025
a819390
Consensus traces: update Mempool traces
geo2a Aug 25, 2025
3004e35
Consensus traces: update Genesis State Machine traces
geo2a Aug 25, 2025
2940e3d
Consensus traces: update LedgerDB.V2.FlavorImplSpecificTrace
geo2a Aug 25, 2025
9f765a9
Consensus traces: update LedgerDB.TraceForkerEvent trace
geo2a Aug 25, 2025
f6e0193
Consensus traces: update SelectView traces
geo2a Aug 25, 2025
a6c1840
Bump cardano-api & cardano-cli
carbolymer Sep 24, 2025
73ec06d
Update project and flake
ana-pantilie Sep 25, 2025
38de4f0
Fix compilation errors
palas Sep 17, 2025
3cede0e
WIP: bump upper bounds
ana-pantilie Sep 23, 2025
ccb7cfa
WIP: fix dependencies
ana-pantilie Sep 24, 2025
84f977b
Depend on new ekg-forward
ana-pantilie Sep 24, 2025
5a292fc
Fix compilation errors
palas Sep 17, 2025
2ab3d88
WIP: fix dependencies
ana-pantilie Sep 24, 2025
f3add2b
Depend on new ekg-forward
ana-pantilie Sep 24, 2025
ab6ee9d
WIP: fix compilation errors in cardano-node package
ana-pantilie Sep 25, 2025
fccee6e
WIP: partial fixes for ledger stuff
crocodile-dentist Oct 2, 2025
baba8ce
WIP: fix ledger stuff
ana-pantilie Sep 25, 2025
fadd763
New Dijkstra configuration
jasagredo Sep 26, 2025
be9c657
Fix Alonzo genesis parsing
jasagredo Sep 26, 2025
e00b434
Provide initial Shelley credentials (unsound credentials)
jasagredo Sep 26, 2025
f589dc7
Fix ledger queries to be usable in all eras
jasagredo Sep 26, 2025
b42e2c8
Add tracing instances for `PraosTiebreakerView`
jasagredo Sep 26, 2025
331f8a8
Add cases for tracing new NT* constructors
jasagredo Sep 26, 2025
8569bb0
Add tracing instances for `KESAgentClientTrace`
jasagredo Sep 26, 2025
4057180
Fill in tracing instances for some GSM constructors
jasagredo Sep 26, 2025
4e4a220
Use new constructor `IgnoreBlockOlderThanImmTip`
jasagredo Sep 26, 2025
a412257
Update Consensus and remove KES-agent SRP
jasagredo Sep 26, 2025
d9bf2e2
Add missing qualifiers
ana-pantilie Sep 26, 2025
52750af
Ledger changes; fix parsing errors
ana-pantilie Sep 30, 2025
84c5224
integrate o-n 0.22.3
crocodile-dentist Oct 2, 2025
adf9a10
Configure deadline peer selection targets
crocodile-dentist Oct 2, 2025
121fae6
TODO fix
crocodile-dentist Oct 2, 2025
63d645e
Bump consensus version
jasagredo Oct 2, 2025
9fdd9af
Make Dijkstra genesis parsing dependent on ExperimentalHardForksEnabled
jasagredo Oct 2, 2025
9bb36c0
Make cardano-node-chairman build
ana-pantilie Oct 3, 2025
fc25c98
Make cardano-submit-api build
ana-pantilie Oct 3, 2025
da824c2
Make bench/tx-generator compile; NEEDS CAREFUL REVIEW
ana-pantilie Oct 3, 2025
86f88f6
cardano-testnet: fix dependencies, DOES NOT COMPILE
ana-pantilie Oct 3, 2025
f71cc73
Temp: wip make cardano-testnet compile
ana-pantilie Oct 3, 2025
858235a
Fix testnet queries
carbolymer Oct 3, 2025
e87b984
WIP cardano-tracer: integrate o-n 0.22 see commit msg
crocodile-dentist Oct 4, 2025
e34f5da
Make testnet tests compile
carbolymer Oct 6, 2025
dd9a2bb
cardano-testnet | Fix cost models in genesis generation
carbolymer Oct 6, 2025
cefeb1d
cardano-tracer: integrate o-n 0.22
crocodile-dentist Oct 4, 2025
93f4740
Update SRPs for api and cli
ana-pantilie Oct 7, 2025
5d04140
Merge remote-tracking branch 'origin/master' into ana/10.6-final-inte…
ana-pantilie Oct 7, 2025
59b41d3
Bump consensus version
jasagredo Oct 2, 2025
eeb0a0d
Make Dijkstra genesis parsing dependent on ExperimentalHardForksEnabled
jasagredo Oct 2, 2025
daefbfa
Merge remote-tracking branch 'origin/ana/10.6-final-integration-mix' …
ana-pantilie Oct 7, 2025
84b653e
Remove redundant imports
ana-pantilie Oct 7, 2025
51d98ce
Remove allow-newer for quickcheck
ana-pantilie Oct 7, 2025
0007d47
Add dijkstra genesis support to cardano-testnet - wip
carbolymer Oct 7, 2025
d27548b
cardano-testnet | Remove non-p2p topology, use only p2p
carbolymer Oct 8, 2025
7503c64
Disable cardano-testnet tests, update srps
carbolymer Oct 8, 2025
b6a1c30
Make `PraosTiebreakerView` tracing nicer
jasagredo Oct 8, 2025
fc8ecae
Make tracing tests compile
carbolymer Oct 9, 2025
d2cdf44
Fix for PreSyncingToSyncing and SyncingToPreSyncing
jutaro Oct 10, 2025
dfca48f
Remove unused config values from mainnet-config.json
jutaro Oct 10, 2025
20b4fc0
Make the yaml version equal the json
jutaro Oct 10, 2025
e60f74a
Fix 'LedgerTablesHandleCreate'
jutaro Oct 10, 2025
559b250
Fix redundant import
ana-pantilie Oct 10, 2025
7f66d4f
Merge remote-tracking branch 'origin/ana/10.6-final-integration-mix' …
ana-pantilie Oct 10, 2025
564f557
Address review comments; update SRPs
ana-pantilie Oct 10, 2025
acc0158
Merge pull request #6338 from IntersectMBO/ana/other-packages-10.6
ana-pantilie Oct 10, 2025
108578e
Fix warnings
ana-pantilie Oct 10, 2025
95c7bfe
Address review comment
ana-pantilie Oct 10, 2025
20c2719
Address cardano-testnet remarks
carbolymer Oct 10, 2025
0333cff
Removed non p2p topology
coot Oct 10, 2025
4777ded
cardano-testnet | disable peer-sharing
carbolymer Oct 10, 2025
1db683c
wb: supply DijkstraGenesisFile
mgmeier Oct 13, 2025
883b204
cardano-profile: remove cost model size-changing PParam updates from …
mgmeier Oct 13, 2025
3aae876
tx-generator: cleanups for Node 10.6
mgmeier Oct 13, 2025
64f18a3
cardano-testnet: updated after removal of NonP2PTopology
coot Oct 13, 2025
7255d41
cardano-testnet: updated golden file
coot Oct 13, 2025
bbeafaf
Update cardano-api
carbolymer Oct 14, 2025
6c02585
bench: various maintenance
mgmeier Oct 14, 2025
15035cc
Add plutus SRP, update api and cli srps
ana-pantilie Oct 16, 2025
ce90fec
Update SRPs; fix profiling build
ana-pantilie Oct 16, 2025
d13a546
Address review comment: LedgerTablesHandle severity change
ana-pantilie Oct 16, 2025
d6e3d15
Address review comments: fix severities/missing cases in Tracers/Cons…
ana-pantilie Oct 16, 2025
99647a6
Fix cardano-testnet configuration, making valency depending on the nu…
carbolymer Oct 17, 2025
51a4c68
Update CHaP index, remove Plutus SRP, update other SRPs
ana-pantilie Oct 20, 2025
301b5be
Fix and reenable cardano-testnet
carbolymer Oct 13, 2025
7662359
Fix hlint errors in kes-period-info and leadership-schedule tests
carbolymer Oct 21, 2025
68dbbfb
cardano-node: skip warning unless automatic shutdown is actually conf…
mgmeier Oct 21, 2025
85e0ac9
cardano-node: remove circular definition
mgmeier Oct 21, 2025
496c854
Update CHaP index, update SRPs
ana-pantilie Oct 21, 2025
8727a75
Update lower bound on ouroboros-network-framework
ana-pantilie Oct 21, 2025
d238172
Merge remote-tracking branch 'origin/master' into ana/10.6-final-inte…
ana-pantilie Oct 21, 2025
73690f8
cardanoCfg: update cfg for iohk-nix 10.6.0 changes
johnalotoski Aug 6, 2025
c794383
cardanoCfg: rm legacy network cfg w/ networking now only p2p
johnalotoski Aug 7, 2025
940e0c4
ci: align the static mainnet yaml GHA w/ the new cfg
johnalotoski Aug 6, 2025
f4fefba
nodeNixosSvc: add SRV record support
johnalotoski Aug 6, 2025
756b681
nodeNixosSvc: add peer-snapshot to mainnet topo by default
johnalotoski Aug 6, 2025
3f7050d
releaseBins: rm bp cfg and adjust peerSnap topo filename
johnalotoski Aug 7, 2025
63e86c7
nodeOci: rm bp cfg, adj peerSnap topo filename, rm deprecated cfg
johnalotoski Aug 7, 2025
c619d29
nodeNixosSvc: depcreate the useNewTopology opt
johnalotoski Aug 7, 2025
57e35a7
tracerNixosSvc: add nix support for tracer HOST:PORT netconns to/from…
johnalotoski Aug 8, 2025
6c7333a
ci: fix eval warn errors in hydra due to svc module eval
johnalotoski Aug 8, 2025
dec9d9e
nodeNixosSvc: add to the useNewTopology option description
johnalotoski Aug 12, 2025
cbb2d1f
bump: iohkNix for 10.6.0 changes
johnalotoski Aug 6, 2025
e1763d1
releaseBins: add per-env submit-api-config.json
johnalotoski Sep 12, 2025
60c91a1
iohkNix: rm obsolete tracers, update peerSnaps, useLedgerAfterSlot
johnalotoski Oct 13, 2025
c4d496d
Merge pull request #6300 from IntersectMBO/jl/10.6.0-pre-nix-cfg-updates
johnalotoski Oct 21, 2025
f5ca5e0
docker: update docs for new snapshot-converter args
johnalotoski Oct 22, 2025
cbc6be6
Bump trace severity level for successfully loading a peer snapshot
crocodile-dentist Oct 23, 2025
706faab
Update cardano-api-10.19.0.0 cardano-cli-10.13.0.0
carbolymer Oct 24, 2025
fba501a
Update CHaP
ana-pantilie Oct 24, 2025
f35599f
Bump cardano-tracer and trace-forward
ana-pantilie Oct 24, 2025
10b1a67
rm: redundant update cfg line
johnalotoski Oct 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bench/locli/locli.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ library
, hashable
, optparse-applicative-fork >= 0.18.1
, ouroboros-consensus
, ouroboros-network-api ^>= 0.14
, ouroboros-network-api ^>= 0.16
, sop-core
, split
, sqlite-easy >= 1.1.0.1
Expand Down Expand Up @@ -212,7 +212,7 @@ test-suite test-locli
build-depends: cardano-prelude
, containers
, hedgehog
, hedgehog-extras ^>= 0.8
, hedgehog-extras ^>= 0.10
, locli
, text

Expand Down
6 changes: 3 additions & 3 deletions bench/plutus-scripts-bench/plutus-scripts-bench.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ library
--------------------------
build-depends:
, cardano-api ^>=10.18
, plutus-ledger-api ^>=1.45
, plutus-tx ^>=1.45
, plutus-tx-plugin ^>=1.45
, plutus-ledger-api ^>=1.53
, plutus-tx ^>=1.53
, plutus-tx-plugin ^>=1.53

------------------------
-- Non-IOG dependencies
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ benchmarkConnectTxSubmit EnvConsts { .. } handshakeTracer submissionTracer codec
done <- NtN.connectTo
(socketSnocket envIOManager)
NetworkConnectTracers {
nctMuxTracer = mempty,
nctMuxTracers = Mux.nullTracers,
nctHandshakeTracer = handshakeTracer
}
peerMultiplex
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,20 @@ assume_cbor_properties

-- The cost of map entries in metadata follows a step function.
-- This assumes the map indices are [0..n].
prop_mapCostsShelley :: Bool
prop_mapCostsAllegra :: Bool
prop_mapCostsMary :: Bool
prop_mapCostsAlonzo :: Bool
prop_mapCostsBabbage :: Bool
prop_mapCostsConway :: Bool
prop_mapCostsShelley = measureMapCosts AsShelleyEra == assumeMapCosts AsShelleyEra
prop_mapCostsAllegra = measureMapCosts AsAllegraEra == assumeMapCosts AsAllegraEra
prop_mapCostsMary = measureMapCosts AsMaryEra == assumeMapCosts AsMaryEra
prop_mapCostsAlonzo = measureMapCosts AsAlonzoEra == assumeMapCosts AsAlonzoEra
prop_mapCostsBabbage = measureMapCosts AsBabbageEra == assumeMapCosts AsBabbageEra
prop_mapCostsConway = measureMapCosts AsConwayEra == assumeMapCosts AsConwayEra
prop_mapCostsShelley :: Bool
prop_mapCostsAllegra :: Bool
prop_mapCostsMary :: Bool
prop_mapCostsAlonzo :: Bool
prop_mapCostsBabbage :: Bool
prop_mapCostsConway :: Bool
prop_mapCostsDijkstra :: Bool
prop_mapCostsShelley = measureMapCosts AsShelleyEra == assumeMapCosts AsShelleyEra
prop_mapCostsAllegra = measureMapCosts AsAllegraEra == assumeMapCosts AsAllegraEra
prop_mapCostsMary = measureMapCosts AsMaryEra == assumeMapCosts AsMaryEra
prop_mapCostsAlonzo = measureMapCosts AsAlonzoEra == assumeMapCosts AsAlonzoEra
prop_mapCostsBabbage = measureMapCosts AsBabbageEra == assumeMapCosts AsBabbageEra
prop_mapCostsConway = measureMapCosts AsConwayEra == assumeMapCosts AsConwayEra
prop_mapCostsDijkstra = measureMapCosts AsDijkstraEra == assumeMapCosts AsDijkstraEra

assumeMapCosts :: forall era . IsShelleyBasedEra era => AsType era -> [Int]
assumeMapCosts _proxy = stepFunction [
Expand All @@ -63,12 +65,13 @@ assumeMapCosts _proxy = stepFunction [
]
where
firstEntry = case shelleyBasedEra @era of
ShelleyBasedEraShelley -> 37
ShelleyBasedEraAllegra -> 39
ShelleyBasedEraMary -> 39
ShelleyBasedEraAlonzo -> 42
ShelleyBasedEraBabbage -> 42
ShelleyBasedEraConway -> 42
ShelleyBasedEraShelley -> 37
ShelleyBasedEraAllegra -> 39
ShelleyBasedEraMary -> 39
ShelleyBasedEraAlonzo -> 42
ShelleyBasedEraBabbage -> 42
ShelleyBasedEraConway -> 42
ShelleyBasedEraDijkstra -> 42

-- Bytestring costs are not LINEAR !!
-- Costs are piecewise linear for payload sizes [0..23] and [24..64].
Expand Down Expand Up @@ -141,12 +144,13 @@ mkMetadata size
else Right $ metadataInEra $ Just metadata
where
minSize = case shelleyBasedEra @era of
ShelleyBasedEraShelley -> 37
ShelleyBasedEraAllegra -> 39
ShelleyBasedEraMary -> 39
ShelleyBasedEraAlonzo -> 39 -- TODO: check minSize for Alonzo
ShelleyBasedEraBabbage -> 39 -- TODO: check minSize for Babbage
ShelleyBasedEraConway -> 39 -- TODO: check minSize for Conway
ShelleyBasedEraShelley -> 37
ShelleyBasedEraAllegra -> 39
ShelleyBasedEraMary -> 39
ShelleyBasedEraAlonzo -> 39 -- TODO: check minSize for Alonzo
ShelleyBasedEraBabbage -> 39 -- TODO: check minSize for Babbage
ShelleyBasedEraConway -> 39 -- TODO: check minSize for Conway
ShelleyBasedEraDijkstra -> 39 -- TODO: check minSize for Dijkstra
nettoSize = size - minSize

-- At 24 the CBOR representation changes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ txSubmissionClient tr bmtr initialTxSource endOfProtocolCallback =
where
getTxSize :: Tx era -> Integer
getTxSize (ShelleyTx sbe tx) =
shelleyBasedEraConstraints sbe $ tx ^. Ledger.sizeTxF
shelleyBasedEraConstraints sbe $ toInteger (tx ^. Ledger.sizeTxF)

toGenTx :: Tx era -> GenTx CardanoBlock
toGenTx tx = toConsensusGenTx $ TxInMode shelleyBasedEra tx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module Cardano.Benchmarking.OuroborosImports
, ShelleyGenesis
, SigningKey
, SigningKeyFile
, StandardShelley
, NetworkId
-- , getGenesis
, makeLocalConnectInfo
Expand All @@ -35,7 +34,7 @@ import qualified Ouroboros.Consensus.Cardano as Consensus
import Ouroboros.Consensus.Config (TopLevelConfig, configBlock, configCodec)
import Ouroboros.Consensus.Config.SupportsNode (ConfigSupportsNode (..), getNetworkMagic)
import Ouroboros.Consensus.Node (ProtocolInfo (..))
import Ouroboros.Consensus.Shelley.Eras (StandardCrypto, StandardShelley)
import Ouroboros.Consensus.Shelley.Eras (StandardCrypto)
import Ouroboros.Network.Protocol.LocalTxSubmission.Type (SubmitResult (..))

import Prelude
Expand Down
15 changes: 8 additions & 7 deletions bench/tx-generator/src/Cardano/Benchmarking/Script/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,14 @@ liftCoreWithEra era coreCall = withEra era ( liftIO . runExceptT . coreCall)
withEra :: AnyCardanoEra -> (forall era. IsShelleyBasedEra era => AsType era -> ActionM x) -> ActionM x
withEra era action = do
case era of
AnyCardanoEra ConwayEra -> action AsConwayEra
AnyCardanoEra BabbageEra -> action AsBabbageEra
AnyCardanoEra AlonzoEra -> action AsAlonzoEra
AnyCardanoEra MaryEra -> action AsMaryEra
AnyCardanoEra AllegraEra -> action AsAllegraEra
AnyCardanoEra ShelleyEra -> action AsShelleyEra
AnyCardanoEra ByronEra -> error "byron not supported"
AnyCardanoEra ConwayEra -> action AsConwayEra
AnyCardanoEra BabbageEra -> action AsBabbageEra
AnyCardanoEra AlonzoEra -> action AsAlonzoEra
AnyCardanoEra MaryEra -> action AsMaryEra
AnyCardanoEra AllegraEra -> action AsAllegraEra
AnyCardanoEra ShelleyEra -> action AsShelleyEra
AnyCardanoEra ByronEra -> error "byron not supported"
AnyCardanoEra DijkstraEra -> action AsDijkstraEra

setProtocolParameters :: ProtocolParametersSource -> ActionM ()
setProtocolParameters s = case s of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE DataKinds #-}

{--
Due to the changes to "cardano-api" listed below it was decided to move
Expand Down Expand Up @@ -32,9 +33,9 @@ where

import Cardano.Api (AnyPlutusScriptVersion (..), CostModel, ExecutionUnitPrices (..),
ExecutionUnits, LedgerProtocolParameters (..),
PlutusScriptVersion (PlutusScriptV1, PlutusScriptV2, PlutusScriptV3), PraosNonce,
PlutusScriptVersion (PlutusScriptV1, PlutusScriptV2, PlutusScriptV3, PlutusScriptV4), PraosNonce,
ProtocolParametersConversionError (..),
ShelleyBasedEra (ShelleyBasedEraAllegra, ShelleyBasedEraAlonzo, ShelleyBasedEraBabbage, ShelleyBasedEraConway, ShelleyBasedEraMary, ShelleyBasedEraShelley),
ShelleyBasedEra (ShelleyBasedEraAllegra, ShelleyBasedEraAlonzo, ShelleyBasedEraBabbage, ShelleyBasedEraConway, ShelleyBasedEraMary, ShelleyBasedEraShelley, ShelleyBasedEraDijkstra),
ShelleyLedgerEra, fromAlonzoCostModels, fromAlonzoExUnits, fromAlonzoPrices,
makePraosNonce, toAlonzoCostModels, toAlonzoExUnits, toAlonzoPrices,
toLedgerNonce)
Expand Down Expand Up @@ -242,6 +243,7 @@ fromPlutusLanguageName :: Plutus.Language -> AnyPlutusScriptVersion
fromPlutusLanguageName Plutus.PlutusV1 = AnyPlutusScriptVersion PlutusScriptV1
fromPlutusLanguageName Plutus.PlutusV2 = AnyPlutusScriptVersion PlutusScriptV2
fromPlutusLanguageName Plutus.PlutusV3 = AnyPlutusScriptVersion PlutusScriptV3
fromPlutusLanguageName Plutus.PlutusV4 = AnyPlutusScriptVersion PlutusScriptV4

instance Aeson.ToJSON ProtocolParameters where
toJSON ProtocolParameters{..} =
Expand Down Expand Up @@ -296,6 +298,7 @@ toPlutusLanguageName :: AnyPlutusScriptVersion -> Plutus.Language
toPlutusLanguageName (AnyPlutusScriptVersion PlutusScriptV1) = Plutus.PlutusV1
toPlutusLanguageName (AnyPlutusScriptVersion PlutusScriptV2) = Plutus.PlutusV2
toPlutusLanguageName (AnyPlutusScriptVersion PlutusScriptV3) = Plutus.PlutusV3
toPlutusLanguageName (AnyPlutusScriptVersion PlutusScriptV4) = Plutus.PlutusV4

-- Praos nonce.
--------------------------------------------------------------------------------
Expand Down Expand Up @@ -348,6 +351,7 @@ toLedgerPParams ShelleyBasedEraMary = toShelleyPParams
toLedgerPParams ShelleyBasedEraAlonzo = toAlonzoPParams
toLedgerPParams ShelleyBasedEraBabbage = toBabbagePParams
toLedgerPParams ShelleyBasedEraConway = toConwayPParams
toLedgerPParams ShelleyBasedEraDijkstra = toConwayPParams

-- Was removed in "cardano-api" module "Cardano.Api.Internal.ProtocolParameters"
toShelleyCommonPParams
Expand Down Expand Up @@ -396,8 +400,8 @@ toShelleyCommonPParams
-- Was removed in "cardano-api" module "Cardano.Api.Internal.ProtocolParameters"
toShelleyPParams
:: ( EraPParams ledgerera
, Ledger.AtMostEra Ledger.MaryEra ledgerera
, Ledger.AtMostEra Ledger.AlonzoEra ledgerera
, Ledger.AtMostEra "Mary" ledgerera
, Ledger.AtMostEra "Alonzo" ledgerera
)
=> ProtocolParameters
-> Either ProtocolParametersConversionError (PParams ledgerera)
Expand Down Expand Up @@ -517,6 +521,7 @@ fromLedgerPParams ShelleyBasedEraMary = fromShelleyPParams
fromLedgerPParams ShelleyBasedEraAlonzo = fromExactlyAlonzoPParams
fromLedgerPParams ShelleyBasedEraBabbage = fromBabbagePParams
fromLedgerPParams ShelleyBasedEraConway = fromConwayPParams
fromLedgerPParams ShelleyBasedEraDijkstra = fromConwayPParams

-- TODO: Use the ledger's PParams (from module Cardano.Api.Ledger) type instead.
fromShelleyCommonPParams
Expand Down Expand Up @@ -556,8 +561,8 @@ fromShelleyCommonPParams pp =
-- TODO: Use the ledger's PParams (from module Cardano.Api.Ledger) type instead.
fromShelleyPParams
:: ( EraPParams ledgerera
, Ledger.AtMostEra Ledger.MaryEra ledgerera
, Ledger.AtMostEra Ledger.AlonzoEra ledgerera
, Ledger.AtMostEra "Mary" ledgerera
, Ledger.AtMostEra "Alonzo" ledgerera
)
=> PParams ledgerera
-> ProtocolParameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ getGenesis (SomeConsensusProtocol CardanoBlockType proto)
getGenesisPath :: NodeConfiguration -> Maybe GenesisFile
getGenesisPath nodeConfig =
case ncProtocolConfig nodeConfig of
NodeProtocolConfigurationCardano _ shelleyConfig _ _ _ _ ->
NodeProtocolConfigurationCardano _ shelleyConfig _ _ _ _ _ ->
Just $ npcShelleyGenesisFile shelleyConfig

mkConsensusProtocol :: NodeConfiguration -> IO (Either TxGenError SomeConsensusProtocol)
mkConsensusProtocol nodeConfig =
case ncProtocolConfig nodeConfig of
NodeProtocolConfigurationCardano byronConfig shelleyConfig alonzoConfig conwayConfig hardforkConfig checkpointsConfig ->
NodeProtocolConfigurationCardano byronConfig shelleyConfig alonzoConfig conwayConfig dijkstraConfig hardforkConfig checkpointsConfig ->
first ProtocolError
<$> runExceptT (mkSomeConsensusProtocolCardano byronConfig shelleyConfig alonzoConfig conwayConfig hardforkConfig checkpointsConfig Nothing)
<$> runExceptT (mkSomeConsensusProtocolCardano byronConfig shelleyConfig alonzoConfig conwayConfig dijkstraConfig hardforkConfig checkpointsConfig Nothing)

-- | Creates a NodeConfiguration from a config file;
-- the result is devoid of any keys/credentials
Expand Down
8 changes: 4 additions & 4 deletions bench/tx-generator/src/Cardano/TxGenerator/Setup/Plutus.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{-# LANGUAGE NamedFieldPuns #-}
{-# LANGUAGE RankNTypes #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeApplications #-}

{-|
Module : Cardano.TxGenerator.Setup.Plutus
Expand All @@ -20,11 +19,12 @@
import Data.Int (Int64)
import Data.Map.Strict as Map (lookup)

import Control.Exception (displayException)

Check warning on line 22 in bench/tx-generator/src/Cardano/TxGenerator/Setup/Plutus.hs

View workflow job for this annotation

GitHub Actions / build

Warning in module Cardano.TxGenerator.Setup.Plutus: Use fewer imports ▫︎ Found: "import Control.Exception ( displayException )\nimport Control.Exception ( SomeException(..), try )\n" ▫︎ Perhaps: "import Control.Exception\n ( displayException, SomeException(..), try )\n"
import Control.Monad.Trans.Except
import Control.Monad.Trans.Except.Extra
import Control.Monad.Writer (runWriter)

import Cardano.CLI.Read (readFileScriptInAnyLang, ScriptDecodeError)
import Cardano.CLI.Read (readFileScriptInAnyLang)

import Cardano.Api
import Cardano.Ledger.Plutus.TxInfo (exBudgetToExUnits)
Expand Down Expand Up @@ -72,8 +72,8 @@
doLoad fp = second (second (const $ ResolvedToFallback asFileName)) <$> readPlutusScript (Right fp)
readPlutusScript (Right fp)
= runExceptT $ do
script <- firstExceptT (ApiError @ScriptDecodeError) $
readFileScriptInAnyLang fp
script <-
handleExceptT (\(e :: SomeException) -> ApiError $ displayException e) (readFileScriptInAnyLang fp)
case script of
ScriptInAnyLang (PlutusScriptLanguage _) _ -> pure (script, ResolvedToFileName fp)
ScriptInAnyLang lang _ -> throwE $ TxGenError $ "readPlutusScript: only PlutusScript supported, found: " ++ show lang
Expand Down
15 changes: 8 additions & 7 deletions bench/tx-generator/src/Cardano/TxGenerator/Utils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ import GHC.Stack
-- regardless of which particular era.
liftAnyEra :: ( forall era. IsCardanoEra era => f1 era -> f2 era ) -> InAnyCardanoEra f1 -> InAnyCardanoEra f2
liftAnyEra f x = case x of
InAnyCardanoEra ByronEra a -> InAnyCardanoEra ByronEra $ f a
InAnyCardanoEra ShelleyEra a -> InAnyCardanoEra ShelleyEra $ f a
InAnyCardanoEra AllegraEra a -> InAnyCardanoEra AllegraEra $ f a
InAnyCardanoEra MaryEra a -> InAnyCardanoEra MaryEra $ f a
InAnyCardanoEra AlonzoEra a -> InAnyCardanoEra AlonzoEra $ f a
InAnyCardanoEra BabbageEra a -> InAnyCardanoEra BabbageEra $ f a
InAnyCardanoEra ConwayEra a -> InAnyCardanoEra ConwayEra $ f a
InAnyCardanoEra ByronEra a -> InAnyCardanoEra ByronEra $ f a
InAnyCardanoEra ShelleyEra a -> InAnyCardanoEra ShelleyEra $ f a
InAnyCardanoEra AllegraEra a -> InAnyCardanoEra AllegraEra $ f a
InAnyCardanoEra MaryEra a -> InAnyCardanoEra MaryEra $ f a
InAnyCardanoEra AlonzoEra a -> InAnyCardanoEra AlonzoEra $ f a
InAnyCardanoEra BabbageEra a -> InAnyCardanoEra BabbageEra $ f a
InAnyCardanoEra ConwayEra a -> InAnyCardanoEra ConwayEra $ f a
InAnyCardanoEra DijkstraEra a -> InAnyCardanoEra DijkstraEra $ f a

-- | `keyAddress` determines an address for the relevant era.
keyAddress :: forall era. IsShelleyBasedEra era => NetworkId -> SigningKey PaymentKey -> AddressInEra era
Expand Down
3 changes: 1 addition & 2 deletions bench/tx-generator/tx-generator.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ library
, formatting
, generic-monoid
, ghc-prim
, io-classes
, io-classes:{io-classes, strict-stm}
, microlens
, mtl
, network
Expand All @@ -154,7 +154,6 @@ library
, random
, serialise
, streaming
, strict-stm
, cardano-ledger-shelley
, prettyprinter
, stm
Expand Down
19 changes: 17 additions & 2 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ repository cardano-haskell-packages
-- See CONTRIBUTING for information about these, including some Nix commands
-- you need to run if you change them
index-state:
, hackage.haskell.org 2025-06-24T21:06:59Z
, cardano-haskell-packages 2025-09-18T12:21:32Z
, hackage.haskell.org 2025-09-24T20:00:55Z
, cardano-haskell-packages 2025-09-30T09:59:24Z

packages:
cardano-node
Expand Down Expand Up @@ -72,3 +72,18 @@ if impl (ghc >= 9.12)
-- IMPORTANT
-- Do NOT add more source-repository-package stanzas here unless they are strictly
-- temporary! Please read the section in CONTRIBUTING about updating dependencies.

source-repository-package
type: git
location: https://github.com/intersectmbo/cardano-cli.git
tag: e660e5f592ed0f10ef950c8a15fa78d8bacf6450
--sha256: sha256-QlJhgEeRTr9qeC+MFaGDOGhmeOC73TxRZdix7I9Jcm8=
subdir: cardano-cli

source-repository-package
type: git
location: https://github.com/IntersectMBO/cardano-api
tag: 845b761ba38c65c7d4ad4c2c14c4c034598fba23
--sha256: sha256-EAAFJ5yyeblUTNl1usk3ZVwFW6YL9pOLkIQpd0CDIcs=
subdir:
cardano-api
8 changes: 3 additions & 5 deletions cardano-node-chairman/cardano-node-chairman.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,17 @@ executable cardano-node-chairman
build-depends: cardano-api
, cardano-crypto-class
, cardano-git-rev ^>= 0.2.2
, cardano-ledger-core ^>= 1.17
, cardano-ledger-core ^>= 1.18
, cardano-node ^>= 10.5
, cardano-prelude
, containers
, contra-tracer
, io-classes
, io-classes:{io-classes, strict-stm, si-timers}
, optparse-applicative-fork
, ouroboros-consensus
, ouroboros-consensus-cardano
, ouroboros-network-api
, ouroboros-network-protocols
, strict-stm
, si-timers
, text
, time

Expand All @@ -75,7 +73,7 @@ test-suite chairman-tests
, data-default-class
, filepath
, hedgehog
, hedgehog-extras ^>= 0.8
, hedgehog-extras ^>= 0.10
, network
, process
, random
Expand Down
Loading
Loading