Skip to content

Commit 6f3464c

Browse files
committed
Integrate new ledger core 0.1.1.1
1 parent 8fd809a commit 6f3464c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+545
-544
lines changed

cabal.project

Lines changed: 30 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ repository cardano-haskell-packages
99
c00aae8461a256275598500ea0e187588c35a5d5d7454fb57eac18d9edb86a56
1010
d4a35cd3121aa00d18544bb0ac01c3e1691d618f462c46129271bccf39f7e8ee
1111

12-
index-state: 2022-09-27T00:00:00Z
13-
index-state: cardano-haskell-packages 2022-10-25T20:00:00Z
14-
-- index-state: cardano-haskell-packages 2022-11-10T17:31:44Z
12+
index-state: 2022-11-11T00:00:00Z
13+
index-state: cardano-haskell-packages 2022-11-12T20:00:00Z
1514

1615
packages:
1716
cardano-db
@@ -32,27 +31,8 @@ constraints:
3231
, network >= 3.1.1.0
3332
, HSOpenSSL >= 0.11.7.2
3433
, algebraic-graphs < 0.7
35-
, protolude < 0.3.1
36-
-- TODO: these should be set in cabal files, but avoiding setting them in lower dependencies for initial CHaP release
37-
, cardano-prelude == 0.1.0.0
38-
, base-deriving-via == 0.1.0.0
34+
, protolude >= 0.3.2
3935
, cardano-binary == 1.5.0
40-
, cardano-binary-test == 1.3.0
41-
, cardano-crypto-class == 2.0.0.0.1
42-
, cardano-crypto-praos == 2.0.0.0.1
43-
, cardano-crypto-tests == 2.0.0.0.1
44-
, cardano-slotting == 0.1.0.0
45-
, measures == 0.1.0.0
46-
, orphans-deriving-via == 0.1.0.0
47-
, strict-containers == 0.1.0.0
48-
, plutus-core == 1.0.0.1
49-
, plutus-ledger-api == 1.0.0.1
50-
, plutus-tx == 1.0.0.0
51-
, plutus-tx-plugin == 1.0.0.0
52-
, prettyprinter-configurable == 0.1.0.0
53-
, plutus-ghc-stub == 8.6.5
54-
, word-array == 0.1.0.0
55-
, word-array == 0.1.0.0
5636

5737
package cardano-db
5838
ghc-options: -Wall -Werror -Wredundant-constraints -Wincomplete-uni-patterns -Wincomplete-record-updates -Wpartial-fields -Wunused-imports -Wunused-packages
@@ -81,9 +61,12 @@ tests: True
8161
test-show-details: direct
8262

8363
allow-newer:
84-
*:aeson,
64+
ekg:aeson,
65+
ekg-json:aeson,
66+
threepenny-gui:aeson,
8567
monoidal-containers:aeson,
86-
size-based:template-haskell
68+
size-based:template-haskell,
69+
snap-server:attoparsec,
8770

8871
-- ---------------------------------------------------------
8972

@@ -95,8 +78,8 @@ allow-newer:
9578
source-repository-package
9679
type: git
9780
location: https://github.com/input-output-hk/cardano-node
98-
tag: ebc7be471b30e5931b35f9bbc236d21c375b91bb
99-
--sha256: 1j01m2cp2vdcl26zx9xmipr551v3b2rz9kfn9ik8byfwj1z7652r
81+
tag: 7bd6944879b933d4389f6f2cb317016710c97245
82+
--sha256: 1djw8xd8cn3jhvhgxqkmrimz4q61iwvaha179wf1v79mkdkcb53g
10083
subdir:
10184
cardano-api
10285
cardano-cli
@@ -114,15 +97,28 @@ source-repository-package
11497

11598
source-repository-package
11699
type: git
117-
location: https://github.com/haskell-works/hw-aeson
118-
tag: 6dc309ff4260c71d9a18c220cbae8aa1dfe2a02e
119-
--sha256: 08zxzkk1fy8xrvl46lhzmpyisizl0nzl1n00g417vc0l170wsr9j
100+
location: https://github.com/denisshevchenko/threepenny-gui
101+
tag: 4ec92ded05ccf59ba4a874be4b404ac1b6d666b6
102+
--sha256: 00fvvaf4ir4hskq4a6gggbh2wmdvy8j8kn6s4m1p1vlh8m8mq514
120103

104+
-- And has the adjustments for the ledger refactor
121105
source-repository-package
122-
type: git
123-
location: https://github.com/HeinrichApfelmus/threepenny-gui
124-
tag: e3bb8283fc7d2e8aa374eea29426002e8dcd67a8
125-
--sha256: 0nf836b552asgpwn2gxwl7yd7ssdhb1wkvdqz6s4dpzqnlpyivx9
106+
type: git
107+
location: https://github.com/input-output-hk/ouroboros-network
108+
tag: 72863b0fc78abdc2b8e29f0dda96c06da3dd11d0
109+
--sha256: 0qwvx04l9q3h7acb0a3b8iarqcn5bkqhwaplbga5pvryqp3lhn00
110+
subdir:
111+
monoidal-synchronisation
112+
network-mux
113+
ouroboros-consensus
114+
ouroboros-consensus-byron
115+
ouroboros-consensus-cardano
116+
ouroboros-consensus-protocol
117+
ouroboros-consensus-shelley
118+
ouroboros-network
119+
ouroboros-network-framework
120+
ouroboros-network-testing
121+
ouroboros-consensus-cardano-tools
126122

127123
source-repository-package
128124
type: git

cardano-chain-gen/cardano-chain-gen.cabal

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ library
7878
, cardano-prelude
7979
, cardano-protocol-tpraos
8080
, cardano-slotting
81+
, cardano-strict-containers
8182
, cborg
8283
, vector-map
8384
, containers
@@ -96,6 +97,7 @@ library
9697
, memory
9798
, mtl
9899
, monad-control
100+
, microlens
99101
, network-mux
100102
, nothunks
101103
, ouroboros-consensus
@@ -118,7 +120,7 @@ library
118120
, split
119121
, stm
120122
, strict
121-
, strict-containers
123+
-- , strict-containers
122124
, strict-stm
123125
, swagger2
124126
, text

cardano-chain-gen/src/Cardano/Mock/ChainSync/Server.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import Control.Concurrent (threadDelay)
3232
import Control.Concurrent.Async
3333
import Control.Exception (bracket)
3434
import Control.Monad (forever)
35-
import Control.Monad.Class.MonadSTM.Strict (MonadSTM (atomically), STM, StrictTVar,
35+
import Control.Concurrent.Class.MonadSTM.Strict (MonadSTM (atomically), STM, StrictTVar,
3636
modifyTVar, newTVarIO, readTVar, retry, writeTVar)
3737
import Control.Tracer (nullTracer)
3838
import Data.ByteString.Lazy.Char8 (ByteString)

cardano-chain-gen/src/Cardano/Mock/Forging/Interpreter.hs

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module Cardano.Mock.Forging.Interpreter
3232
, mkTxId
3333
) where
3434

35-
import Cardano.Prelude (bimap, getField, throwIO)
35+
import Cardano.Prelude (bimap, throwIO)
3636

3737
import Control.Monad (forM, void, when)
3838
import Control.Monad.Except (runExcept)
@@ -47,10 +47,12 @@ import Data.Text (Text)
4747
import qualified Data.Text as Text
4848
import qualified Data.Text.IO as Text
4949
import Data.Word (Word64)
50+
import Lens.Micro
5051

5152
import GHC.Generics (Generic)
5253

53-
import Cardano.Ledger.Alonzo.Tx
54+
import Cardano.Ledger.Block (txid)
55+
import qualified Cardano.Ledger.Core as Core
5456
import Cardano.Ledger.Crypto (StandardCrypto)
5557
import qualified Cardano.Ledger.Shelley.API.Mempool as Ledger
5658
import Cardano.Ledger.Shelley.LedgerState (NewEpochState (..))
@@ -456,9 +458,9 @@ withShelleyLedgerState inter mk = do
456458
mkTxId :: TxEra -> Ledger.TxId StandardCrypto
457459
mkTxId txe =
458460
case txe of
459-
TxAlonzo tx -> Ledger.txid @StandardAlonzo (getField @"body" tx)
460-
TxBabbage tx -> Ledger.txid @StandardBabbage (getField @"body" tx)
461-
TxShelley tx -> Ledger.txid @StandardShelley (getField @"body" tx)
461+
TxAlonzo tx -> txid @StandardAlonzo (tx ^. Core.bodyTxL)
462+
TxBabbage tx -> txid @StandardBabbage (tx ^. Core.bodyTxL)
463+
TxShelley tx -> txid @StandardShelley (tx ^. Core.bodyTxL)
462464

463465
mkValidated :: TxEra -> Validated (Consensus.GenTx CardanoBlock)
464466
mkValidated txe =

0 commit comments

Comments
 (0)