Skip to content

Commit 2e87bfd

Browse files
committed
Transaction balancing functions
1 parent d7bc0aa commit 2e87bfd

File tree

5 files changed

+874
-12
lines changed

5 files changed

+874
-12
lines changed

cardano-api/src/Cardano/Api/Experimental.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ module Cardano.Api.Experimental
2727

2828
-- ** Transaction fee related
2929
, estimateBalancedTxBody
30+
, evaluateTransactionFee
3031

3132
-- ** Era-related
3233
, BabbageEra

cardano-api/src/Cardano/Api/Experimental/Era.hs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ import Cardano.Ledger.Conway qualified as Ledger
5555
import Cardano.Ledger.Core qualified as Ledger
5656
import Cardano.Ledger.Hashes qualified as L
5757
import Cardano.Ledger.State qualified as L
58+
import Cardano.Ledger.Val qualified as L
5859

5960
import Control.Monad.Error.Class
6061
import Data.Aeson (FromJSON (..), ToJSON, withText)
@@ -309,6 +310,7 @@ type EraCommonConstraints era =
309310
, L.EraTxCert (LedgerEra era)
310311
, L.EraTxOut (LedgerEra era)
311312
, L.EraUTxO (LedgerEra era)
313+
, L.Val (L.Value (LedgerEra era))
312314
, L.Value (LedgerEra era) ~ L.MaryValue
313315
, FromCBOR (ChainDepState (ConsensusProtocol era))
314316
, L.NativeScript (LedgerEra era) ~ L.Timelock (LedgerEra era)

cardano-api/src/Cardano/Api/Experimental/Tx/Internal/BodyContent/New.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module Cardano.Api.Experimental.Tx.Internal.BodyContent.New
2020
, TxVotingProcedures (..)
2121
, TxWithdrawals (..)
2222
, TxBodyContent (..)
23+
, Datum (..)
2324
, defaultTxBodyContent
2425
, collectTxBodyScriptWitnessRequirements
2526
, makeUnsignedTx
@@ -51,6 +52,9 @@ module Cardano.Api.Experimental.Tx.Internal.BodyContent.New
5152
, setTxVotingProcedures
5253
, setTxWithdrawals
5354

55+
-- * Internal conversions
56+
, convProposalProcedures
57+
5458
-- * Legacy conversions
5559
, legacyDatumToDatum
5660
, fromLegacyTxOut

0 commit comments

Comments
 (0)