Skip to content

Commit 194b603

Browse files
committed
fix: add storage gap to upgradeable contract (TRST-R04)
Signed-off-by: Tomás Migone <[email protected]>
1 parent 63ee9ed commit 194b603

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

packages/horizon/contracts/data-service/DataServiceStorage.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ pragma solidity 0.8.27;
33

44
abstract contract DataServiceV1Storage {
55
/// @dev Gap to allow adding variables in future upgrades
6+
/// Note that this contract is not upgradeable but might be inherited by an upgradeable contract
67
uint256[50] private __gap;
78
}

packages/horizon/contracts/data-service/extensions/DataServiceFeesStorage.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@ abstract contract DataServiceFeesV1Storage {
1818
mapping(address serviceProvider => LinkedList.List list) public claimsLists;
1919

2020
/// @dev Gap to allow adding variables in future upgrades
21+
/// Note that this contract is not upgradeable but might be inherited by an upgradeable contract
2122
uint256[50] private __gap;
2223
}

packages/horizon/contracts/data-service/extensions/DataServicePausableUpgradeable.sol

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ abstract contract DataServicePausableUpgradeable is PausableUpgradeable, DataSer
1515
/// @notice List of pause guardians and their allowed status
1616
mapping(address pauseGuardian => bool allowed) public pauseGuardians;
1717

18+
/// @dev Gap to allow adding variables in future upgrades
19+
uint256[50] private __gap;
20+
1821
/**
1922
* @notice Checks if the caller is a pause guardian.
2023
*/

packages/horizon/contracts/data-service/extensions/DataServiceRescuable.sol

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ abstract contract DataServiceRescuable is DataService, IDataServiceRescuable {
2222
/// @notice List of rescuers and their allowed status
2323
mapping(address rescuer => bool allowed) public rescuers;
2424

25+
/// @dev Gap to allow adding variables in future upgrades
26+
/// Note that this contract is not upgradeable but might be inherited by an upgradeable contract
27+
uint256[50] private __gap;
28+
2529
/**
2630
* @notice Checks if the caller is a rescuer.
2731
*/

packages/horizon/contracts/data-service/utilities/ProvisionManagerStorage.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,6 @@ abstract contract ProvisionManagerV1Storage {
2828
uint32 public delegationRatio;
2929

3030
/// @dev Gap to allow adding variables in future upgrades
31+
/// Note that this contract is not upgradeable but might be inherited by an upgradeable contract
3132
uint256[50] private __gap;
3233
}

0 commit comments

Comments
 (0)