Repository navigation
Conversation
Scalus reads a UTxO set as CIP-30 [input, output] pairs, so the evaluator passes them straight through instead of assembling a CBOR map with its own map-header writer and byte comparator. Evaluation goes through evaluator.evaluateTx rather than the deprecated Scalus.evalPlutusScripts, at protocol version 11. The transaction's maxTxExMem and maxTxExSteps are now passed as one budget for all its scripts, as the ledger applies them. An unknown redeemer tag raises instead of falling back to "spend" and mis-pricing another script.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves
@evolution-sdk/scalus-uplcfromscalus@^0.17.0to^1.3.0.Evaluator.tsgoes from 157lines to 97.
createScalusEvaluatoris unchanged for callers.Scalus reads a UTxO set as CIP-30
[input, output]pairs, so the evaluator passes them straightthrough instead of assembling a CBOR map with its own map-header writer. Evaluation goes through
evaluator.evaluateTxrather than the deprecatedScalus.evalPlutusScripts, at protocol version11.
Fixes that come with it:
context.maxTxExMemandcontext.maxTxExStepswere ignored. They are nowone budget for all the transaction's scripts, as the ledger applies them, so a transaction whose
scripts do not fit fails at build time rather than on submission.
tagMap[r.tag] || "spend"relabelled an unknown tag as a spend, whichmis-prices another script. It now raises.
error.
Tests
#407 (the Scalus emulator provider, against the
scalusbranch) is separate from this.