Skip to content

Re-pin linear_vesting (mainnet and preview) to the bytestring-keyed assetAmount lookup#238

Merged
Unisay merged 2 commits into
mainfrom
yura/lv-repin
Jul 8, 2026
Merged

Re-pin linear_vesting (mainnet and preview) to the bytestring-keyed assetAmount lookup#238
Unisay merged 2 commits into
mainfrom
yura/lv-repin

Conversation

@Unisay

@Unisay Unisay commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Updates the linear_vesting Plinth_1.65.0.0_Unisay default and its Plinth_1.65.0.0_Unisay_preview counterpart to plinth-cape-submissions d078652 (current main HEAD). The change reads the vesting-token quantity with a bytestring-keyed map lookup (lookupBytesE, comparing the unwrapped CurrencySymbol and TokenName keys with equalsByteString) instead of comparing whole Value keys with equalsData, and re-sweeps the inliner budget for the new shape.

Result

Happy-path total_fee_lovelace, measured against scenarios/linear_vesting/cape-tests.json:

Submission old fee new fee delta
Plinth_1.65.0.0_Unisay (mainnet, changPV) 59048 58343 -1.2%
Plinth_1.65.0.0_Unisay_preview (van Rossem) 49805 48971 -1.7%

The saving is small because the win is on the compare path (cpu.sum drops about 7.5% mainnet and 10% preview), which the fee only partly reflects.

What changed

Both submissions are updated in place: the .uplc, metrics.json, metadata.json, and source/README.md. The source pin moves to d078652; the compiler (Plinth 1.65.0.0, commit b2db5126) is unchanged. The mainnet default keeps its ["Plinth"] flags, and the preview keeps ["Plinth", "BuiltinCasing"] with min_plutus_version = 1.65.0.0 (its preview-only dropList decoder step is retained on top of this change). The retained Plinth_1.65.0.0_Unisay_plain variant is untouched.

Source and verification

The mainnet artifact is re-measured with the measure evaluator (changPV, PlutusTx.Eval 1.45.0.0); the preview with measure-preview (van Rossem / PV11), since the default verifier rejects preview submissions by design. Both keep all 29 expected evaluation outcomes. Both JSON files validate against the repo schemas, and all eight changed files are treefmt clean.

@Unisay Unisay requested a review from Copilot July 8, 2026 14:40
@Unisay Unisay self-assigned this Jul 8, 2026
@Unisay Unisay marked this pull request as ready for review July 8, 2026 14:40
…ng-keyed assetAmount lookup (d078652)

Update the Plinth_1.65.0.0_Unisay default and its _preview counterpart to
plinth-cape-submissions @d078652. assetAmount now reads the vesting-token quantity
with lookupBytesE (comparing unwrapped CurrencySymbol/TokenName keys via
equalsByteString) instead of comparing whole Value keys with equalsData, with a
re-swept inliner budget. Happy-path total_fee 59048->58343 mainnet (-1.2%) and
49805->48971 preview (-1.7%); all 29 outcomes hold.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the linear_vesting Plinth 1.65.0.0 mainnet and preview submissions to a newer upstream pin, switching the vesting-token quantity lookup to a bytestring-keyed map lookup in the generated UPLC, and re-recording the corresponding metrics/metadata.

Changes:

  • Re-pins both Plinth_1.65.0.0_Unisay (mainnet) and Plinth_1.65.0.0_Unisay_preview to upstream commit d078652…, updating linear_vesting.uplc.
  • Updates metrics.json and metadata.json to reflect the new artifact shape and re-measured costs.
  • Refreshes source/README.md in both submissions to point to the new source commit and updated reproduction instructions.

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
submissions/linear_vesting/Plinth_1.65.0.0_Unisay/source/README.md Updates source pin and reproduction notes for the mainnet submission.
submissions/linear_vesting/Plinth_1.65.0.0_Unisay/metrics.json Updates measured CPU/memory/fees and related aggregates for the new artifact.
submissions/linear_vesting/Plinth_1.65.0.0_Unisay/metadata.json Updates submission date, source commit hash, and implementation notes.
submissions/linear_vesting/Plinth_1.65.0.0_Unisay/linear_vesting.uplc Updates the compiled UPLC (notably the bytestring-keyed asset amount lookup path).
submissions/linear_vesting/Plinth_1.65.0.0_Unisay_preview/source/README.md Updates source pin and reproduction notes for the preview submission.
submissions/linear_vesting/Plinth_1.65.0.0_Unisay_preview/metrics.json Updates measured CPU/memory/fees and related aggregates for the new preview artifact.
submissions/linear_vesting/Plinth_1.65.0.0_Unisay_preview/metadata.json Updates submission date, source commit hash, and implementation notes for preview.
submissions/linear_vesting/Plinth_1.65.0.0_Unisay_preview/linear_vesting.uplc Updates the compiled preview UPLC to the new upstream pin/lookup strategy.

Comment thread submissions/linear_vesting/Plinth_1.65.0.0_Unisay/source/README.md
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🚀 PR Preview Deployed

Preview URL: https://intersectmbo.github.io/UPLC-CAPE/pr-238/

The preview site is automatically updated on every push to this PR and will be removed when the PR is closed.

- submissions/linear_vesting/Plinth_1.65.0.0_Unisay/source/README.md — restore produced-UPLC output path in the reproduce section (#238 (comment))
- submissions/linear_vesting/Plinth_1.65.0.0_Unisay_preview/source/README.md — same (#238 (comment))
@Unisay Unisay merged commit 389a875 into main Jul 8, 2026
6 checks passed
@Unisay Unisay deleted the yura/lv-repin branch July 8, 2026 15:21
github-actions Bot added a commit that referenced this pull request Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants