Skip to content

Commit

Permalink
Use cardano-api HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact committed Oct 8, 2024
1 parent f8adbf5 commit ca16fce
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
7 changes: 7 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,10 @@ test-show-details: direct

program-options
ghc-options: -fwrite-ide-info

source-repository-package
type: git
location: https://github.com/IntersectMBO/cardano-api
tag: 00f025d1fda127d0f7b2e69227e298199bea1fe1
--sha256: sha256-GttvKWo+2SytPW59a1JIYSpdlTr+7mcWvvK+EPAgH/k=
subdir: cardano-api
8 changes: 4 additions & 4 deletions hydra-cardano-api/src/Hydra/Cardano/Api.hs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ import Cardano.Api as X hiding (
blue,
createAndValidateTransactionBody,
defaultTxBodyContent,
fromLedgerUTxO,
fromLedgerValue,
green,
makeShelleyKeyWitness,
Expand All @@ -83,16 +84,12 @@ import Cardano.Api as X hiding (
toLedgerValue,
(<+>),
)
import Cardano.Api.Byron as X (
Address (..),
)
import Cardano.Api.Experimental as X (UnsignedTx (..))
import Cardano.Api.Ledger as X (
PParams,
)
import Cardano.Api.Shelley as X (
AcquiringFailure (..),
Address (..),
Hash (HeaderHash),
Key (..),
PlutusScriptOrReferenceInput (PScript),
Expand Down Expand Up @@ -397,6 +394,7 @@ pattern TxBodyContent ::
TxValidityUpperBound ->
TxMetadataInEra ->
TxAuxScripts ->
BuildTxWith buidl (TxSupplementalDatums Era) ->
TxExtraKeyWitnesses ->
BuildTxWith buidl (Maybe (LedgerProtocolParameters Era)) ->
TxWithdrawals buidl Era ->
Expand All @@ -421,6 +419,7 @@ pattern TxBodyContent
, txValidityUpperBound
, txMetadata
, txAuxScripts
, txSupplementalDatums
, txExtraKeyWits
, txProtocolParams
, txWithdrawals
Expand All @@ -445,6 +444,7 @@ pattern TxBodyContent
txValidityUpperBound
txMetadata
txAuxScripts
txSupplementalDatums
txExtraKeyWits
txProtocolParams
txWithdrawals
Expand Down
1 change: 0 additions & 1 deletion hydra-cardano-api/src/Hydra/Cardano/Api/Address.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module Hydra.Cardano.Api.Address where

import Hydra.Cardano.Api.Prelude

import Cardano.Api.Byron (Address (..))
import Cardano.Binary (unsafeDeserialize')
import Cardano.Chain.Common qualified as Ledger
import Data.ByteString qualified as BS
Expand Down
2 changes: 1 addition & 1 deletion hydra-cardano-api/src/Hydra/Cardano/Api/UTxO.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module Hydra.Cardano.Api.UTxO where

import Hydra.Cardano.Api.Prelude
import Hydra.Cardano.Api.Prelude hiding (fromLedgerUTxO)
import Hydra.Cardano.Api.TxId (toLedgerTxId)
import Hydra.Cardano.Api.TxIn (fromLedgerTxIn, toLedgerTxIn, txIns')
import Hydra.Cardano.Api.TxOut (fromLedgerTxOut, toLedgerTxOut)
Expand Down
1 change: 1 addition & 0 deletions hydra-node/src/Hydra/Chain/CardanoClient.hs
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ buildTransaction networkId socket changeAddress utxoToSpend collateral outs = do
TxValidityNoUpperBound
TxMetadataNone
TxAuxScriptsNone
(BuildTxWith TxSupplementalDataNone)
TxExtraKeyWitnessesNone
(BuildTxWith $ Just $ LedgerProtocolParameters pparams)
TxWithdrawalsNone
Expand Down
1 change: 1 addition & 0 deletions hydra-tx/src/Hydra/Ledger/Cardano/Builder.hs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ emptyTxBody =
TxValidityNoUpperBound
TxMetadataNone
TxAuxScriptsNone
(BuildTxWith TxSupplementalDataNone)
TxExtraKeyWitnessesNone
(BuildTxWith $ Just $ LedgerProtocolParameters def)
TxWithdrawalsNone
Expand Down

0 comments on commit ca16fce

Please sign in to comment.