SablierV2Archive
Inherits: ISablierV2Archive, Adminable
See the documentation in ISablierV2Archive.
State Variables
isListed
A boolean flag that indicates whether the provided address is part of the archive.
mapping(address addr => bool listed) public override isListed;
Functions
constructor
constructor(address initialAdmin);
list
Lists an address in the archive.
Emits a {List} event. Notes:
- It is not an error to list an address that is already listed. Requirements:
- The caller must be the admin.
function list(address addr) external onlyAdmin;
Parameters
Name | Type | Description |
---|---|---|
addr | address | The address to list in the archive, which should be a contract. |
unlist
Unlists an address from the archive.
Emits an {Unlist} event. Notes:
- It is not an error to unlist an address that is not already listed. Requirements:
- The caller must be the admin.
function unlist(address addr) external onlyAdmin;
Parameters
Name | Type | Description |
---|---|---|
addr | address | The address to unlist from the archive, which is usually a contract address. |