Skip to content

ISettingsFacet

Interface for the SettingsFacet contract.

The SettingsFacet contract manages the settings of the project. It is used to store and retrieve the settings flags and data.

Returns the settings flags

function settingsFlags() external view returns (SettingsFlags memory flags);

Returns

NameTypeDescription
flagsSettingsFlagsThe current settings flags

Returns the settings data

function settingsData() external view returns (SettingsData memory data);

Returns

NameTypeDescription
dataSettingsDataThe current settings data

Returns the address of the certificate manager contract.

function certificateManager() external view returns (address nftManagerAddress);

Returns

NameTypeDescription
nftManagerAddressaddressThe address of the certificate manager contract.

Returns the address of the deposit token contract.

Returns address(0x0) if there’s no deposit token set.

function depositTokenAddress() external view returns (address tokenAddress);

Returns

NameTypeDescription
tokenAddressaddressThe address of the deposit token contract.

Updates the settings with the given flags and data.

The caller must have the MANAGER role.

The settings will be validated before updating.

function updateSettings(SettingsFlags calldata flags, SettingsData calldata data) external;

Parameters

NameTypeDescription
flagsSettingsFlagsThe new settings flags
dataSettingsDataThe new settings data