@@ -100,6 +100,9 @@ fromConsensusGenTx = \case
100100 Consensus. HardForkGenTx (Consensus. OneEraGenTx (S (S (S (S (S (S (Z tx')))))))) ->
101101 let Consensus. ShelleyTx _txid shelleyEraTx = tx'
102102 in TxInMode ShelleyBasedEraConway (ShelleyTx ShelleyBasedEraConway shelleyEraTx)
103+ Consensus. HardForkGenTx (Consensus. OneEraGenTx (S (S (S (S (S (S (S (Z tx'))))))))) ->
104+ let Consensus. ShelleyTx _txid shelleyEraTx = tx'
105+ in TxInMode ShelleyBasedEraDijkstra (ShelleyTx ShelleyBasedEraDijkstra shelleyEraTx)
103106
104107toConsensusGenTx
105108 :: ()
@@ -132,6 +135,10 @@ toConsensusGenTx (TxInMode ShelleyBasedEraConway (ShelleyTx _ tx)) =
132135 Consensus. HardForkGenTx (Consensus. OneEraGenTx (S (S (S (S (S (S (Z tx'))))))))
133136 where
134137 tx' = Consensus. mkShelleyTx tx
138+ toConsensusGenTx (TxInMode ShelleyBasedEraDijkstra (ShelleyTx _ tx)) =
139+ Consensus. HardForkGenTx (Consensus. OneEraGenTx (S (S (S (S (S (S (S (Z tx')))))))))
140+ where
141+ tx' = Consensus. mkShelleyTx tx
135142
136143-- ----------------------------------------------------------------------------
137144-- Transaction ids in the context of a consensus mode
@@ -193,6 +200,12 @@ toConsensusTxId (TxIdInMode ConwayEra txid) =
193200 where
194201 txid' :: Consensus. TxId (Consensus. GenTx Consensus. StandardConwayBlock )
195202 txid' = Consensus. ShelleyTxId $ toShelleyTxId txid
203+ toConsensusTxId (TxIdInMode DijkstraEra txid) =
204+ Consensus. HardForkGenTxId
205+ (Consensus. OneEraGenTxId (S (S (S (S (S (S (S (Z (Consensus. WrapGenTxId txid'))))))))))
206+ where
207+ txid' :: Consensus. TxId (Consensus. GenTx Consensus. StandardDijkstraBlock )
208+ txid' = Consensus. ShelleyTxId $ toShelleyTxId txid
196209
197210-- ----------------------------------------------------------------------------
198211-- Transaction validation errors in the context of eras and consensus modes
@@ -300,5 +313,7 @@ fromConsensusApplyTxErr = \case
300313 TxValidationErrorInCardanoMode $ ShelleyTxValidationError ShelleyBasedEraBabbage err
301314 Consensus. ApplyTxErrConway err ->
302315 TxValidationErrorInCardanoMode $ ShelleyTxValidationError ShelleyBasedEraConway err
316+ Consensus. ApplyTxErrDijkstra err ->
317+ TxValidationErrorInCardanoMode $ ShelleyTxValidationError ShelleyBasedEraDijkstra err
303318 Consensus. ApplyTxErrWrongEra err ->
304319 TxValidationEraMismatch err
0 commit comments