|
15 | 15 | {-# LANGUAGE TypeFamilies #-} |
16 | 16 | {-# LANGUAGE TypeOperators #-} |
17 | 17 | {-# LANGUAGE ViewPatterns #-} |
| 18 | +{-# OPTIONS_GHC -Wno-deprecations #-} |
18 | 19 |
|
19 | 20 | module Cardano.Api.Tx.Internal.Body |
20 | 21 | ( -- * Contents |
@@ -861,6 +862,8 @@ indexWitnessedTxProposalProcedures (TxProposalProcedures proposals) = do |
861 | 862 | -- If you extend this type, consider updating: |
862 | 863 | -- - the 'makeShelleyTransactionBody' function of the relevant era below, and |
863 | 864 | -- - the @friendly*@ family of functions in cardano-cli. |
| 865 | +{-# DEPRECATED TxBodyContent "Use 'TxBodyContent' from 'Cardano.Api.Experimental.Tx' instead." #-} |
| 866 | + |
864 | 867 | data TxBodyContent build era |
865 | 868 | = TxBodyContent |
866 | 869 | { txIns :: TxIns build era |
@@ -890,6 +893,7 @@ data TxBodyContent build era |
890 | 893 | } |
891 | 894 | deriving (Eq, Show) |
892 | 895 |
|
| 896 | +{-# DEPRECATED defaultTxBodyContent "Use 'defaultTxBodyContent' from 'Cardano.Api.Experimental.Tx' instead." #-} |
893 | 897 | defaultTxBodyContent |
894 | 898 | :: () |
895 | 899 | => ShelleyBasedEra era |
@@ -1252,6 +1256,7 @@ instance Error TxBodyError where |
1252 | 1256 | <> "in input " |
1253 | 1257 | <> pretty txin |
1254 | 1258 |
|
| 1259 | +{-# DEPRECATED createTransactionBody "Use 'makeUnsignedTx' from 'Cardano.Api.Experimental' instead." #-} |
1255 | 1260 | createTransactionBody |
1256 | 1261 | :: forall era |
1257 | 1262 | . HasCallStack |
@@ -1434,12 +1439,13 @@ txBodyContentHasTxIns txIns = guard (not (null txIns)) ?! TxBodyEmptyTxIns |
1434 | 1439 | maxShelleyTxInIx :: Word |
1435 | 1440 | maxShelleyTxInIx = fromIntegral $ maxBound @Word16 |
1436 | 1441 |
|
1437 | | -{-# DEPRECATED TxBody "Use getTxBodyContent $ getTxBody instead" #-} |
| 1442 | +{-# DEPRECATED TxBody "Use 'UnsignedTx' from 'Cardano.Api.Experimental' instead." #-} |
1438 | 1443 | pattern TxBody :: TxBodyContent ViewTx era -> TxBody era |
1439 | 1444 | pattern TxBody txbodycontent <- (getTxBodyContent -> txbodycontent) |
1440 | 1445 |
|
1441 | 1446 | {-# COMPLETE TxBody #-} |
1442 | 1447 |
|
| 1448 | +{-# DEPRECATED getTxBodyContent "Use 'UnsignedTx' from 'Cardano.Api.Experimental' instead." #-} |
1443 | 1449 | getTxBodyContent :: TxBody era -> TxBodyContent ViewTx era |
1444 | 1450 | getTxBodyContent = \case |
1445 | 1451 | ShelleyTxBody sbe body _scripts scriptdata mAux scriptValidity -> |
|
0 commit comments