Re-pin two_party_escrow (mainnet and preview) to the latest accept-path optimization#237
Merged
Conversation
… accept-path optimization (d078652) Update the Plinth_1.65.0.0_Unisay default and its _preview counterpart to plinth-cape-submissions @d078652. The accept-path pass (compile-time credential compare, fused withdrawal scan, shared TxInfo spine walk, positional adaOf lovelace read, findUniqueE deposit lookup) drops happy-path total_fee 101588->73594 (mainnet changPV, -27.6%) and 83342->62722 (preview van Rossem, -24.7%). All 47 outcomes hold.
9133e82 to
9a0f2ee
Compare
Contributor
🚀 PR Preview DeployedPreview URL: https://intersectmbo.github.io/UPLC-CAPE/pr-237/ The preview site is automatically updated on every push to this PR and will be removed when the PR is closed. |
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.
Updates the two_party_escrow
Plinth_1.65.0.0_Unisaydefault and itsPlinth_1.65.0.0_Unisay_previewcounterpart to plinth-cape-submissionsd078652(current main HEAD). The change is an accept-path optimization pass: it compares the compile-time script credential instead of locating the own input by out-ref, fuses the withdrawal scan into the seller-payment fold, shares oneTxInfospine walk across inputs/outputs/signatories, reads lovelace positionally withadaOfinstead of an assetAmount key lookup, and locates the single deposit output withfindUniqueEin one pass.Result
Happy-path
total_fee_lovelace, measured againstscenarios/two_party_escrow/cape-tests.json:On the mainnet changPV evaluator the escrow now costs 73594 lovelace, a 27.6% reduction from the current committed default (101588).
What changed
Both submissions are updated in place: the
.uplc,metrics.json,metadata.json, andsource/README.md. The source pin moves tod078652; the compiler (Plinth 1.65.0.0, commitb2db5126) is unchanged. The mainnet default keeps its["Plinth"]flags, and the preview keeps["Plinth", "BuiltinCasing"]withmin_plutus_version = 1.65.0.0(its preview-onlydropListdecoder step is retained on top of the accept-path work). The retainedPlinth_1.65.0.0_Unisay_asdatavariant is untouched.Source and verification
The mainnet artifact is re-measured with the
measureevaluator (changPV, PlutusTx.Eval 1.45.0.0); the preview withmeasure-preview(van Rossem / PV11), since the default verifier rejects preview submissions by design. Both keep all 47 expected evaluation outcomes (10/10 on the happy-path aggregate). Both JSON files validate against the repo schemas, and all eight changed files aretreefmtclean.