Skip to content

Commit 9a348fc

Browse files
committed
add data structure
1 parent 4f9f291 commit 9a348fc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contracts/libraries/SSVStorage.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ struct StorageData {
3333
IERC20 token;
3434
/// @notice Counter keeping track of the last Operator ID issued
3535
Counters.Counter lastOperatorId;
36+
/// @notice Operators' whitelist: Maps each whitelisted address to a list of operators
37+
/// @notice that are whitelisted for that address using bitmaps
38+
/// @dev The nested mapping's key represents a uint256 slot to handle more than 256 operators per address
39+
mapping(address => mapping(uint256 => uint256)) addressWhitelistedForOperators;
3640
}
3741

3842
library SSVStorage {

0 commit comments

Comments
 (0)