Description
Certain notifications may need to be revoked before recipients interact with them. Introduce a revocation mechanism that allows authorized senders to invalidate previously created notifications.
The contract should maintain a transparent record of revoked notifications.
Tasks
Add revocation state tracking.
Restrict revocation permissions.
Emit revocation events.
Prevent interaction with revoked notifications.
Create comprehensive contract tests.
Acceptance Criteria
Authorized senders can revoke notifications.
Revoked notifications become inactive.
Events are emitted correctly.
Tests cover permission checks and edge cases.
Description
Certain notifications may need to be revoked before recipients interact with them. Introduce a revocation mechanism that allows authorized senders to invalidate previously created notifications.
The contract should maintain a transparent record of revoked notifications.
Tasks
Add revocation state tracking.
Restrict revocation permissions.
Emit revocation events.
Prevent interaction with revoked notifications.
Create comprehensive contract tests.
Acceptance Criteria
Authorized senders can revoke notifications.
Revoked notifications become inactive.
Events are emitted correctly.
Tests cover permission checks and edge cases.