Skip to content

Commit a7038c3

Browse files
committed
WIP start integrating ledger-conway-1.9
1 parent f318ffe commit a7038c3

File tree

6 files changed

+79
-27
lines changed

6 files changed

+79
-27
lines changed

cabal.project

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,40 @@ tests: true
3131
benchmarks: true
3232

3333
import: ./asserts.cabal
34+
35+
-- TEMP
36+
37+
source-repository-package
38+
type: git
39+
location: https://github.com/input-output-hk/cardano-ledger
40+
tag: 83cdef1643efe86a55be91bab25b1c81db11a280
41+
--sha256: 06h4a12p46k8qfizpjfjrg9hxvsqma4mq6k4apcndnx6wq8w3aiv
42+
subdir:
43+
eras/allegra/impl
44+
eras/alonzo/impl
45+
eras/alonzo/test-suite
46+
eras/babbage/impl
47+
eras/babbage/test-suite
48+
eras/conway/impl
49+
eras/conway/test-suite
50+
eras/mary/impl
51+
eras/shelley/impl
52+
eras/shelley/test-suite
53+
eras/shelley-ma/test-suite
54+
libs/cardano-ledger-api
55+
libs/cardano-ledger-core
56+
libs/cardano-ledger-binary
57+
libs/cardano-ledger-pretty
58+
libs/cardano-protocol-tpraos
59+
libs/non-integral
60+
libs/small-steps
61+
libs/small-steps-test
62+
libs/cardano-data
63+
libs/set-algebra
64+
libs/vector-map
65+
eras/byron/chain/executable-spec
66+
eras/byron/ledger/executable-spec
67+
eras/byron/ledger/impl
68+
eras/byron/ledger/impl/test
69+
eras/byron/crypto
70+
eras/byron/crypto/test
Binary file not shown.
Binary file not shown.

ouroboros-consensus-cardano/ouroboros-consensus-cardano.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ library
119119
, cardano-data
120120
, cardano-ledger-allegra
121121
, cardano-ledger-alonzo ^>=1.4.1
122-
, cardano-ledger-api ^>=1.5
122+
, cardano-ledger-api ^>=1.6
123123
, cardano-ledger-babbage ^>=1.4.4
124124
, cardano-ledger-binary
125125
, cardano-ledger-byron
126-
, cardano-ledger-conway ^>=1.8
126+
, cardano-ledger-conway ^>=1.9
127127
, cardano-ledger-core ^>=1.6
128128
, cardano-ledger-mary
129129
, cardano-ledger-shelley ^>=1.6

ouroboros-consensus-cardano/src/shelley/Ouroboros/Consensus/Shelley/Ledger/Query.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ decodeShelleyResult v query = case query of
828828
GetGovState -> fromCBOR
829829
GetDRepState {} -> LC.fromEraCBOR @era
830830
GetDRepStakeDistr {} -> LC.fromEraCBOR @era
831-
GetCommitteeState -> fromCBOR
831+
GetCommitteeState -> LC.fromEraCBOR @era
832832

833833
currentPParamsEnDecoding ::
834834
forall era s.
Lines changed: 39 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,41 @@
11
{
2-
"poolVotingThresholds": {
3-
"pvtCommitteeNormal": 0,
4-
"pvtCommitteeNoConfidence": 0,
5-
"pvtHardForkInitiation": 0,
6-
"pvtMotionNoConfidence": 0
7-
},
8-
"dRepVotingThresholds": {
9-
"dvtCommitteeNormal": 0,
10-
"dvtCommitteeNoConfidence": 0,
11-
"dvtHardForkInitiation": 0,
12-
"dvtMotionNoConfidence": 0,
13-
"dvtPPEconomicGroup": 0,
14-
"dvtPPGovGroup": 0,
15-
"dvtPPNetworkGroup": 0,
16-
"dvtPPTechnicalGroup": 0,
17-
"dvtTreasuryWithdrawal": 0,
18-
"dvtUpdateToConstitution": 0
19-
},
20-
"minCommitteeSize": 0,
21-
"committeeTermLimit": 0,
22-
"govActionExpiration": 0,
23-
"govActionDeposit": 0,
24-
"dRepDeposit": 0,
25-
"dRepActivity": 0
2+
"upgradeProtocolParams":{
3+
"poolVotingThresholds":{
4+
"pvtCommitteeNormal":0,
5+
"pvtCommitteeNoConfidence":0,
6+
"pvtHardForkInitiation":0,
7+
"pvtMotionNoConfidence":0
8+
},
9+
"dRepVotingThresholds":{
10+
"dvtMotionNoConfidence":0,
11+
"dvtCommitteeNormal":0,
12+
"dvtCommitteeNoConfidence":0,
13+
"dvtUpdateToConstitution":0,
14+
"dvtHardForkInitiation":0,
15+
"dvtPPNetworkGroup":0,
16+
"dvtPPEconomicGroup":0,
17+
"dvtPPTechnicalGroup":0,
18+
"dvtPPGovGroup":0,
19+
"dvtTreasuryWithdrawal":0
20+
},
21+
"minCommitteeSize":0,
22+
"committeeTermLimit":0,
23+
"govActionExpiration":0,
24+
"govActionDeposit":0,
25+
"dRepDeposit":0,
26+
"dRepActivity":0
27+
},
28+
"constitution": {
29+
"anchor": {
30+
"url": "",
31+
"dataHash": "0000000000000000000000000000000000000000000000000000000000000000"
32+
}
33+
},
34+
"committee" :{
35+
"members" : {
36+
"keyHash-4e88cc2d27c364aaf90648a87dfb95f8ee103ba67fa1f12f5e86c42a": 1 ,
37+
"scriptHash-4e88cc2d27c364aaf90648a87dfb95f8ee103ba67fa1f12f5e86c42a": 2
38+
},
39+
"quorum": 0.5
40+
}
2641
}

0 commit comments

Comments
 (0)