IAddressList
Title: IAddressList
Interface for central address list management in the Apyx protocol
Provides a single source of truth for blocked/allowed addresses across all Apyx contracts
Functions
add
Adds an address to the list
function add(address user) external;
Parameters
| Name | Type | Description |
|---|---|---|
user | address | Address to add |
remove
Removes an address from the list
function remove(address user) external;
Parameters
| Name | Type | Description |
|---|---|---|
user | address | Address to remove |
contains
Checks if an address is in the list
function contains(address user) external view returns (bool);
Parameters
| Name | Type | Description |
|---|---|---|
user | address | Address to check |
Returns
| Name | Type | Description |
|---|---|---|
<none> | bool | True if address is in the list, false otherwise |
length
Returns the number of addresses in the list
function length() external view returns (uint256);
Returns
| Name | Type | Description |
|---|---|---|
<none> | uint256 | Number of addresses |
at
Returns the address at the given index
function at(uint256 index) external view returns (address);
Parameters
| Name | Type | Description |
|---|---|---|
index | uint256 | Index of the address to retrieve |
Returns
| Name | Type | Description |
|---|---|---|
<none> | address | Address at the given index |
Events
Added
Emitted when an address is added to the list
event Added(address indexed user);
Parameters
| Name | Type | Description |
|---|---|---|
user | address | Address that was added |
Removed
Emitted when an address is removed from the list
event Removed(address indexed user);
Parameters
| Name | Type | Description |
|---|---|---|
user | address | Address that was removed |