From 085a3b712f0ac05319861978a174c6e8bd3f2d29 Mon Sep 17 00:00:00 2001 From: Marco Tabasco Date: Tue, 16 Apr 2024 15:05:11 +0200 Subject: [PATCH] add data structure --- contracts/libraries/SSVStorage.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contracts/libraries/SSVStorage.sol b/contracts/libraries/SSVStorage.sol index 1ddd79aa..508feb42 100644 --- a/contracts/libraries/SSVStorage.sol +++ b/contracts/libraries/SSVStorage.sol @@ -33,6 +33,10 @@ struct StorageData { IERC20 token; /// @notice Counter keeping track of the last Operator ID issued Counters.Counter lastOperatorId; + /// @notice Operators' whitelist: Maps each whitelisted address to a list of operators + /// @notice that are whitelisted for that address using bitmaps + /// @dev The nested mapping's key represents a uint256 slot to handle more than 256 operators per address + mapping(address => mapping(uint256 => uint256)) addressWhitelistedForOperators; } library SSVStorage {