Skip to content

Commit

Permalink
Bump to cardano-api 10.5
Browse files Browse the repository at this point in the history
Update to  cardano-api 10.5 and Format Query.hs
  • Loading branch information
smelc authored and CarlosLopezDeLara committed Dec 20, 2024
1 parent ee57bc6 commit 0e3065c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
4 changes: 3 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repository cardano-haskell-packages
-- you need to run if you change them
index-state:
, hackage.haskell.org 2024-10-11T15:49:11Z
, cardano-haskell-packages 2024-12-05T13:51:16Z
, cardano-haskell-packages 2024-12-19T20:16:27Z

packages:
cardano-cli
Expand Down Expand Up @@ -57,3 +57,5 @@ write-ghc-environment-files: always
-- IMPORTANT
-- Do NOT add more source-repository-package stanzas here unless they are strictly
-- temporary! Please read the section in CONTRIBUTING about updating dependencies.


2 changes: 1 addition & 1 deletion cardano-cli/cardano-cli.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ library
binary,
bytestring,
canonical-json,
cardano-api ^>=10.4,
cardano-api ^>=10.5,
cardano-binary,
cardano-crypto,
cardano-crypto-class ^>=2.1.2,
Expand Down
8 changes: 4 additions & 4 deletions cardano-cli/src/Cardano/CLI/EraBased/Run/Query.hs
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,8 @@ runQueryRefScriptSizeCmd
& onLeft left

newtype RefInputScriptSize = RefInputScriptSize {refInputScriptSize :: Int}
deriving Generic
deriving anyclass ToJSON
deriving (Generic)
deriving anyclass (ToJSON)

instance Pretty RefInputScriptSize where
pretty (RefInputScriptSize s) = "Reference inputs scripts size is" <+> pretty s <+> "bytes."
Expand Down Expand Up @@ -1345,7 +1345,6 @@ runQueryStakeDistributionCmd
& onLeft (left . QueryCmdAcquireFailure)
& onLeft left


writeStakeDistribution
:: OutputFormatJsonOrText
-> Maybe (File () Out)
Expand Down Expand Up @@ -1955,7 +1954,8 @@ easyRunQuerySystemStart = lift querySystemStart & onLeft (left . QueryCmdUnsuppo
easyRunQuery
:: ()
=> Monad m
=> m (Either UnsupportedNtcVersionError (Either Consensus.EraMismatch a)) -> ExceptT QueryCmdError m a
=> m (Either UnsupportedNtcVersionError (Either Consensus.EraMismatch a))
-> ExceptT QueryCmdError m a
easyRunQuery q =
lift q
& onLeft (left . QueryCmdUnsupportedNtcVersion)
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

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

0 comments on commit 0e3065c

Please sign in to comment.