diff --git a/cabal.project b/cabal.project index c6ce02a7a4..583780cf86 100644 --- a/cabal.project +++ b/cabal.project @@ -14,7 +14,7 @@ repository cardano-haskell-packages -- you need to run if you change them index-state: , hackage.haskell.org 2023-08-08T19:56:09Z - , cardano-haskell-packages 2023-08-08T21:04:17Z + , cardano-haskell-packages 2023-08-11T16:23:05Z packages: cardano-cli diff --git a/cardano-cli/cardano-cli.cabal b/cardano-cli/cardano-cli.cabal index 9a5815152f..c93489d49e 100644 --- a/cardano-cli/cardano-cli.cabal +++ b/cardano-cli/cardano-cli.cabal @@ -125,7 +125,7 @@ library , binary , bytestring , canonical-json - , cardano-api ^>= 8.12 + , cardano-api ^>= 8.13 , cardano-binary , cardano-crypto , cardano-crypto-class >= 2.1.1 @@ -212,7 +212,7 @@ test-suite cardano-cli-test , base16-bytestring , bech32 >= 1.1.0 , bytestring - , cardano-api:{cardano-api, internal} ^>= 8.12 + , cardano-api:{cardano-api, internal} ^>= 8.13 , cardano-api-gen ^>= 8.1.1.0 , cardano-cli , cardano-cli:cardano-cli-test-lib @@ -256,7 +256,7 @@ test-suite cardano-cli-golden build-depends: aeson >= 1.5.6.0 , base16-bytestring , bytestring - , cardano-api:{cardano-api, gen} ^>= 8.12 + , cardano-api:{cardano-api, gen} ^>= 8.13 , cardano-binary , cardano-cli , cardano-cli:cardano-cli-test-lib diff --git a/cardano-cli/src/Cardano/CLI/Run/Legacy/Query.hs b/cardano-cli/src/Cardano/CLI/Run/Legacy/Query.hs index 35c712e60d..f6ddb68da1 100644 --- a/cardano-cli/src/Cardano/CLI/Run/Legacy/Query.hs +++ b/cardano-cli/src/Cardano/CLI/Run/Legacy/Query.hs @@ -463,7 +463,10 @@ runQueryKesPeriodInfo socketPath (AnyConsensusModeParams cModeParams) network no requireNotByronEraInByronMode eraInMode - gParams <- lift (queryGenesisParameters eInMode sbe) + shelleyInMode <- toEraInMode ShelleyEra cMode + & hoistMaybe (ShelleyQueryCmdEraConsensusModeMismatch (AnyConsensusMode cMode) anyE) + + gParams <- lift (queryGenesisParameters shelleyInMode ShelleyBasedEraShelley) & onLeft (left . ShelleyQueryCmdUnsupportedNtcVersion) & onLeft (left . ShelleyQueryCmdLocalStateQueryError . EraMismatchError) diff --git a/flake.lock b/flake.lock index 2e26ff8657..b9ee50790f 100644 --- a/flake.lock +++ b/flake.lock @@ -3,11 +3,11 @@ "CHaP": { "flake": false, "locked": { - "lastModified": 1691529171, - "narHash": "sha256-Z8sSJPKTrknxUnVaq6XRo4MYHTOJ5Ump4S5YxB2S73E=", + "lastModified": 1691771469, + "narHash": "sha256-uCEuNvy77nTQ5A1PGj+lvnTx1S7faQ/dXS1RDsBagLY=", "owner": "input-output-hk", "repo": "cardano-haskell-packages", - "rev": "c03fdfe126241783ddacd073202a8c24de195231", + "rev": "5726d16ea0f440f705594bef95adbc6bdbf7778b", "type": "github" }, "original": { @@ -189,11 +189,11 @@ "hackage": { "flake": false, "locked": { - "lastModified": 1689640360, - "narHash": "sha256-837/6Bfs6UJx2GDSCLmCg3zyhW2tyBf1Ad4plT021WE=", + "lastModified": 1691714311, + "narHash": "sha256-CK+aHUSxJS+i4qYrjJOY2LglRCEFhDA7c6KQKA4m62E=", "owner": "input-output-hk", "repo": "hackage.nix", - "rev": "c6a15a90fef46d4de1dbdfd6b20873b239599387", + "rev": "b58e354fb6dfa897775e555326fb6c0f4f0bfbe1", "type": "github" }, "original": { @@ -233,11 +233,11 @@ "stackage": "stackage" }, "locked": { - "lastModified": 1689663156, - "narHash": "sha256-YW36k1SDd6KXIYC8mIq5NPQDoYp9nj2BvMWOP1lOHk8=", + "lastModified": 1691714985, + "narHash": "sha256-EHQ2RnPTadPfhnoo3z3eYRvQXr2jHiX44bnO+XcinkY=", "owner": "input-output-hk", "repo": "haskell.nix", - "rev": "d215a47560976d17f11b48b17280e0f094537780", + "rev": "2ae97270776e0ea43e665727d5b88bb4ec4d33c7", "type": "github" }, "original": { @@ -361,11 +361,11 @@ "iserv-proxy": { "flake": false, "locked": { - "lastModified": 1670983692, - "narHash": "sha256-avLo34JnI9HNyOuauK5R69usJm+GfW3MlyGlYxZhTgY=", + "lastModified": 1688517130, + "narHash": "sha256-hUqfxSlo+ffqVdkSZ1EDoB7/ILCL25eYkcCXW9/P3Wc=", "ref": "hkm/remote-iserv", - "rev": "50d0abb3317ac439a4e7495b185a64af9b7b9300", - "revCount": 10, + "rev": "9151db2a9a61d7f5fe52ff8836f18bbd0fd8933c", + "revCount": 13, "type": "git", "url": "https://gitlab.haskell.org/hamishmack/iserv-proxy.git" }, @@ -493,11 +493,11 @@ }, "nixpkgs-2205": { "locked": { - "lastModified": 1682600000, - "narHash": "sha256-ha4BehR1dh8EnXSoE1m/wyyYVvHI9txjW4w5/oxsW5Y=", + "lastModified": 1685573264, + "narHash": "sha256-Zffu01pONhs/pqH07cjlF10NnMDLok8ix5Uk4rhOnZQ=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "50fc86b75d2744e1ab3837ef74b53f103a9b55a0", + "rev": "380be19fbd2d9079f677978361792cb25e8a3635", "type": "github" }, "original": { @@ -509,11 +509,11 @@ }, "nixpkgs-2211": { "locked": { - "lastModified": 1685314633, - "narHash": "sha256-8LXBPqTQXl5ofkjpJ18JcbmLJ/lWDoMxtUwiDYv0wro=", + "lastModified": 1688392541, + "narHash": "sha256-lHrKvEkCPTUO+7tPfjIcb7Trk6k31rz18vkyqmkeJfY=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "c8a17ce7abc03c50cd072e9e6c9b389c5f61836b", + "rev": "ea4c80b39be4c09702b0cb3b42eab59e2ba4f24b", "type": "github" }, "original": { @@ -525,11 +525,11 @@ }, "nixpkgs-2305": { "locked": { - "lastModified": 1685338297, - "narHash": "sha256-+Aq4O0Jn1W1q927ZHc3Zn6RO7bwQGmb6O8xYoGy0KrM=", + "lastModified": 1690680713, + "narHash": "sha256-NXCWA8N+GfSQyoN7ZNiOgq/nDJKOp5/BHEpiZP8sUZw=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "6287b47dbfabbb8bfbb9b1b53d198ad58a774de4", + "rev": "b81af66deb21f73a70c67e5ea189568af53b1e8c", "type": "github" }, "original": { @@ -557,11 +557,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1685347552, - "narHash": "sha256-9woSppRyUFo26yUffORTzttJ+apOt8MmCv6RxpPNTU4=", + "lastModified": 1690720142, + "narHash": "sha256-GywuiZjBKfFkntQwpNQfL+Ksa2iGjPprBGL0/psgRZM=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "f2f1ec390714d303cf84ba086e34e45b450dd8c4", + "rev": "3acb5c4264c490e7714d503c7166a3fde0c51324", "type": "github" }, "original": { @@ -654,11 +654,11 @@ "stackage": { "flake": false, "locked": { - "lastModified": 1689639109, - "narHash": "sha256-Jy7nQuxmKsWuxQp7ztCZz3zeVFjVnySLU8zcj/OlPvI=", + "lastModified": 1691712542, + "narHash": "sha256-0N7TJjUSP+Aq/OywFJgCElTSqN8/UOAlkLF1hfqh8AA=", "owner": "input-output-hk", "repo": "stackage.nix", - "rev": "c2eec3ceb5fbe77fb6fa008460b9f64622a08ddf", + "rev": "ed5a27143441eb4578276a3741a2ea1786fc93d8", "type": "github" }, "original": {