Skip to content

Commit

Permalink
SCP-4225 rebase with cardano.1.35 for babbage updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ladamesny committed Aug 10, 2022
1 parent 92d16ec commit aa48bf9
Showing 1 changed file with 20 additions and 12 deletions.
32 changes: 20 additions & 12 deletions marlowe-cli/src/Language/Marlowe/CLI/Run.hs
Expand Up @@ -35,18 +35,14 @@ module Language.Marlowe.CLI.Run (
) where


<<<<<<< HEAD
import Cardano.Api (AddressAny, AddressInEra (..), BabbageEra, CardanoMode, LocalNodeConnectInfo (localNodeNetworkId),
=======
import Cardano.Api (AddressAny, AddressInEra (..), AlonzoEra, BabbageEra, CardanoMode,
Key (deterministicSigningKeySeedSize), LocalNodeConnectInfo (localNodeNetworkId),
>>>>>>> 7dd23719c (SCP-4225 rebase with cardano.1.35 branch - work on execute and create wallet commands)
MultiAssetSupportedInEra (MultiAssetInBabbageEra), NetworkId,
QueryInShelleyBasedEra (QueryProtocolParameters, QueryUTxO), QueryUTxOFilter (QueryUTxOByAddress),
Script (..), ScriptDataSupportedInEra (..), ShelleyBasedEra (ShelleyBasedEraBabbage), SlotNo (..),
StakeAddressReference (..), TxId, TxIn, TxMintValue (TxMintNone), TxOut (..), TxOutDatum (..),
TxOutValue (..), UTxO (..), anyAddressInShelleyBasedEra, calculateMinimumUTxO, getTxId,
lovelaceToValue, selectLovelace, toAddressAny, txOutValueToValue, writeFileTextEnvelope)
import Cardano.Api (AddressAny, AddressInEra (..), BabbageEra, CardanoMode, Key (deterministicSigningKeySeedSize),
LocalNodeConnectInfo (localNodeNetworkId), MultiAssetSupportedInEra (MultiAssetInBabbageEra),
NetworkId, QueryInShelleyBasedEra (QueryProtocolParameters, QueryUTxO),
QueryUTxOFilter (QueryUTxOByAddress), Script (..), ScriptDataSupportedInEra (..),
ShelleyBasedEra (ShelleyBasedEraBabbage), SlotNo (..), StakeAddressReference (..), TxId, TxIn,
TxMintValue (TxMintNone), TxOut (..), TxOutDatum (..), TxOutValue (..), UTxO (..),
anyAddressInShelleyBasedEra, calculateMinimumUTxO, getTxId, lovelaceToValue, selectLovelace,
toAddressAny, txOutValueToValue, writeFileTextEnvelope)
import qualified Cardano.Api as Api (Value)
import qualified Cardano.Api as Cardano.Api.TxBody
import Cardano.Api.Shelley (ProtocolParameters, ReferenceScript (ReferenceScriptNone), fromPlutusData)
Expand Down Expand Up @@ -310,6 +306,7 @@ runTransaction connection marloweInBundle marloweOutFile inputs outputs changeAd
timeout
printStats
invalid

liftCliIO
$ writeFileTextEnvelope bodyFile Nothing body
pure
Expand Down Expand Up @@ -427,6 +424,17 @@ runTransactionImpl connection marloweInBundle marloweOut inputs outputs changeAd
]
let
outputs' = payments <> outputs <> datumOutputs
body <-
buildBody connection
spend continue
[] inputs outputs'
collateral changeAddress
(mtRange marloweOut)
(hashSigningKey <$> signingKeys)
TxMintNone
metadata
printStats
invalid
forM_ timeout
$ if invalid
then const $ throwError "Refusing to submit an invalid transaction: collateral would be lost."
Expand Down

0 comments on commit aa48bf9

Please sign in to comment.