Skip to content

Commit

Permalink
[shelley] - ShelleyTx
Browse files Browse the repository at this point in the history
  • Loading branch information
teodanciu committed Jan 24, 2025
1 parent 6dd5e8a commit 162feff
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions eras/shelley/impl/src/Cardano/Ledger/Shelley/Tx/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,34 @@ instance
( sequence . maybeToStrictMaybe
<$> decodeNullMaybe decCBOR
)
instance
( Era era
, DecCBOR (TxBody era)
, DecCBOR (TxWits era)
, DecCBOR (TxAuxData era)
) =>
DecCBOR (ShelleyTxRaw era)
where
decCBOR =
decode $
RecD ShelleyTxRaw
<! From
<! From
<! D (maybeToStrictMaybe <$> decodeNullMaybe decCBOR)

deriving via
Mem (ShelleyTxRaw era)
instance
EraTx era => DecCBOR (Annotator (ShelleyTx era))

deriving newtype instance
( Era era
, DecCBOR (TxBody era)
, DecCBOR (TxWits era)
, DecCBOR (TxAuxData era)
) =>
DecCBOR (ShelleyTx era)

-- | Construct a Tx containing the explicit serialised bytes.
--
-- This function is marked as unsafe since it makes no guarantee that the
Expand Down

0 comments on commit 162feff

Please sign in to comment.