Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API additions for automating transaction building #2906

Merged
merged 11 commits into from
Jul 13, 2021
2 changes: 2 additions & 0 deletions cardano-api/cardano-api.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ library
build-depends: aeson >= 1.5.6.0
, aeson-pretty >= 0.8.5
, attoparsec
, array
, base16-bytestring >= 1.0
, base58-bytestring
, bech32 >= 1.1.0
Expand Down Expand Up @@ -127,6 +128,7 @@ library
, ouroboros-network
, ouroboros-network-framework
, plutus-ledger-api
, prettyprinter
, scientific
, shelley-spec-ledger
, small-steps
Expand Down
22 changes: 18 additions & 4 deletions cardano-api/src/Cardano/Api.hs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,24 @@ module Cardano.Api (
updateProposalSupportedInEra,
scriptDataSupportedInEra,

-- ** Fee calculation
transactionFee,
estimateTransactionFee,
evaluateTransactionFee,
estimateTransactionKeyWitnessCount,

-- ** Script execution units
evaluateTransactionExecutionUnits,
ScriptExecutionError(..),
TransactionValidityIntervalError,

-- ** Transaction balance
evaluateTransactionBalance,

-- ** Building transactions with automated fees and balancing
makeTransactionBodyAutoBalance,
TxBodyErrorAutoBalance(..),

-- * Signing transactions
-- | Creating transaction witnesses one by one, or all in one go.
Tx(Tx),
Expand All @@ -239,10 +257,6 @@ module Cardano.Api (
makeShelleyKeyWitness,
makeShelleyBootstrapWitness,

-- * Fee calculation
transactionFee,
estimateTransactionFee,

-- * Transaction metadata
-- | Embedding additional structured data within transactions.
TxMetadata(..),
Expand Down
Loading