Skip to content

Commit

Permalink
Merge pull request #786 from IntersectMBO/smelc/update-cardano-api-to…
Browse files Browse the repository at this point in the history
…-8.47.0.0

Update hackage, CHaP; and cardano-api to 8.47.0.0
  • Loading branch information
smelc authored Jun 13, 2024
2 parents fed71b3 + 7b3560d commit c68f3ab
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ repository cardano-haskell-packages
-- See CONTRIBUTING for information about these, including some Nix commands
-- you need to run if you change them
index-state:
, hackage.haskell.org 2024-05-24T12:49:48Z
, cardano-haskell-packages 2024-05-24T09:29:56Z
, hackage.haskell.org 2024-06-12T10:10:17Z
, cardano-haskell-packages 2024-06-12T10:10:17Z

packages:
cardano-cli
Expand Down
2 changes: 1 addition & 1 deletion cardano-cli/cardano-cli.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ library
, binary
, bytestring
, canonical-json
, cardano-api ^>= 8.46.0.0
, cardano-api ^>= 8.47.0.0
, cardano-binary
, cardano-crypto
, cardano-crypto-class ^>= 2.1.2
Expand Down
4 changes: 2 additions & 2 deletions cardano-cli/src/Cardano/CLI/Byron/Run.hs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ runSpendGenesisUTxO genesisFile nw bKeyFormat (NewTxFile ctTx) ctKey genRichAddr

let tx = txSpendGenesisUTxOByronPBFT genesis nw sk genRichAddr outs
firstExceptT ByronCmdHelpersError . ensureNewFileLBS ctTx
$ teCddlRawCBOR $ serializeByronTx tx
$ teRawCBOR $ serializeByronTx tx

-- Construct a Byron era tx
runSpendUTxO
Expand All @@ -208,4 +208,4 @@ runSpendUTxO nw bKeyFormat (NewTxFile ctTx) ctKey ins outs = do

let gTx = txSpendUTxOByronPBFT nw sk ins outs
firstExceptT ByronCmdHelpersError . ensureNewFileLBS ctTx
$ teCddlRawCBOR $ serializeByronTx gTx
$ teRawCBOR $ serializeByronTx gTx
2 changes: 0 additions & 2 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/Transaction.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1305,8 +1305,6 @@ runTransactionCalculateMinValueCmd
pp <- firstExceptT TxCmdProtocolParamsError (readProtocolParameters eon protocolParamsFile)
out <- toTxOutInShelleyBasedEra eon txOut

firstExceptT TxCmdPParamsErr . hoistEither
$ checkProtocolParameters eon (fromLedgerPParams eon pp)
let minValue = calculateMinimumUTxO eon out pp
liftIO . IO.print $ minValue

Expand Down
4 changes: 2 additions & 2 deletions cardano-cli/src/Cardano/CLI/Read.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ readFileOrPipeTextEnvelopeAnyOf types file = do
deserialiseFromTextEnvelopeAnyOf types te

readFileOrPipeTextEnvelopeCddlAnyOf
:: [FromSomeTypeCDDL TextEnvelopeCddl b]
:: [FromSomeTypeCDDL TextEnvelope b]
-> FileOrPipe
-> IO (Either (FileError TextEnvelopeCddlError) b)
readFileOrPipeTextEnvelopeCddlAnyOf types file = do
Expand All @@ -1038,7 +1038,7 @@ readFileOrPipeTextEnvelopeCddlAnyOf types file = do

readTextEnvelopeCddlFromFileOrPipe
:: FileOrPipe
-> IO (Either (FileError TextEnvelopeCddlError) TextEnvelopeCddl)
-> IO (Either (FileError TextEnvelopeCddlError) TextEnvelope)
readTextEnvelopeCddlFromFileOrPipe file = do
let path = fileOrPipePath file
runExceptT $ do
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"type": "TxWitness ShelleyEra",
"description": "Key Witness ShelleyEra",
"cborHex": "8258208dc60533b5dfa60a530955a696323a2ef4f14e8bc95a8f84cf6c441fea4234275840a20a2c8b1ffc2151eee3f659fc4076f9859d7d4d073933275470f270128736d231a2fb5e1bc2a6058ef2e58bc98266d192c55d6435ab591ce72cb165a7ec4e03"
"cborHex": "82008258208dc60533b5dfa60a530955a696323a2ef4f14e8bc95a8f84cf6c441fea4234275840a20a2c8b1ffc2151eee3f659fc4076f9859d7d4d073933275470f270128736d231a2fb5e1bc2a6058ef2e58bc98266d192c55d6435ab591ce72cb165a7ec4e03"
}
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c68f3ab

Please sign in to comment.