Skip to content

Commit efa2f44

Browse files
authored
Merge pull request #806 from IntersectMBO/newhoggy/new-era-instances
New eon constraints
2 parents a0e0384 + b68d929 commit efa2f44

11 files changed

Lines changed: 14 additions & 0 deletions

cardano-api/src/Cardano/Api/Internal/Eon/AllegraEraOnwards.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ type AllegraEraOnwardsConstraints era =
9898
, FromCBOR (DebugLedgerState era)
9999
, IsCardanoEra era
100100
, IsShelleyBasedEra era
101+
, ToJSON (Consensus.ChainDepState (ConsensusProtocol era))
101102
, ToJSON (DebugLedgerState era)
102103
, Typeable era
103104
)

cardano-api/src/Cardano/Api/Internal/Eon/AlonzoEraOnwards.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ type AlonzoEraOnwardsConstraints era =
112112
, FromCBOR (DebugLedgerState era)
113113
, IsCardanoEra era
114114
, IsShelleyBasedEra era
115+
, ToJSON (Consensus.ChainDepState (ConsensusProtocol era))
115116
, ToJSON (DebugLedgerState era)
116117
, Typeable era
117118
)

cardano-api/src/Cardano/Api/Internal/Eon/BabbageEraOnwards.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ type BabbageEraOnwardsConstraints era =
116116
, FromCBOR (DebugLedgerState era)
117117
, IsCardanoEra era
118118
, IsShelleyBasedEra era
119+
, ToJSON (Consensus.ChainDepState (ConsensusProtocol era))
119120
, ToJSON (DebugLedgerState era)
120121
, Typeable era
121122
)

cardano-api/src/Cardano/Api/Internal/Eon/ConwayEraOnwards.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ type ConwayEraOnwardsConstraints era =
119119
, FromCBOR (DebugLedgerState era)
120120
, IsCardanoEra era
121121
, IsShelleyBasedEra era
122+
, ToJSON (Consensus.ChainDepState (ConsensusProtocol era))
122123
, ToJSON (DebugLedgerState era)
123124
, Typeable era
124125
)

cardano-api/src/Cardano/Api/Internal/Eon/MaryEraOnwards.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ type MaryEraOnwardsConstraints era =
100100
, FromCBOR (DebugLedgerState era)
101101
, IsCardanoEra era
102102
, IsShelleyBasedEra era
103+
, ToJSON (Consensus.ChainDepState (ConsensusProtocol era))
103104
, ToJSON (DebugLedgerState era)
104105
, Typeable era
105106
)

cardano-api/src/Cardano/Api/Internal/Eon/ShelleyBasedEra.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ type ShelleyBasedEraConstraints era =
211211
, Consensus.PraosProtocolSupportsNode (ConsensusProtocol era)
212212
, Consensus.ShelleyBlock (ConsensusProtocol era) (ShelleyLedgerEra era) ~ ConsensusBlockForEra era
213213
, Consensus.ShelleyCompatible (ConsensusProtocol era) (ShelleyLedgerEra era)
214+
, FromCBOR (Consensus.ChainDepState (ConsensusProtocol era))
215+
, IsCardanoEra era
216+
, IsShelleyBasedEra era
214217
, L.ADDRHASH ~ Blake2b.Blake2b_224
215218
, L.Era (ShelleyLedgerEra era)
216219
, L.EraPParams (ShelleyLedgerEra era)
@@ -224,6 +227,7 @@ type ShelleyBasedEraConstraints era =
224227
, FromCBOR (Consensus.ChainDepState (ConsensusProtocol era))
225228
, IsCardanoEra era
226229
, IsShelleyBasedEra era
230+
, ToJSON (Consensus.ChainDepState (ConsensusProtocol era))
227231
, ToJSON (L.PredicateFailure (L.EraRule "LEDGER" (ShelleyLedgerEra era)))
228232
, Typeable era
229233
)

cardano-api/src/Cardano/Api/Internal/Eon/ShelleyEraOnly.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ type ShelleyEraOnlyConstraints era =
9494
, FromCBOR (DebugLedgerState era)
9595
, IsCardanoEra era
9696
, IsShelleyBasedEra era
97+
, ToJSON (Consensus.ChainDepState (ConsensusProtocol era))
9798
, ToJSON (DebugLedgerState era)
9899
, Typeable era
99100
)

cardano-api/src/Cardano/Api/Internal/Eon/ShelleyToAllegraEra.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ type ShelleyToAllegraEraConstraints era =
9797
, FromCBOR (DebugLedgerState era)
9898
, IsCardanoEra era
9999
, IsShelleyBasedEra era
100+
, ToJSON (Consensus.ChainDepState (ConsensusProtocol era))
100101
, ToJSON (DebugLedgerState era)
101102
, Typeable era
102103
)

cardano-api/src/Cardano/Api/Internal/Eon/ShelleyToAlonzoEra.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ type ShelleyToAlonzoEraConstraints era =
9898
, FromCBOR (DebugLedgerState era)
9999
, IsCardanoEra era
100100
, IsShelleyBasedEra era
101+
, ToJSON (Consensus.ChainDepState (ConsensusProtocol era))
101102
, ToJSON (DebugLedgerState era)
102103
, Typeable era
103104
)

cardano-api/src/Cardano/Api/Internal/Eon/ShelleyToBabbageEra.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ type ShelleyToBabbageEraConstraints era =
102102
, FromCBOR (DebugLedgerState era)
103103
, IsCardanoEra era
104104
, IsShelleyBasedEra era
105+
, ToJSON (Consensus.ChainDepState (ConsensusProtocol era))
105106
, ToJSON (DebugLedgerState era)
106107
, Typeable era
107108
)

0 commit comments

Comments
 (0)