Skip to content

Feat/blacklist - #269

Merged
GuiDupont merged 8 commits into
feat/v0.6.0from
feat/blacklist
Feb 3, 2026
Merged

Feat/blacklist#269
GuiDupont merged 8 commits into
feat/v0.6.0from
feat/blacklist

Conversation

@GuiDupont

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/v0.6.0/primitives/Enums.sol Outdated
}

// ********************* WHITELISTABLE ********************* //
enum WhitelistState {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would name this AccessMode instead

Comment thread src/v0.6.0/Whitelistable.sol Outdated
/// @notice Deactivates the whitelist
function disableWhitelist() public onlyOwner {
WhitelistableLib.disableWhitelist();
function switchWhitelistMode(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would name this switchAccessMode

Comment thread src/v0.6.0/primitives/Events.sol Outdated
event BlacklistActivated();

/// @notice Emitted when the whitelist is switched to whitelist.
event WhitelistActivated();

@jfrancai jfrancai Feb 2, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should only use one event with params like AccessModeUpdated(Whitelist/Blacklist)

Comment thread src/v0.6.0/primitives/Errors.sol Outdated

/// @notice Indicates that the whitelist is not activated.
/// @dev this error is not used in v0.6.0.
error WhitelistNotActivated();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this error being used if I'm not mistaken

Comment thread src/v0.6.0/primitives/Errors.sol Outdated
error WhitelistNotActivated();

/// @notice Indicates that the whitelist/blacklist is disabled.
error AccessControlDisabled();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see this error being used if I'm not mistaken

- Rename enum WhitelistState to AccessMode
- Rename function switchWhitelistMode to switchAccessMode
- Replace BlacklistActivated and WhitelistActivated events with single AccessModeUpdated(AccessMode) event
- Remove unused errors WhitelistNotActivated and AccessControlDisabled

Addresses review comments from PR #269.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@GuiDupont
GuiDupont merged commit 4b00d2e into feat/v0.6.0 Feb 3, 2026
3 checks passed
@GuiDupont
GuiDupont deleted the feat/blacklist branch February 3, 2026 10:24
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.

2 participants