Skip to content

Commit a11e696

Browse files
committed
Update deps, complete tracers
1 parent 84980c1 commit a11e696

File tree

10 files changed

+86
-78
lines changed

10 files changed

+86
-78
lines changed

bench/plutus-scripts-bench/plutus-scripts-bench.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ library
8282
-- IOG dependencies
8383
--------------------------
8484
build-depends:
85-
, cardano-api ^>=10.19
85+
, cardano-api ^>=10.20
8686
, plutus-ledger-api ^>=1.53
8787
, plutus-tx ^>=1.53
8888
, plutus-tx-plugin ^>=1.53

bench/tx-generator/tx-generator.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ library
111111
, attoparsec-aeson
112112
, base16-bytestring
113113
, bytestring
114-
, cardano-api ^>= 10.19
114+
, cardano-api ^>= 10.20
115115
, cardano-binary
116116
, cardano-cli ^>= 10.13
117117
, cardano-crypto-class

cabal.project

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ repository cardano-haskell-packages
1313
-- See CONTRIBUTING for information about these, including some Nix commands
1414
-- you need to run if you change them
1515
index-state:
16-
, hackage.haskell.org 2025-10-17T00:26:22Z
16+
, hackage.haskell.org 2025-12-03T15:53:31Z
1717
, cardano-haskell-packages 2025-11-20T19:55:27Z
1818

1919
packages:
@@ -67,23 +67,24 @@ allow-newer:
6767
source-repository-package
6868
type: git
6969
location: https://github.com/intersectmbo/cardano-cli.git
70-
tag: 86ccb5dae44af6f085b594a9f7b516f1e2345d28
71-
--sha256: sha256-sCYz2MEQ51YERL99iXN+rf0TXXz3FD13Pv+AYT/2RSo=
70+
tag: 9bed9ca66fb4d0d7854e748c681d842bac202051
71+
--sha256: sha256-7q/g7RHjO1sSW8RDiq47TpQccVOHOciDohgavH/g9t8=
7272
subdir: cardano-cli
7373

7474
source-repository-package
7575
type: git
7676
location: https://github.com/IntersectMBO/cardano-api
77-
tag: c03ca3c768e21ec2c6f5761af5007894116fd8ac
78-
--sha256: sha256-8tcpe3UyqoEy+IUaBZ8UaWB4X5gvox+2/h3ccxxaNjs=
77+
tag: 3d33855a5af6c6f2bb37b0c417f1ceb474ae079f
78+
--sha256: sha256-zsEu8ZxF5/fLgokv/4kkII3j8/JbCvrnsHDueQyI6xI=
7979
subdir:
8080
cardano-api
8181

8282
source-repository-package
8383
type: git
8484
location: https://github.com/IntersectMBO/ouroboros-consensus
85-
tag: d14d43e6582da900a75cb97c5c4d0292d232052f
86-
--sha256: sha256-Zn9gnpR9JnWcs0X4xUAWgJVzmTHjTHdn7uLwKw7erwQ=
85+
tag: baf4ebbd924433543f8c5142b370b1061ac2e7bb
86+
--sha256: sha256-dCNFxrLF7MPqNRc9aIwl2AZpjHqw9dGerTudo7GQzao=
87+
8788
subdir:
8889
ouroboros-consensus
8990
ouroboros-consensus-cardano
@@ -121,10 +122,10 @@ source-repository-package
121122

122123
-- Backported version of https://github.com/IntersectMBO/ouroboros-network/pull/5161
123124
source-repository-package
124-
type: git
125-
location: https://github.com/IntersectMBO/ouroboros-network
126-
tag: 1385b53cefb81e79553b6b0252537455833ea9c4
127-
--sha256: sha256-zZ7WsMfRs1fG16bmvI5vIh4fhQ8RGyEvYGLSWlrxpg0=
128-
subdir:
129-
ouroboros-network-api
130-
ouroboros-network
125+
type: git
126+
location: https://github.com/IntersectMBO/ouroboros-network
127+
tag: dfcb1f9c578ec8cd5114fea9696e7be6c9001323
128+
--sha256: sha256-omXPdi/T/f3gq9rOH20zX+x3WvaxlB704g07RF/13Nk=
129+
subdir:
130+
ouroboros-network-api
131+
ouroboros-network

cardano-node/cardano-node.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ library
141141
, async
142142
, base16-bytestring
143143
, bytestring
144-
, cardano-api ^>= 10.19
144+
, cardano-api ^>= 10.20
145145
, cardano-crypto-class ^>=2.2.3.2
146146
, cardano-crypto-wrapper
147147
, cardano-git-rev ^>=0.2.2

cardano-node/src/Cardano/Node/Tracing/Era/Shelley.hs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,8 +1073,14 @@ instance
10731073
, LogFormatting (PredicateFailure (Ledger.EraRule "CERTS" era))
10741074
) => LogFormatting (Conway.ConwayLedgerPredFailure era) where
10751075
forMachine v (Conway.ConwayUtxowFailure f) = forMachine v f
1076-
forMachine _verb (Conway.ConwayWithdrawalsMissingAccounts _) = mconcat [ "todo" .= String "todo"]
1077-
forMachine _verb (Conway.ConwayIncompleteWithdrawals _) = mconcat [ "todo" .= String "todo"]
1076+
forMachine _ (Conway.ConwayWithdrawalsMissingAccounts missingWithdrawals) =
1077+
mconcat [ "kind" .= String "ConwayWithdrawalsMissingAccounts"
1078+
, "withdrawals" .= unWithdrawals missingWithdrawals
1079+
]
1080+
forMachine _ (Conway.ConwayIncompleteWithdrawals incompleteWithdrawals) =
1081+
mconcat [ "kind" .= String "ConwayIncompleteWithdrawals"
1082+
, "withdrawals" .= unWithdrawals incompleteWithdrawals
1083+
]
10781084
forMachine _ (Conway.ConwayTxRefScriptsSizeTooBig Mismatch {mismatchSupplied, mismatchExpected}) =
10791085
mconcat [ "kind" .= String "ConwayTxRefScriptsSizeTooBig"
10801086
, "actual" .= mismatchSupplied

cardano-node/src/Cardano/Node/Tracing/Tracers/ChainDB.hs

Lines changed: 47 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1874,29 +1874,43 @@ instance LogFormatting LedgerDB.TraceForkerEventWithKey where
18741874
"Forker " <> showT k <> ": " <> forHuman ev
18751875

18761876
instance LogFormatting LedgerDB.TraceForkerEvent where
1877-
forMachine _dtals LedgerDB.ForkerOpen = mempty
1878-
forMachine _dtals LedgerDB.ForkerCloseUncommitted = mempty
1879-
forMachine _dtals LedgerDB.ForkerCloseCommitted = mempty
1880-
forMachine _dtals LedgerDB.ForkerReadTablesStart = mempty
1881-
forMachine _dtals LedgerDB.ForkerReadTablesEnd = mempty
1882-
forMachine _dtals LedgerDB.ForkerRangeReadTablesStart = mempty
1883-
forMachine _dtals LedgerDB.ForkerRangeReadTablesEnd = mempty
1877+
forMachine _dtals LedgerDB.ForkerOpen =
1878+
mconcat [ "kind" .= String "ForkerOpen" ]
1879+
forMachine _dtals (LedgerDB.ForkerReadTables e) =
1880+
mconcat [ "kind" .= String "ForkerReadTables"
1881+
, "edge" .= case e of
1882+
RisingEdge -> String "RisingEdge"
1883+
FallingEdgeWith t -> toJSON t
1884+
]
1885+
forMachine _dtals (LedgerDB.ForkerRangeReadTables e) =
1886+
mconcat [ "kind" .= String "ForkerRangeReadTables"
1887+
, "edge" .= case e of
1888+
RisingEdge -> String "RisingEdge"
1889+
FallingEdgeWith t -> toJSON t
1890+
]
18841891
forMachine _dtals LedgerDB.ForkerReadStatistics = mempty
1885-
forMachine _dtals LedgerDB.ForkerPushStart = mempty
1886-
forMachine _dtals LedgerDB.ForkerPushEnd = mempty
1887-
forMachine _dtals LedgerDB.DanglingForkerClosed = mempty
1892+
forMachine _dtals (LedgerDB.ForkerPush e) =
1893+
mconcat [ "kind" .= String "ForkerPush"
1894+
, "edge" .= case e of
1895+
RisingEdge -> String "RisingEdge"
1896+
FallingEdgeWith t -> toJSON t
1897+
]
1898+
forMachine _dtals (LedgerDB.ForkerClose wc) =
1899+
mconcat [ "kind" .= String "ForkerClose"
1900+
, "wasCommitted" .= toJSON (wc == LedgerDB.ForkerWasCommitted)
1901+
]
18881902

18891903
forHuman LedgerDB.ForkerOpen = "Opened forker"
1890-
forHuman LedgerDB.ForkerCloseUncommitted = "Forker closed without committing"
1891-
forHuman LedgerDB.ForkerCloseCommitted = "Forker closed after committing"
1892-
forHuman LedgerDB.ForkerReadTablesStart = "Started to read tables"
1893-
forHuman LedgerDB.ForkerReadTablesEnd = "Finish reading tables"
1894-
forHuman LedgerDB.ForkerRangeReadTablesStart = "Started to range read tables"
1895-
forHuman LedgerDB.ForkerRangeReadTablesEnd = "Finish range reading tables"
1896-
forHuman LedgerDB.ForkerReadStatistics = "Gathering statistics"
1897-
forHuman LedgerDB.ForkerPushStart = "Started to push"
1898-
forHuman LedgerDB.ForkerPushEnd = "Pushed"
1899-
forHuman LedgerDB.DanglingForkerClosed = "Closed dangling forker"
1904+
forHuman (LedgerDB.ForkerReadTables RisingEdge) = "Forker reading tables"
1905+
forHuman (LedgerDB.ForkerReadTables (FallingEdgeWith t)) = "Forker read tables, took " <> showT t
1906+
forHuman (LedgerDB.ForkerRangeReadTables RisingEdge) = "Forker range reading tables"
1907+
forHuman (LedgerDB.ForkerRangeReadTables (FallingEdgeWith t)) = "Forker range read tables, took " <> showT t
1908+
forHuman LedgerDB.ForkerReadStatistics = "Forker gathering statistics"
1909+
forHuman (LedgerDB.ForkerPush RisingEdge) = "Forker pushing"
1910+
forHuman (LedgerDB.ForkerPush (FallingEdgeWith t)) = "Forker pushed, took " <> showT t
1911+
forHuman (LedgerDB.ForkerClose wc) = "Closed forker, " <> case wc of
1912+
LedgerDB.ForkerWasCommitted -> "was committed"
1913+
LedgerDB.ForkerWasUncommitted -> "was discarded"
19001914

19011915
instance MetaTrace LedgerDB.TraceForkerEventWithKey where
19021916
namespaceFor (LedgerDB.TraceForkerEventWithKey _ ev) =
@@ -1910,48 +1924,29 @@ instance MetaTrace LedgerDB.TraceForkerEventWithKey where
19101924

19111925
instance MetaTrace LedgerDB.TraceForkerEvent where
19121926
namespaceFor LedgerDB.ForkerOpen = Namespace [] ["Open"]
1913-
namespaceFor LedgerDB.ForkerCloseUncommitted = Namespace [] ["CloseUncommitted"]
1914-
namespaceFor LedgerDB.ForkerCloseCommitted = Namespace [] ["CloseCommitted"]
1915-
namespaceFor LedgerDB.ForkerReadTablesStart = Namespace [] ["StartRead"]
1916-
namespaceFor LedgerDB.ForkerReadTablesEnd = Namespace [] ["FinishRead"]
1917-
namespaceFor LedgerDB.ForkerRangeReadTablesStart = Namespace [] ["StartRangeRead"]
1918-
namespaceFor LedgerDB.ForkerRangeReadTablesEnd = Namespace [] ["FinishRangeRead"]
1927+
namespaceFor LedgerDB.ForkerReadTables{} = Namespace [] ["Read"]
1928+
namespaceFor LedgerDB.ForkerRangeReadTables{} = Namespace [] ["RangeRead"]
19191929
namespaceFor LedgerDB.ForkerReadStatistics = Namespace [] ["Statistics"]
1920-
namespaceFor LedgerDB.ForkerPushStart = Namespace [] ["StartPush"]
1921-
namespaceFor LedgerDB.ForkerPushEnd = Namespace [] ["FinishPush"]
1922-
namespaceFor LedgerDB.DanglingForkerClosed = Namespace [] ["DanglingForkerClosed"]
1930+
namespaceFor LedgerDB.ForkerPush{} = Namespace [] ["Push"]
1931+
namespaceFor LedgerDB.ForkerClose{} = Namespace [] ["Close"]
19231932

19241933
severityFor _ _ = Just Debug
19251934

1926-
documentFor (Namespace _ ("Open" : _tl)) = Just
1927-
"A forker is being opened"
1928-
documentFor (Namespace _ ("CloseUncommitted" : _tl)) = Just $
1929-
mconcat [ "A forker was closed without being committed."
1930-
, " This is usually the case with forkers that are not opened for chain selection,"
1931-
, " and for forkers on discarded forks"]
1932-
documentFor (Namespace _ ("CloseCommitted" : _tl)) = Just "A forker was committed (the LedgerDB was modified accordingly) and closed"
1933-
documentFor (Namespace _ ("StartRead" : _tl)) = Just "The process for reading ledger tables started"
1934-
documentFor (Namespace _ ("FinishRead" : _tl)) = Just "Values from the ledger tables were read"
1935-
documentFor (Namespace _ ("StartRangeRead" : _tl)) = Just "The process for range reading ledger tables started"
1936-
documentFor (Namespace _ ("FinishRangeRead" : _tl)) = Just "Values from the ledger tables were range-read"
1935+
documentFor (Namespace _ ("Open" : _tl)) = Just "A forker is being opened"
1936+
documentFor (Namespace _ ("Read" : _tl)) = Just "A forker is reading values"
1937+
documentFor (Namespace _ ("RangeRead" : _tl)) = Just "A forker is range reading values"
19371938
documentFor (Namespace _ ("Statistics" : _tl)) = Just "Statistics were gathered from the forker"
1938-
documentFor (Namespace _ ("StartPush" : _tl)) = Just "A ledger state is going to be pushed to the forker"
1939-
documentFor (Namespace _ ("FinishPush" : _tl)) = Just "A ledger state was pushed to the forker"
1940-
documentFor (Namespace _ ("DanglingForkerClosed" : _tl)) = Just "A dangling forker was closed"
1939+
documentFor (Namespace _ ("Push" : _tl)) = Just "A forker is pushing a new ledger state"
1940+
documentFor (Namespace _ ("Close" : _tl)) = Just "A forker was closed"
19411941
documentFor _ = Nothing
19421942

19431943
allNamespaces = [
19441944
Namespace [] ["Open"]
1945-
, Namespace [] ["CloseUncommitted"]
1946-
, Namespace [] ["CloseCommitted"]
1947-
, Namespace [] ["StartRead"]
1948-
, Namespace [] ["FinishRead"]
1949-
, Namespace [] ["StartRangeRead"]
1950-
, Namespace [] ["FinishRangeRead"]
1945+
, Namespace [] ["Read"]
1946+
, Namespace [] ["RangeRead"]
19511947
, Namespace [] ["Statistics"]
1952-
, Namespace [] ["StartPush"]
1953-
, Namespace [] ["FinishPush"]
1954-
, Namespace [] ["DanglingForkerClosed"]
1948+
, Namespace [] ["Push"]
1949+
, Namespace [] ["Close"]
19551950
]
19561951

19571952
--------------------------------------------------------------------------------

cardano-node/src/Cardano/Tracing/OrphanInstances/Shelley.hs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,14 @@ instance
334334
, ToObject (PredicateFailure (Core.EraRule "GOV" ledgerera))
335335
) => ToObject (Conway.ConwayLedgerPredFailure ledgerera) where
336336
toObject verb (Conway.ConwayUtxowFailure f) = toObject verb f
337-
toObject _verb (Conway.ConwayWithdrawalsMissingAccounts _) = mconcat [ "todo" .= String "todo"]
338-
toObject _verb (Conway.ConwayIncompleteWithdrawals _) = mconcat [ "todo" .= String "todo"]
337+
toObject _ (Conway.ConwayWithdrawalsMissingAccounts missingWithdrawals) =
338+
mconcat [ "kind" .= String "ConwayWithdrawalsMissingAccounts"
339+
, "withdrawals" .= unWithdrawals missingWithdrawals
340+
]
341+
toObject _ (Conway.ConwayIncompleteWithdrawals incompleteWithdrawals) =
342+
mconcat [ "kind" .= String "ConwayIncompleteWithdrawals"
343+
, "withdrawals" .= unWithdrawals incompleteWithdrawals
344+
]
339345
toObject _ (Conway.ConwayTxRefScriptsSizeTooBig Mismatch {mismatchSupplied, mismatchExpected}) =
340346
mconcat [ "kind" .= String "ConwayTxRefScriptsSizeTooBig"
341347
, "actual" .= mismatchSupplied

cardano-submit-api/cardano-submit-api.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ library
3939
, aeson
4040
, async
4141
, bytestring
42-
, cardano-api ^>= 10.19
42+
, cardano-api ^>= 10.20
4343
, cardano-binary
4444
, cardano-cli ^>= 10.13
4545
, cardano-crypto-class ^>=2.2.3.2

cardano-testnet/cardano-testnet.cabal

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ library
4040
, aeson-pretty
4141
, ansi-terminal
4242
, bytestring
43-
, cardano-api ^>= 10.19
43+
, cardano-api ^>= 10.20
4444
, cardano-cli:{cardano-cli, cardano-cli-test-lib} ^>= 10.13
4545
, cardano-crypto-class ^>=2.2.3.2
4646
, cardano-crypto-wrapper

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)