IAccessRegistry

Git Source

Author: luoyhang003

Interface for managing access control via whitelist and blacklist

Provides events and view functions to track and query account permissions

Functions

isWhitelisted

Checks whether a given address is whitelisted

function isWhitelisted(address _account) external view returns (bool);

Parameters

NameTypeDescription
_accountaddressThe address to check

Returns

NameTypeDescription
<none>boolTrue if the address is whitelisted, false otherwise

isBlacklisted

Checks whether a given address is blacklisted

function isBlacklisted(address _account) external view returns (bool);

Parameters

NameTypeDescription
_accountaddressThe address to check

Returns

NameTypeDescription
<none>boolTrue if the address is blacklisted, false otherwise

Events

WhitelistAdded

Emitted when an array of users is added to the whitelist.

event WhitelistAdded(address[] users);

Parameters

NameTypeDescription
usersaddress[]An array of addresses added to the whitelist.

BlacklistAdded

Emitted when an array of users is added to the blacklist.

event BlacklistAdded(address[] users);

Parameters

NameTypeDescription
usersaddress[]An array of addresses added to the blacklist.

WhitelistRemoved

Emitted when an array of users is removed from the whitelist.

event WhitelistRemoved(address[] users);

Parameters

NameTypeDescription
usersaddress[]An array of addresses removed from the whitelist.

BlacklistRemoved

Emitted when an array of users is removed from the blacklist.

event BlacklistRemoved(address[] users);

Parameters

NameTypeDescription
usersaddress[]An array of addresses removed from the blacklist.