Skip to content

feat!: separate swap-guard restriction from the generator verdict - #38

Merged
mfw78 merged 1 commit into
developfrom
feat/restriction-overlay
Jul 31, 2026
Merged

feat!: separate swap-guard restriction from the generator verdict#38
mfw78 merged 1 commit into
developfrom
feat/restriction-overlay

Conversation

@mfw78

@mfw78 mfw78 commented Jul 11, 2026

Copy link
Copy Markdown
  • PollResult gains a registry-level Restriction overlay (NONE | SWAP_GUARD), populated in the shared _poll so checkOrder reports it too
  • the generator verdict is never overwritten: a guarded POST stays visible, the signature is withheld
  • INVALID becomes uniformly terminal as an invariant — no reason-selector branching for control flow; unpark is event-driven via the existing SwapGuardSet (clear = address(0))
  • SwapGuardRestricted remains the settlement-path revert

BREAKING: PollResult shape changes.

Issues

Closes #32.

Part of #1.

@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from d3d0fc1 to af2a32a Compare July 30, 2026 03:50
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch 2 times, most recently from 9f09c90 to b1b39ba Compare July 30, 2026 04:01
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from af2a32a to 80311a0 Compare July 30, 2026 04:01
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from b1b39ba to a1df803 Compare July 30, 2026 06:59
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch 2 times, most recently from 1dc2705 to 6586f83 Compare July 30, 2026 07:02
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from a1df803 to 53a4a25 Compare July 30, 2026 07:02
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from 6586f83 to 6956151 Compare July 30, 2026 07:07
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch 2 times, most recently from 4bef4d7 to a399682 Compare July 30, 2026 07:09
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch 2 times, most recently from 16d4968 to 8b13dac Compare July 30, 2026 07:14
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from a399682 to 36d8237 Compare July 30, 2026 07:14
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch 2 times, most recently from c063238 to 600c0fa Compare July 30, 2026 07:22
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from 85631a2 to 1caee16 Compare July 30, 2026 07:22
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from 600c0fa to 60ae13a Compare July 30, 2026 07:26
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from 1caee16 to 271863c Compare July 30, 2026 07:26
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from 60ae13a to b02433d Compare July 30, 2026 07:33
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from 271863c to 8a1d613 Compare July 30, 2026 07:33
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from 8a1d613 to 6aeffdf Compare July 30, 2026 08:23
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch 2 times, most recently from 69b292c to 6b3a7c5 Compare July 30, 2026 08:42
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch 2 times, most recently from 65b5f7a to b105e8e Compare July 30, 2026 09:51
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from 6b3a7c5 to 5b418ef Compare July 30, 2026 09:51
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from b105e8e to b42eaf9 Compare July 30, 2026 09:54
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from da5eff1 to 04b2dcb Compare July 30, 2026 13:55
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from d658739 to d24c313 Compare July 30, 2026 14:25
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from 04b2dcb to 61e2f00 Compare July 30, 2026 14:25
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from d24c313 to ca2cff2 Compare July 30, 2026 23:43
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from 61e2f00 to 8907bd3 Compare July 30, 2026 23:43
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from ca2cff2 to 8bd6d4e Compare July 30, 2026 23:51
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from 8907bd3 to 9b49b98 Compare July 30, 2026 23:51
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from 8bd6d4e to 93d8910 Compare July 31, 2026 00:06
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from 9b49b98 to 876a90a Compare July 31, 2026 00:06
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from 93d8910 to b9bbff6 Compare July 31, 2026 00:12
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from 876a90a to 45b2fe4 Compare July 31, 2026 00:12
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from b9bbff6 to de8b43a Compare July 31, 2026 00:14
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch 2 times, most recently from 81ef297 to d692fa5 Compare July 31, 2026 04:00
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch 2 times, most recently from 449974e to ee8cff9 Compare July 31, 2026 05:26
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from d692fa5 to 5e9abb7 Compare July 31, 2026 05:26
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from ee8cff9 to 94848d6 Compare July 31, 2026 06:10
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from 5e9abb7 to 043fa79 Compare July 31, 2026 06:10
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from 94848d6 to b3214b4 Compare July 31, 2026 06:14
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch 2 times, most recently from 9e0adda to 9e305d1 Compare July 31, 2026 06:29
@mfw78
mfw78 force-pushed the feat/needs-input-verdict branch from 3f01b6f to 9dbe411 Compare July 31, 2026 06:31
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from 9e305d1 to d40bfba Compare July 31, 2026 06:31
Base automatically changed from feat/needs-input-verdict to develop July 31, 2026 06:37
@mfw78
mfw78 force-pushed the feat/restriction-overlay branch from d40bfba to 5a87a8d Compare July 31, 2026 06:42
@github-actions

Copy link
Copy Markdown


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@mfw78
mfw78 merged commit e38e35b into develop Jul 31, 2026
1 of 2 checks passed
@mfw78
mfw78 deleted the feat/restriction-overlay branch July 31, 2026 06:54
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.

Separate swap-guard restriction from the generator verdict

1 participant