@@ -179,6 +179,10 @@ instance Show (Tx era) where
179
179
showParen (p >= 11 ) $
180
180
showString " ShelleyTx ShelleyBasedEraConway "
181
181
. showsPrec 11 tx
182
+ showsPrec p (ShelleyTx ShelleyBasedEraDijkstra tx) =
183
+ showParen (p >= 11 ) $
184
+ showString " ShelleyTx ShelleyBasedEraDijkstra "
185
+ . showsPrec 11 tx
182
186
183
187
instance HasTypeProxy era => HasTypeProxy (Tx era ) where
184
188
data AsType (Tx era ) = AsTx (AsType era )
@@ -277,6 +281,7 @@ instance IsShelleyBasedEra era => HasTextEnvelope (Tx era) where
277
281
ShelleyBasedEraAlonzo -> " Tx AlonzoEra"
278
282
ShelleyBasedEraBabbage -> " Tx BabbageEra"
279
283
ShelleyBasedEraConway -> " Tx ConwayEra"
284
+ ShelleyBasedEraDijkstra -> " Tx DijkstraEra"
280
285
281
286
-- ----------------------------------------------------------------------------
282
287
-- Transaction bodies
@@ -472,6 +477,29 @@ instance Show (TxBody era) where
472
477
. showChar ' '
473
478
. showsPrec 11 scriptValidity
474
479
)
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
+ )
475
503
476
504
instance HasTypeProxy era => HasTypeProxy (TxBody era ) where
477
505
data AsType (TxBody era ) = AsTxBody (AsType era )
@@ -513,6 +541,7 @@ instance IsShelleyBasedEra era => HasTextEnvelope (TxBody era) where
513
541
ShelleyBasedEraAlonzo -> " TxBodyAlonzo"
514
542
ShelleyBasedEraBabbage -> " TxBodyBabbage"
515
543
ShelleyBasedEraConway -> " TxBodyConway"
544
+ ShelleyBasedEraDijkstra -> " TxBodyDijkstra"
516
545
517
546
data TxBodyScriptData era where
518
547
TxBodyNoScriptData :: TxBodyScriptData era
@@ -531,7 +560,7 @@ selectTxDatums
531
560
:: TxBodyScriptData era
532
561
-> Map L. DataHash (L. Data (ShelleyLedgerEra era ))
533
562
selectTxDatums TxBodyNoScriptData = Map. empty
534
- selectTxDatums (TxBodyScriptData _ (Alonzo. TxDats' datums) _) = datums
563
+ selectTxDatums (TxBodyScriptData _ (Alonzo. TxDats datums) _) = datums
535
564
536
565
-- | Indicates whether a script is expected to fail or pass validation.
537
566
data ScriptValidity
@@ -642,6 +671,10 @@ instance Show (KeyWitness era) where
642
671
showParen (p >= 11 ) $
643
672
showString " ShelleyBootstrapWitness ShelleyBasedEraConway "
644
673
. showsPrec 11 tx
674
+ showsPrec p (ShelleyBootstrapWitness ShelleyBasedEraDijkstra tx) =
675
+ showParen (p >= 11 ) $
676
+ showString " ShelleyBootstrapWitness ShelleyBasedEraDijkstra "
677
+ . showsPrec 11 tx
645
678
showsPrec p (ShelleyKeyWitness ShelleyBasedEraShelley tx) =
646
679
showParen (p >= 11 ) $
647
680
showString " ShelleyKeyWitness ShelleyBasedEraShelley "
@@ -666,6 +699,10 @@ instance Show (KeyWitness era) where
666
699
showParen (p >= 11 ) $
667
700
showString " ShelleyKeyWitness ShelleyBasedEraConway "
668
701
. showsPrec 11 tx
702
+ showsPrec p (ShelleyKeyWitness ShelleyBasedEraDijkstra tx) =
703
+ showParen (p >= 11 ) $
704
+ showString " ShelleyKeyWitness ShelleyBasedEraDijkstra "
705
+ . showsPrec 11 tx
669
706
670
707
instance HasTypeProxy era => HasTypeProxy (KeyWitness era ) where
671
708
data AsType (KeyWitness era ) = AsKeyWitness (AsType era )
@@ -707,6 +744,7 @@ instance IsCardanoEra era => SerialiseAsCBOR (KeyWitness era) where
707
744
AlonzoEra -> decodeShelleyBasedWitness ShelleyBasedEraAlonzo bs
708
745
BabbageEra -> decodeShelleyBasedWitness ShelleyBasedEraBabbage bs
709
746
ConwayEra -> decodeShelleyBasedWitness ShelleyBasedEraConway bs
747
+ DijkstraEra -> decodeShelleyBasedWitness ShelleyBasedEraDijkstra bs
710
748
711
749
encodeShelleyBasedKeyWitness :: CBOR. EncCBOR w => w -> CBOR. Encoding
712
750
encodeShelleyBasedKeyWitness wit =
@@ -752,6 +790,7 @@ instance IsCardanoEra era => HasTextEnvelope (KeyWitness era) where
752
790
AlonzoEra -> " TxWitness AlonzoEra"
753
791
BabbageEra -> " TxWitness BabbageEra"
754
792
ConwayEra -> " TxWitness ConwayEra"
793
+ DijkstraEra -> " TxWitness DijkstraEra"
755
794
756
795
getTxBodyAndWitnesses :: Tx era -> (TxBody era , [KeyWitness era ])
757
796
getTxBodyAndWitnesses tx = (getTxBody tx, getTxWitnesses tx)
@@ -905,6 +944,7 @@ makeSignedTransaction
905
944
ShelleyBasedEraAlonzo -> alonzoSignedTransaction
906
945
ShelleyBasedEraBabbage -> alonzoSignedTransaction
907
946
ShelleyBasedEraConway -> alonzoSignedTransaction
947
+ ShelleyBasedEraDijkstra -> alonzoSignedTransaction
908
948
where
909
949
txCommon
910
950
:: forall ledgerera
@@ -1025,7 +1065,7 @@ makeShelleyBasedBootstrapWitness sbe nwOrAddr txbody (ByronSigningKey sk) =
1025
1065
-- Byron era witnesses were weird. This reveals all that weirdness.
1026
1066
Shelley. BootstrapWitness
1027
1067
{ Shelley. bwKey = vk
1028
- , Shelley. bwSig = signature
1068
+ , Shelley. bwSignature = signature
1029
1069
, Shelley. bwChainCode = chainCode
1030
1070
, Shelley. bwAttributes = attributes
1031
1071
}
0 commit comments