Skip to content

Commit

Permalink
feat: no need for ModuleAccessController in Finality and Request
Browse files Browse the repository at this point in the history
  • Loading branch information
xorsal committed Nov 12, 2024
1 parent f6e1762 commit 992c835
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
10 changes: 2 additions & 8 deletions src/contracts/EBOFinalityModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
pragma solidity 0.8.26;

import {IModule, Module} from '@defi-wonderland/prophet-core/solidity/contracts/Module.sol';
import {ModuleAccessController} from
'@defi-wonderland/prophet-modules/solidity/contracts/modules/access/ModuleAccessController.sol';

import {EnumerableSet} from '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';

Expand All @@ -20,7 +18,7 @@ import {
* @notice Module allowing users to index data into the subgraph
* as a result of a request being finalized
*/
contract EBOFinalityModule is ModuleAccessController, IEBOFinalityModule {
contract EBOFinalityModule is Module, IEBOFinalityModule {
using EnumerableSet for EnumerableSet.AddressSet;

/// @inheritdoc IEBOFinalityModule
Expand All @@ -37,11 +35,7 @@ contract EBOFinalityModule is ModuleAccessController, IEBOFinalityModule {
* @param _eboRequestCreator The address of the EBORequestCreator
* @param _arbitrable The address of the Arbitrable contract
*/
constructor(
IOracle _oracle,
IEBORequestCreator _eboRequestCreator,
IArbitrable _arbitrable
) ModuleAccessController(_oracle) {
constructor(IOracle _oracle, IEBORequestCreator _eboRequestCreator, IArbitrable _arbitrable) Module(_oracle) {
_addEBORequestCreator(_eboRequestCreator);
ARBITRABLE = _arbitrable;
}
Expand Down
10 changes: 2 additions & 8 deletions src/contracts/EBORequestModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
pragma solidity 0.8.26;

import {IModule, Module} from '@defi-wonderland/prophet-core/solidity/contracts/Module.sol';
import {ModuleAccessController} from
'@defi-wonderland/prophet-modules/solidity/contracts/modules/access/ModuleAccessController.sol';
import {EnumerableSet} from '@openzeppelin/contracts/utils/structs/EnumerableSet.sol';

import {IArbitrable, IEBORequestCreator, IEBORequestModule, IOracle} from 'interfaces/IEBORequestModule.sol';
Expand All @@ -12,7 +10,7 @@ import {IArbitrable, IEBORequestCreator, IEBORequestModule, IOracle} from 'inter
* @title EBORequestModule
* @notice Module allowing users to create a request for RPC data for a specific epoch
*/
contract EBORequestModule is ModuleAccessController, IEBORequestModule {
contract EBORequestModule is Module, IEBORequestModule {
using EnumerableSet for EnumerableSet.AddressSet;

/// @inheritdoc IEBORequestModule
Expand All @@ -29,11 +27,7 @@ contract EBORequestModule is ModuleAccessController, IEBORequestModule {
* @param _eboRequestCreator The address of the EBORequestCreator
* @param _arbitrable The address of the Arbitrable contract
*/
constructor(
IOracle _oracle,
IEBORequestCreator _eboRequestCreator,
IArbitrable _arbitrable
) ModuleAccessController(_oracle) {
constructor(IOracle _oracle, IEBORequestCreator _eboRequestCreator, IArbitrable _arbitrable) Module(_oracle) {
_addEBORequestCreator(_eboRequestCreator);
ARBITRABLE = _arbitrable;
}
Expand Down

0 comments on commit 992c835

Please sign in to comment.