Skip to content

Commit

Permalink
feat: modify storage gaps
Browse files Browse the repository at this point in the history
  • Loading branch information
AnshuJalan committed Oct 6, 2024
1 parent fd36c2a commit 33204bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SmartContracts/src/avs/PreconfRegistry.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ contract PreconfRegistry is IPreconfRegistry, BLSSignatureChecker, Initializable
// Maps a validator's BLS pub key hash to the validator's details
mapping(bytes32 publicKeyHash => Validator) internal validators;

uint256[196] private __gap; // = 200 - 4
uint256[46] private __gap; // = 50 - 4

constructor(IPreconfServiceManager _preconfServiceManager) {
preconfServiceManager = _preconfServiceManager;
Expand Down
2 changes: 1 addition & 1 deletion SmartContracts/src/avs/PreconfServiceManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ contract PreconfServiceManager is IPreconfServiceManager, ReentrancyGuard {
/// @dev This is currently just a flag and not actually being used to lock the stake.
mapping(address operator => uint256 timestamp) public stakeLockedUntil;

uint256[199] private __gap; // 200 - 1
uint256[49] private __gap; // 50 - 1

constructor(address _preconfRegistry, address _preconfTaskManager, IAVSDirectory _avsDirectory, ISlasher _slasher) {
preconfRegistry = _preconfRegistry;
Expand Down
2 changes: 1 addition & 1 deletion SmartContracts/src/avs/PreconfTaskManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ contract PreconfTaskManager is IPreconfTaskManager, Initializable {
uint256 internal constant LOOKAHEAD_POSTER_BUFFER_SIZE = PreconfConstants.SECONDS_IN_EPOCH * 16;
mapping(uint256 epochTimestamp_mod_LOOKAHEAD_POSTER_BUFFER_SIZE => PosterInfo posterInfo) internal lookaheadPosters;

uint256[133] private __gap; // = 200 - 67
uint256[46] private __gap; // = 50 - 4

constructor(
IPreconfServiceManager _serviceManager,
Expand Down

0 comments on commit 33204bd

Please sign in to comment.