Skip to main content

ISablierV2Archive

Git Source

Inherits: IAdminable

An on-chain contract registry that keeps a record of all Sablier V2 contracts, including old deployments.

Functions

isListed

A boolean flag that indicates whether the provided address is part of the archive.

function isListed(address addr) external returns (bool result);

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;

Parameters

NameTypeDescription
addraddressThe 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;

Parameters

NameTypeDescription
addraddressThe address to unlist from the archive, which is usually a contract address.

Events

List

Emitted when an address is listed in the archive.

event List(address indexed admin, address indexed addr);

Unlist

Emitted when an address is unlisted from the archive.

event Unlist(address indexed admin, address indexed addr);