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

Refactor signTx #4128

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
4 changes: 4 additions & 0 deletions lib/balance-tx/cardano-balance-tx.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,18 @@ library
, base
, bytestring
, cardano-addresses
, crypto-hash-extra
, cardano-api
, cardano-coin-selection
, cardano-crypto
, cardano-crypto-class
, cardano-ledger-allegra
, cardano-crypto-wrapper
, cardano-ledger-alonzo
, cardano-ledger-api
, cardano-ledger-babbage
, cardano-ledger-binary
, cardano-ledger-byron
, cardano-ledger-conway
, cardano-ledger-core
, cardano-ledger-mary
Expand Down
4 changes: 3 additions & 1 deletion lib/balance-tx/lib/Cardano/Wallet/Write/Tx.hs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ module Cardano.Wallet.Write.Tx

-- ** Address
, Address
, Ledger.Addr (..)
, unsafeAddressFromBytes

-- ** Value
Expand Down Expand Up @@ -295,6 +296,7 @@ type RecentEraLedgerConstraints era =
, Core.Value era ~ MaryValue StandardCrypto
, Core.TxWits era ~ AlonzoTxWits era
, ExtendedUTxO era
, Core.EraTxBody era
, Alonzo.AlonzoEraPParams era
, Ledger.AlonzoEraTx era
, Alonzo.AlonzoEraTxBody era
Expand All @@ -312,7 +314,7 @@ type RecentEraLedgerConstraints era =
-- https://cardanofoundation.atlassian.net/browse/ADP-2353
withConstraints
:: RecentEra era
-> ((RecentEraLedgerConstraints (ShelleyLedgerEra era)) => a)
-> ((IsRecentEra era, RecentEraLedgerConstraints (ShelleyLedgerEra era)) => a)
-> a
withConstraints era a = case era of
RecentEraBabbage -> a
Expand Down
Loading
Loading