@@ -14,43 +14,24 @@ import {IexecLibCore_v5} from "./libs/IexecLibCore_v5.sol";
14
14
* If you want add new variables for expanded features, add them at the *
15
15
* end, or (better?) create a Store_v2 that inherits from this Store. *
16
16
* *
17
- * If in doubt, read about ERC1538 memory store. *
17
+ * If in doubt, read about Diamond proxy storage. *
18
18
****************************************************************************/
19
19
20
- /// @dev Solstruct translation for v0.8.0
21
- library LibSet_bytes4 {
22
- struct set {
23
- bytes4 [] values;
24
- mapping (bytes4 => uint256 ) indexes;
25
- }
26
- }
27
-
28
- library LibMap2_bytes4_address_bytes {
29
- struct map {
30
- LibSet_bytes4.set keyset;
31
- mapping (bytes4 => address ) values1;
32
- mapping (bytes4 => bytes ) values2;
33
- }
34
- }
35
-
36
- /// @dev @iexec/solidity ERC1538
37
- abstract contract ERC1538Store is Ownable {
38
- LibMap2_bytes4_address_bytes.map internal m_funcs;
39
- }
40
-
41
20
/// @dev registries
42
21
interface IRegistry is IERC721Enumerable {
43
22
function isRegistered (address _entry ) external view returns (bool );
44
23
}
45
24
46
25
/// @dev Poco store
47
26
/**
48
- * @title Central storage of all modules contracts. It follows the transparent
49
- * contract standard aka ERC-1538 .
27
+ * @title Central storage of all modules contracts. It follows the Diamond
28
+ * pattern aka ERC-2535 .
50
29
* @dev note the new added state variable "m_dealsBoost" that holds a new type
51
30
* of deals for the PoCo Boost workflow.
52
31
*/
53
- abstract contract Store is ERC1538Store {
32
+ // TODO replace with diamond AppStorage using namespaced storage.
33
+ // TODO check storage padding.
34
+ abstract contract Store {
54
35
// Registries
55
36
//slither-disable-next-line constable-states
56
37
IRegistry internal m_appregistry;
0 commit comments