-
Notifications
You must be signed in to change notification settings - Fork 7
/
IVaultBlocklist.sol
53 lines (45 loc) · 1.81 KB
/
IVaultBlocklist.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.22;
import {IVaultAdmin} from './IVaultAdmin.sol';
/**
* @title IVaultBlocklist
* @author StakeWise
* @notice Defines the interface for the VaultBlocklist contract
*/
interface IVaultBlocklist is IVaultAdmin {
/**
* @notice Event emitted on blocklist update
* @param caller The address of the function caller
* @param account The address of the account updated
* @param isBlocked Whether account is blocked or not
*/
event BlocklistUpdated(address indexed caller, address indexed account, bool isBlocked);
/**
* @notice Event emitted when blocklist manager address is updated
* @param caller The address of the function caller
* @param blocklistManager The address of the new blocklist manager
*/
event BlocklistManagerUpdated(address indexed caller, address indexed blocklistManager);
/**
* @notice Blocklist manager address
* @return The address of the blocklist manager
*/
function blocklistManager() external view returns (address);
/**
* @notice Checks whether account is blocked or not
* @param account The account to check
* @return `true` for the blocked account, `false` otherwise
*/
function blockedAccounts(address account) external view returns (bool);
/**
* @notice Add or remove account from the blocklist. Can only be called by the blocklist manager.
* @param account The account to add or remove to the blocklist
* @param isBlocked Whether account should be blocked or not
*/
function updateBlocklist(address account, bool isBlocked) external;
/**
* @notice Used to update the blocklist manager. Can only be called by the Vault admin.
* @param _blocklistManager The address of the new blocklist manager
*/
function setBlocklistManager(address _blocklistManager) external;
}