-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update plutus to 1.13 #3738
Update plutus to 1.13 #3738
Conversation
799c703
to
07609b4
Compare
cardano-api
with newer plutus-core
07609b4
to
6f2577c
Compare
cardano-api
with newer plutus-cored361fa6
to
328a57e
Compare
328a57e
to
4cea234
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this PR is filing to build due to this change described in the changelog: https://github.com/input-output-hk/plutus/blob/04dca913a4b582c1c2574a27b38383f1c6156818/plutus-ledger-api/CHANGELOG.md?plain=1#L7
@carbolymer Did you wanna finish this PR? If not you could pass it to someone on the Plutus team. Alternatively one of the Ledger team members could pick it up eventually.
|
||
testingCostModelV1 :: CostModel | ||
testingCostModelV1 = | ||
fromRight (error "testingCostModelV1 is not well-formed") $ | ||
mkCostModel PlutusV1 (0 <$ Map.elems costModelParamsForTesting) | ||
mkCostModel PlutusV1 (0 <$ costModelParamsForTesting) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are now plutus version specific testing functions, which shoul dbe used instead of all using PlutusV3 version
mkCostModel PlutusV1 (0 <$ costModelParamsForTesting) | |
mkCostModel PlutusV1 (0 <$ PV1.costModelParamsForTesting) |
|
||
testingCostModelV2 :: CostModel | ||
testingCostModelV2 = | ||
fromRight (error "testingCostModelV2 is not well-formed") $ | ||
mkCostModel PlutusV2 (0 <$ Map.elems costModelParamsForTesting) | ||
mkCostModel PlutusV2 (0 <$ costModelParamsForTesting) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here:
mkCostModel PlutusV2 (0 <$ costModelParamsForTesting) | |
mkCostModel PlutusV2 (0 <$ PV1.costModelParamsForTesting) |
@@ -5,18 +5,17 @@ import Cardano.Ledger.Alonzo.Language (BinaryPlutus (..), Language (..), Plutus | |||
import Cardano.Ledger.Alonzo.Scripts (AlonzoScript (PlutusScript), CostModel, mkCostModel) | |||
import Data.ByteString.Short (pack) | |||
import Data.Either (fromRight) | |||
import qualified Data.Map as Map | |||
import PlutusLedgerApi.Test.EvaluationContext (costModelParamsForTesting) | |||
import PlutusLedgerApi.Test.V3.EvaluationContext (costModelParamsForTesting) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
import PlutusLedgerApi.Test.V3.EvaluationContext (costModelParamsForTesting) | |
import qualified PlutusLedgerApi.Test.V1.EvaluationContext as PV1 (costModelParamsForTesting) | |
import qualified PlutusLedgerApi.Test.V2.EvaluationContext as PV2 (costModelParamsForTesting) |
Thanks @lehins . I think we don't require upgrading plutus 1.13 in API at this moment, so we should be good after IntersectMBO/cardano-api#270 . Therefore I won't be working on this anymore, feel free to pick it up. |
@carbolymer Cool. I'll have someone from ledger pick up and finish this PR at some later point. |
Closing as duplicate of #3764 |
Description
Checklist
.cabal
andCHANGELOG.md
files according to theversioning process.
.cabal
files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)CHANGELOG.md
for the affected packages. New section is never added with the code changes. (See RELEASING.md)fourmolu
(usescripts/fourmolize.sh
)scripts/cabal-format.sh
)hie.yaml
has been updated (usescripts/gen-hie.sh
)