Skip to content
This repository was archived by the owner on May 11, 2026. It is now read-only.

Update Authorized.sol - #16

Open
Onze981 wants to merge 1 commit into
Polymarket:mainfrom
Onze981:patch-1
Open

Update Authorized.sol#16
Onze981 wants to merge 1 commit into
Polymarket:mainfrom
Onze981:patch-1

Conversation

@Onze981

@Onze981 Onze981 commented Nov 21, 2025

Copy link
Copy Markdown

Note

Implements Authorized contract details: custom error-based onlyAuthorized modifier, authorization events, idempotent add/remove restricted to owner, and simplified imports.

  • Contracts — src/common/auth/Authorized.sol:
    • Add custom error OnlyAuthorized and onlyAuthorized modifier using it.
    • Define and emit AuthorizationAdded and AuthorizationRemoved events.
    • Implement idempotent addAuthorization/removeAuthorization restricted by onlyOwner.
    • Maintain authorized mapping and owner-initializing constructor.
    • Simplify imports to only IAuthorized (remove IAuthorizedEE).

Written by Cursor Bugbot for commit 8d68c92. This will update automatically on new commits. Configure here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant