Skip to content

Commit

Permalink
Merge pull request #24 from input-output-hk/jc/update-chaps-index
Browse files Browse the repository at this point in the history
update chaps index
  • Loading branch information
disassembler committed May 25, 2023
2 parents bc3f95f + 7c28153 commit 89fd117
Show file tree
Hide file tree
Showing 9 changed files with 97 additions and 20 deletions.
2 changes: 1 addition & 1 deletion cabal.project
Expand Up @@ -14,7 +14,7 @@ repository cardano-haskell-packages
-- you need to run if you change them
index-state:
, hackage.haskell.org 2023-05-10T10:34:57Z
, cardano-haskell-packages 2023-05-13T07:08:44Z
, cardano-haskell-packages 2023-05-24T10:41:02Z

packages:
cardano-api
Expand Down
21 changes: 11 additions & 10 deletions cardano-api/cardano-api.cabal
@@ -1,7 +1,7 @@
cabal-version: 3.4

name: cardano-api
version: 8.1.1.1
version: 8.2.0.0
synopsis: The cardano api
description: The cardano api.
category: Cardano,
Expand Down Expand Up @@ -128,7 +128,7 @@ library internal
, cardano-ledger-binary >= 1.1
, cardano-ledger-byron >= 1.0
, cardano-ledger-conway >= 1.1
, cardano-ledger-core >= 1.1
, cardano-ledger-core >= 1.2
, cardano-ledger-mary >= 1.1
, cardano-ledger-shelley >= 1.1.1
, cardano-protocol-tpraos >= 1.0.2
Expand All @@ -148,16 +148,16 @@ library internal
, mtl
, network
, optparse-applicative-fork
, ouroboros-consensus >= 0.6
, ouroboros-consensus-cardano >= 0.5
, ouroboros-consensus-diffusion >= 0.5.1
, ouroboros-consensus >= 0.7
, ouroboros-consensus-cardano >= 0.6
, ouroboros-consensus-diffusion >= 0.6
, ouroboros-consensus-protocol >= 0.5
, ouroboros-network
, ouroboros-network-api
, ouroboros-network-framework
, ouroboros-network-protocols
, parsec
, plutus-ledger-api:{plutus-ledger-api, plutus-ledger-api-testlib} ^>=1.1
, plutus-ledger-api:{plutus-ledger-api, plutus-ledger-api-testlib} ^>=1.5
, prettyprinter
, prettyprinter-configurable ^>= 1.1
, random
Expand Down Expand Up @@ -219,13 +219,14 @@ library gen
, base16-bytestring
, bytestring
, cardano-api
, cardano-api:internal
, cardano-binary >= 1.6 && < 1.8
, cardano-crypto-class ^>= 2.1
, cardano-crypto-test ^>= 1.5
, cardano-ledger-alonzo >= 1.1
, cardano-ledger-alonzo-test
, cardano-ledger-byron-test >= 1.5
, cardano-ledger-core >= 1.1
, cardano-ledger-core >= 1.2
, cardano-ledger-shelley >= 1.1
, containers
, hedgehog
Expand All @@ -248,7 +249,7 @@ test-suite cardano-api-test
, cardano-crypto-tests ^>= 2.1
, cardano-data >= 1.0
, cardano-ledger-api >= 1.1
, cardano-ledger-core:{cardano-ledger-core, testlib} >= 1.1
, cardano-ledger-core:{cardano-ledger-core, testlib} >= 1.2
, cardano-ledger-shelley
, cardano-ledger-shelley-test >= 1.1
, cardano-slotting ^>= 0.1
Expand Down Expand Up @@ -304,8 +305,8 @@ test-suite cardano-api-golden
, hedgehog-extras >= 0.4.3.0
, hspec
, hw-hspec-hedgehog
, plutus-core ^>= 1.1
, plutus-ledger-api ^>= 1.1
, plutus-core ^>= 1.5
, plutus-ledger-api ^>= 1.5
, text

ghc-options: -threaded -rtsopts -with-rtsopts=-N -with-rtsopts=-T
Expand Down
3 changes: 2 additions & 1 deletion cardano-api/gen/Test/Gen/Cardano/Api/Typed.hs
Expand Up @@ -119,6 +119,7 @@ import Cardano.Api hiding (txIns)
import qualified Cardano.Api as Api
import Cardano.Api.Byron (KeyWitness (ByronKeyWitness),
WitnessNetworkIdOrByronAddress (..))
import Cardano.Api.Script (scriptInEraToRefScript)
import Cardano.Api.Shelley (GovernancePoll (..), GovernancePollAnswer (..), Hash (..),
KESPeriod (KESPeriod),
OperationalCertificateIssueCounter (OperationalCertificateIssueCounter),
Expand Down Expand Up @@ -512,7 +513,7 @@ genReferenceScript :: CardanoEra era -> Gen (ReferenceScript era)
genReferenceScript era =
case refInsScriptsAndInlineDatsSupportedInEra era of
Nothing -> return ReferenceScriptNone
Just supp -> ReferenceScript supp <$> genScriptInAnyLang
Just _ -> scriptInEraToRefScript <$> genScriptInEra era

genUTxO :: CardanoEra era -> Gen (UTxO era)
genUTxO era =
Expand Down
2 changes: 2 additions & 0 deletions cardano-api/internal/Cardano/Api/Fees.hs
Expand Up @@ -590,6 +590,8 @@ evaluateTransactionExecutionUnits systemstart epochInfo bpp utxo txbody =
ScriptErrorEvaluationFailed err logs
L.ValidationFailure (L.ValidationFailedV2 err logs _) ->
ScriptErrorEvaluationFailed err logs
L.ValidationFailure (L.ValidationFailedV3 err logs _) ->
ScriptErrorEvaluationFailed err logs
L.IncompatibleBudget _ -> ScriptErrorExecutionUnitsOverflow

-- This is only possible for spending scripts and occurs when
Expand Down
3 changes: 2 additions & 1 deletion cardano-api/internal/Cardano/Api/IPC.hs
Expand Up @@ -265,7 +265,8 @@ mkVersionedProtocols networkid ptcl unversionedClients =
Net.versionedNodeToClientProtocols
ptclVersion
NodeToClientVersionData {
networkMagic = toNetworkMagic networkid
networkMagic = toNetworkMagic networkid,
query = False
}
(\_connid _ctl -> protocols (unversionedClients ptclVersion) ptclBlockVersion ptclVersion))
(Map.toList (Consensus.supportedNodeToClientVersions proxy))
Expand Down
2 changes: 2 additions & 0 deletions cardano-api/internal/Cardano/Api/ProtocolParameters.hs
Expand Up @@ -809,10 +809,12 @@ fromAlonzoCostModels (Alonzo.CostModels m _ _) =
toAlonzoScriptLanguage :: AnyPlutusScriptVersion -> Alonzo.Language
toAlonzoScriptLanguage (AnyPlutusScriptVersion PlutusScriptV1) = Alonzo.PlutusV1
toAlonzoScriptLanguage (AnyPlutusScriptVersion PlutusScriptV2) = Alonzo.PlutusV2
toAlonzoScriptLanguage (AnyPlutusScriptVersion PlutusScriptV3) = Alonzo.PlutusV3

fromAlonzoScriptLanguage :: Alonzo.Language -> AnyPlutusScriptVersion
fromAlonzoScriptLanguage Alonzo.PlutusV1 = AnyPlutusScriptVersion PlutusScriptV1
fromAlonzoScriptLanguage Alonzo.PlutusV2 = AnyPlutusScriptVersion PlutusScriptV2
fromAlonzoScriptLanguage Alonzo.PlutusV3 = AnyPlutusScriptVersion PlutusScriptV3

toAlonzoCostModel :: CostModel -> Alonzo.Language -> Either ProtocolParametersConversionError Alonzo.CostModel
toAlonzoCostModel (CostModel m) l = first (PpceInvalidCostModel (CostModel m)) $ Alonzo.mkCostModel l m
Expand Down
6 changes: 3 additions & 3 deletions cardano-api/internal/Cardano/Api/Query.hs
Expand Up @@ -455,14 +455,14 @@ decodeCurrentEpochState sbe (SerialisedCurrentEpochState (Serialised ls)) =


newtype SerialisedPoolState era
= SerialisedPoolState (Serialised (Shelley.PState (Core.EraCrypto (ShelleyLedgerEra era))))
= SerialisedPoolState (Serialised (Shelley.PState (ShelleyLedgerEra era)))

newtype PoolState era = PoolState (Shelley.PState (Core.EraCrypto (ShelleyLedgerEra era)))
newtype PoolState era = PoolState (Shelley.PState (ShelleyLedgerEra era))

decodePoolState
:: forall era. ()
=> Core.Era (ShelleyLedgerEra era)
=> DecCBOR (Shelley.PState (Core.EraCrypto (ShelleyLedgerEra era)))
=> DecCBOR (Shelley.PState (ShelleyLedgerEra era))
=> SerialisedPoolState era
-> Either DecoderError (PoolState era)
decodePoolState (SerialisedPoolState (Serialised ls)) =
Expand Down

0 comments on commit 89fd117

Please sign in to comment.