@@ -179,6 +179,10 @@ instance Show (Tx era) where
179179 showParen (p >= 11 ) $
180180 showString " ShelleyTx ShelleyBasedEraConway "
181181 . showsPrec 11 tx
182+ showsPrec p (ShelleyTx ShelleyBasedEraDijkstra tx) =
183+ showParen (p >= 11 ) $
184+ showString " ShelleyTx ShelleyBasedEraDijkstra "
185+ . showsPrec 11 tx
182186
183187instance HasTypeProxy era => HasTypeProxy (Tx era ) where
184188 data AsType (Tx era ) = AsTx (AsType era )
@@ -277,6 +281,7 @@ instance IsShelleyBasedEra era => HasTextEnvelope (Tx era) where
277281 ShelleyBasedEraAlonzo -> " Tx AlonzoEra"
278282 ShelleyBasedEraBabbage -> " Tx BabbageEra"
279283 ShelleyBasedEraConway -> " Tx ConwayEra"
284+ ShelleyBasedEraDijkstra -> " Tx DijkstraEra"
280285
281286-- ----------------------------------------------------------------------------
282287-- Transaction bodies
@@ -472,6 +477,29 @@ instance Show (TxBody era) where
472477 . showChar ' '
473478 . showsPrec 11 scriptValidity
474479 )
480+ showsPrec
481+ p
482+ ( ShelleyTxBody
483+ ShelleyBasedEraDijkstra
484+ txbody
485+ txscripts
486+ redeemers
487+ txmetadata
488+ scriptValidity
489+ ) =
490+ showParen
491+ (p >= 11 )
492+ ( showString " ShelleyTxBody ShelleyBasedEraDijkstra "
493+ . showsPrec 11 txbody
494+ . showChar ' '
495+ . showsPrec 11 txscripts
496+ . showChar ' '
497+ . showsPrec 11 redeemers
498+ . showChar ' '
499+ . showsPrec 11 txmetadata
500+ . showChar ' '
501+ . showsPrec 11 scriptValidity
502+ )
475503
476504instance HasTypeProxy era => HasTypeProxy (TxBody era ) where
477505 data AsType (TxBody era ) = AsTxBody (AsType era )
@@ -513,6 +541,7 @@ instance IsShelleyBasedEra era => HasTextEnvelope (TxBody era) where
513541 ShelleyBasedEraAlonzo -> " TxBodyAlonzo"
514542 ShelleyBasedEraBabbage -> " TxBodyBabbage"
515543 ShelleyBasedEraConway -> " TxBodyConway"
544+ ShelleyBasedEraDijkstra -> " TxBodyDijkstra"
516545
517546data TxBodyScriptData era where
518547 TxBodyNoScriptData :: TxBodyScriptData era
@@ -531,7 +560,7 @@ selectTxDatums
531560 :: TxBodyScriptData era
532561 -> Map L. DataHash (L. Data (ShelleyLedgerEra era ))
533562selectTxDatums TxBodyNoScriptData = Map. empty
534- selectTxDatums (TxBodyScriptData _ (Alonzo. TxDats' datums) _) = datums
563+ selectTxDatums (TxBodyScriptData _ (Alonzo. TxDats datums) _) = datums
535564
536565-- | Indicates whether a script is expected to fail or pass validation.
537566data ScriptValidity
@@ -642,6 +671,10 @@ instance Show (KeyWitness era) where
642671 showParen (p >= 11 ) $
643672 showString " ShelleyBootstrapWitness ShelleyBasedEraConway "
644673 . showsPrec 11 tx
674+ showsPrec p (ShelleyBootstrapWitness ShelleyBasedEraDijkstra tx) =
675+ showParen (p >= 11 ) $
676+ showString " ShelleyBootstrapWitness ShelleyBasedEraDijkstra "
677+ . showsPrec 11 tx
645678 showsPrec p (ShelleyKeyWitness ShelleyBasedEraShelley tx) =
646679 showParen (p >= 11 ) $
647680 showString " ShelleyKeyWitness ShelleyBasedEraShelley "
@@ -666,6 +699,10 @@ instance Show (KeyWitness era) where
666699 showParen (p >= 11 ) $
667700 showString " ShelleyKeyWitness ShelleyBasedEraConway "
668701 . showsPrec 11 tx
702+ showsPrec p (ShelleyKeyWitness ShelleyBasedEraDijkstra tx) =
703+ showParen (p >= 11 ) $
704+ showString " ShelleyKeyWitness ShelleyBasedEraDijkstra "
705+ . showsPrec 11 tx
669706
670707instance HasTypeProxy era => HasTypeProxy (KeyWitness era ) where
671708 data AsType (KeyWitness era ) = AsKeyWitness (AsType era )
@@ -707,6 +744,7 @@ instance IsCardanoEra era => SerialiseAsCBOR (KeyWitness era) where
707744 AlonzoEra -> decodeShelleyBasedWitness ShelleyBasedEraAlonzo bs
708745 BabbageEra -> decodeShelleyBasedWitness ShelleyBasedEraBabbage bs
709746 ConwayEra -> decodeShelleyBasedWitness ShelleyBasedEraConway bs
747+ DijkstraEra -> decodeShelleyBasedWitness ShelleyBasedEraDijkstra bs
710748
711749encodeShelleyBasedKeyWitness :: CBOR. EncCBOR w => w -> CBOR. Encoding
712750encodeShelleyBasedKeyWitness wit =
@@ -752,6 +790,7 @@ instance IsCardanoEra era => HasTextEnvelope (KeyWitness era) where
752790 AlonzoEra -> " TxWitness AlonzoEra"
753791 BabbageEra -> " TxWitness BabbageEra"
754792 ConwayEra -> " TxWitness ConwayEra"
793+ DijkstraEra -> " TxWitness DijkstraEra"
755794
756795getTxBodyAndWitnesses :: Tx era -> (TxBody era , [KeyWitness era ])
757796getTxBodyAndWitnesses tx = (getTxBody tx, getTxWitnesses tx)
@@ -905,6 +944,7 @@ makeSignedTransaction
905944 ShelleyBasedEraAlonzo -> alonzoSignedTransaction
906945 ShelleyBasedEraBabbage -> alonzoSignedTransaction
907946 ShelleyBasedEraConway -> alonzoSignedTransaction
947+ ShelleyBasedEraDijkstra -> alonzoSignedTransaction
908948 where
909949 txCommon
910950 :: forall ledgerera
@@ -1025,7 +1065,7 @@ makeShelleyBasedBootstrapWitness sbe nwOrAddr txbody (ByronSigningKey sk) =
10251065 -- Byron era witnesses were weird. This reveals all that weirdness.
10261066 Shelley. BootstrapWitness
10271067 { Shelley. bwKey = vk
1028- , Shelley. bwSig = signature
1068+ , Shelley. bwSignature = signature
10291069 , Shelley. bwChainCode = chainCode
10301070 , Shelley. bwAttributes = attributes
10311071 }
0 commit comments