WIP: Add guard-wide ERC20 pause module [CI SKIP] #5

Draft
PlasticDigits wants to merge 1 commit from security/guard-wide-token-pause into main
Owner

Adds an optional, initially unpaused module for a fixed GuardERC20 pipeline. AccessManager selectors separate the emergency pause role from governance resume, module management and authority control. Existing token and guard contracts are unchanged.

The module is guard-wide because hooks have no originating token context. Unknown or shared guards cannot be admitted as a single-token pause. While paused, transfers, burns, issuance hooks and recovery transfers through that guard revert; approvals and views remain available. Closing an AccessManager target is not a substitute for the paused flag. Legacy and bridged immutable tokens do not acquire freeze rights through this change.

Validation: ten focused local tests pass, including selector denial, revocation, atomic rollback, both target-closure cases, shared-guard scope and recovery paths. Coordinator and independent source reviews approved the change. The fresh base's existing CI file is preserved unchanged. Deployed token binding, dedicated guard scope, source/runtime equivalence and live containment remain unverified; no deployment, transaction or signer enrollment is performed by this draft.

Adds an optional, initially unpaused module for a fixed `GuardERC20` pipeline. AccessManager selectors separate the emergency pause role from governance resume, module management and authority control. Existing token and guard contracts are unchanged. The module is guard-wide because hooks have no originating token context. Unknown or shared guards cannot be admitted as a single-token pause. While paused, transfers, burns, issuance hooks and recovery transfers through that guard revert; approvals and views remain available. Closing an AccessManager target is not a substitute for the paused flag. Legacy and bridged immutable tokens do not acquire freeze rights through this change. Validation: ten focused local tests pass, including selector denial, revocation, atomic rollback, both target-closure cases, shared-guard scope and recovery paths. Coordinator and independent source reviews approved the change. The fresh base's existing CI file is preserved unchanged. Deployed token binding, dedicated guard scope, source/runtime equivalence and live containment remain unverified; no deployment, transaction or signer enrollment is performed by this draft.
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'security/guard-wide-token-pause:security/guard-wide-token-pause'
git switch 'security/guard-wide-token-pause'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
code/CL8Y-Token-SC!5
No description provided.