Skip to content

Homogenize tweaks (#491)#525

Draft
mmontin wants to merge 2 commits into
mainfrom
homogenize-tweaks
Draft

Homogenize tweaks (#491)#525
mmontin wants to merge 2 commits into
mainfrom
homogenize-tweaks

Conversation

@mmontin

@mmontin mmontin commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Address the three shortcomings of the tweak DSL described in #491:

  • Naming consistency: rename predicate-based removal tweaks to plural form (removeInputTweak -> removeInputsTweak, removeOutputTweak -> removeOutputsTweak, removeMintTweak -> removeMintsTweak) and add a singular addMintTweak.
  • Missing redeemer tweaks: introduce Cooked.Tweak.Redeemers with redeemer modification tweaks for all five redeemer positions (spending, minting, proposing, withdrawing, certifying), an all-position variant, and tamperRedeemerTweak / malformRedeemerTweak mirroring the datum tweaks. modifySpendRedeemersOfTypeTweak moves here from Cooked.Tweak.Inputs.
  • Branch vs apply-all clarity: document the naming and branching conventions in doc/TWEAKS.md and summarize them in the Cooked.Tweak.Common haddock.

Add tests for the new redeemer tweaks and update CHEATSHEET and CHANGELOG.

mmontin and others added 2 commits June 17, 2026 13:29
Address the three shortcomings of the tweak DSL described in #491:

- Naming consistency: rename predicate-based removal tweaks to plural form
  (removeInputTweak -> removeInputsTweak, removeOutputTweak ->
  removeOutputsTweak, removeMintTweak -> removeMintsTweak) and add a singular
  addMintTweak.
- Missing redeemer tweaks: introduce Cooked.Tweak.Redeemers with redeemer
  modification tweaks for all five redeemer positions (spending, minting,
  proposing, withdrawing, certifying), an all-position variant, and
  tamperRedeemerTweak / malformRedeemerTweak mirroring the datum tweaks.
  modifySpendRedeemersOfTypeTweak moves here from Cooked.Tweak.Inputs.
- Branch vs apply-all clarity: document the naming and branching conventions in
  doc/TWEAKS.md and summarize them in the Cooked.Tweak.Common haddock.

Add tests for the new redeemer tweaks and update CHEATSHEET and CHANGELOG.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

1 participant