Skip to content

Commit b6a5a16

Browse files
feat: replace erc1538 naming to diamond proxy naming - part 2 (#230)
* feat: Migrate from delegateSmart contract to facet naming * feat: Update contract references from delegate to facet naming across multiple files * feat: Remove DelegateBase and DelegateBase.v8 contracts * feat: Update contract references from delegate to facet naming in multiple files * fix: Correct typo in changelog for ERC1538 architecture renaming * Update comment --------- Co-authored-by: Zied <[email protected]>
1 parent c83fed7 commit b6a5a16

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+1273
-1331
lines changed

.solcover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
'tools/testing/ERC1271Mock.sol',
2222
'tools/testing/TestClient.sol',
2323
'tools/testing/TestReceiver.sol',
24-
'modules/delegates/SignatureVerifier.sol',
24+
'modules/facets/SignatureVerifier.sol',
2525
],
2626
istanbulFolder: BASE_FOLDER,
2727
};

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## vNEXT
44

55
- Migrate proxy to Diamond pattern (ERC-2535):
6+
- Rename ERC1538 architure to diamond Proxy architecture(#226, #229, #230)
67
- Remove ENS module (#225)
78
- Add Diamond contract unit tests (#224)
89
- Fix `fallback` and `receive` (#223)

contracts/Store.v8.sol

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ abstract contract Store {
9292
/**
9393
* @dev EIP-712 domain hash.
9494
*/
95-
// Modified in IexecMaintenanceDelegate.updateDomainSeparator
95+
// Modified in IexecMaintenanceFacet.updateDomainSeparator
9696
//slither-disable-next-line constable-states
9797
bytes32 internal EIP712DOMAIN_SEPARATOR;
9898

@@ -125,14 +125,14 @@ abstract contract Store {
125125
/**
126126
* @dev Address of a trusted TEE authority that manages enclave challenges.
127127
*/
128-
// Modified in IexecMaintenanceDelegate.setTeeBroker
128+
// Modified in IexecMaintenanceFacet.setTeeBroker
129129
//slither-disable-next-line constable-states
130130
address internal m_teebroker;
131131

132132
/**
133133
* @dev Max amount of gas to be used with callbacks.
134134
*/
135-
// Modified in IexecMaintenanceDelegate.setCallbackGas
135+
// Modified in IexecMaintenanceFacet.setCallbackGas
136136
//slither-disable-next-line constable-states
137137
uint256 internal m_callbackgas;
138138

@@ -142,7 +142,7 @@ abstract contract Store {
142142
IexecLibCore_v5.Category[] internal m_categories;
143143

144144
// Backward compatibility
145-
// Modified in IexecMaintenanceDelegate.configure
145+
// Modified in IexecMaintenanceFacet.configure
146146
//slither-disable-next-line constable-states
147147
address internal m_v3_iexecHub; // IexecHubInterface
148148
mapping(address => bool) internal m_v3_scoreImported;
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@ import "./interfaces/IOwnable.sol";
99
// Functions that were declared in ERC1538Store are re-declared here.
1010
// TODO clean this (use LibDiamond)
1111
// - All calls to `owner()` should use `LibDiamond.contractOwner()`.
12-
// TODO rename this contract to `FacetBase`.
1312

14-
abstract contract DelegateBase is Store {
13+
abstract contract FacetBase is Store {
1514
modifier onlyOwner() {
1615
require(_msgSender() == owner(), "Ownable: caller is not the owner");
1716
_;
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ import {Store} from "../Store.v8.sol";
99
// Functions that were declared in ERC1538Store are re-declared here.
1010
// TODO clean this (use LibDiamond)
1111
// - All calls to `owner()` should use `LibDiamond.contractOwner()`.
12-
// TODO rename this contract to `FacetBase`.
1312

1413
/**
15-
* @title Base contract of all Delegate contracts.
14+
* @title Base contract of all Facet contracts.
1615
* @dev Every module must inherit from this contract.
1716
*/
18-
abstract contract DelegateBase is Store {
17+
abstract contract FacetBase is Store {
1918
modifier onlyOwner() {
2019
require(_msgSender() == owner(), "Ownable: caller is not the owner");
2120
_;

contracts/modules/delegates/IexecAccessorsABILegacyDelegate.sol

Lines changed: 0 additions & 159 deletions
This file was deleted.

0 commit comments

Comments
 (0)