Skip to content

Commit f6a52ea

Browse files
committed
Update to LSM
1 parent df9ca4e commit f6a52ea

3 files changed

Lines changed: 67 additions & 12 deletions

File tree

cabal.project

Lines changed: 60 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ 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-09-24T20:00:55Z
17-
, cardano-haskell-packages 2025-10-23T12:06:55Z
16+
, hackage.haskell.org 2025-10-23T13:39:53Z
17+
, cardano-haskell-packages 2025-10-24T10:49:53Z
1818

1919
packages:
2020
cardano-cli
@@ -58,11 +58,64 @@ semaphore: True
5858
-- Always write GHC env files, because they are needed for ghci.
5959
write-ghc-environment-files: always
6060

61-
if impl (ghc >= 9.12)
62-
allow-newer:
63-
-- https://github.com/kapralVV/Unique/issues/11
64-
, Unique:hashable
65-
6661
-- IMPORTANT
6762
-- Do NOT add more source-repository-package stanzas here unless they are strictly
6863
-- temporary! Please read the section in CONTRIBUTING about updating dependencies.
64+
65+
source-repository-package
66+
type: git
67+
location: https://github.com/IntersectMBO/cardano-api
68+
tag: f817a055a5b7076e84404d39e8addd6456aa6fa1
69+
--sha256: 1rqkyssxs6bcnjk7wai69383m4dwc1kapmm26pda9v1w5xqi76jg
70+
subdir:
71+
cardano-api
72+
73+
source-repository-package
74+
type: git
75+
location: https://github.com/IntersectMBO/ouroboros-consensus
76+
tag: 513d27d99b2486bf16d44a9f845ddb358244673f
77+
--sha256: 0brlyrvhqxcpya6frx1w5bwbpz5bjjsvxm26951vf2lxah8rx8hp
78+
subdir:
79+
ouroboros-consensus
80+
ouroboros-consensus-cardano
81+
ouroboros-consensus-diffusion
82+
83+
source-repository-package
84+
type: git
85+
location: https://github.com/IntersectMBO/cardano-ledger
86+
tag: fb09078fa55015c881303a2ddb609c024cec258f
87+
--sha256: sha256-9Y9CRiyMn0AWD+C4aNVMaJgrj3FDAYfCX4VrLvtoMaI=
88+
subdir:
89+
eras/allegra/impl
90+
eras/alonzo/impl
91+
eras/alonzo/test-suite
92+
eras/babbage/impl
93+
eras/conway/impl
94+
eras/dijkstra/impl
95+
eras/mary/impl
96+
eras/shelley/impl
97+
eras/shelley/test-suite
98+
eras/shelley-ma/test-suite
99+
libs/cardano-ledger-api
100+
libs/cardano-ledger-core
101+
libs/cardano-ledger-binary
102+
libs/cardano-protocol-tpraos
103+
libs/non-integral
104+
libs/small-steps
105+
libs/cardano-data
106+
libs/set-algebra
107+
libs/vector-map
108+
eras/byron/chain/executable-spec
109+
eras/byron/ledger/executable-spec
110+
eras/byron/ledger/impl
111+
eras/byron/crypto
112+
113+
-- Backported version of https://github.com/IntersectMBO/ouroboros-network/pull/5161
114+
source-repository-package
115+
type: git
116+
location: https://github.com/IntersectMBO/ouroboros-network
117+
tag: 1385b53cefb81e79553b6b0252537455833ea9c4
118+
--sha256: sha256-zZ7WsMfRs1fG16bmvI5vIh4fhQ8RGyEvYGLSWlrxpg0=
119+
subdir:
120+
ouroboros-network-api
121+
ouroboros-network

cardano-cli/src/Cardano/CLI/EraBased/Script/Certificate/Read.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import Cardano.CLI.Orphan ()
2626
import Cardano.CLI.Read
2727
import Cardano.CLI.Type.Common (CertificateFile)
2828
import Cardano.Ledger.Core qualified as L
29+
import Cardano.Ledger.Dijkstra.Scripts qualified as Dijkstra
2930
import Cardano.Ledger.Plutus.Language qualified as L
3031
import Cardano.Ledger.Plutus.Language qualified as Plutus
3132

@@ -125,8 +126,9 @@ convertTotimelock
125126
-> Api.Script Api.SimpleScript'
126127
-> SimpleScript (LedgerEra era)
127128
convertTotimelock era (Api.SimpleScript s) =
128-
let native :: L.NativeScript (LedgerEra era) = obtainCommonConstraints era $ Api.toAllegraTimelock s
129-
in obtainCommonConstraints era $ SimpleScript native
129+
obtainCommonConstraints era $ case era of
130+
ConwayEra -> SimpleScript $ Api.toAllegraTimelock @(LedgerEra ConwayEra) s
131+
DijkstraEra -> SimpleScript $ Dijkstra.upgradeTimelock $ Api.toAllegraTimelock @(LedgerEra ConwayEra) s
130132

131133
readCertificateScriptWitnesses
132134
:: IsEra era

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)