-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMainModuleDynamicAuth.sol
More file actions
56 lines (49 loc) · 1.68 KB
/
MainModuleDynamicAuth.sol
File metadata and controls
56 lines (49 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
// Copyright Immutable Pty Ltd 2018 - 2023
// SPDX-License-Identifier: Apache-2.0
pragma solidity 0.8.17;
import "./commons/ModuleAuthDynamic.sol";
import "./commons/ModuleReceivers.sol";
import "./commons/ModuleCalls.sol";
import "./commons/ModuleUpdate.sol";
/**
* TODO Peter update docs
* @notice Contains the core functionality arcadeum wallets will inherit with
* the added functionality that the main-module can be changed.
* @dev If using a new main module, developpers must ensure that all inherited
* contracts by the mainmodule don't conflict and are accounted for to be
* supported by the supportsInterface method.
*/
contract MainModuleDynamicAuth is
ModuleAuthDynamic,
ModuleCalls,
ModuleReceivers,
ModuleUpdate
{
// solhint-disable-next-line no-empty-blocks
constructor(
address _factory,
address _startup,
address _immutableSignerContract
) ModuleAuthDynamic (_factory, _startup, _immutableSignerContract) { }
/**
* @notice Query if a contract implements an interface
* @param _interfaceID The interface identifier, as specified in ERC-165
* @dev If using a new main module, developpers must ensure that all inherited
* contracts by the mainmodule don't conflict and are accounted for to be
* supported by the supportsInterface method.
* @return `true` if the contract implements `_interfaceID`
*/
function supportsInterface(
bytes4 _interfaceID
) public override(
ModuleAuthUpgradable,
ModuleCalls,
ModuleReceivers,
ModuleUpdate
) pure returns (bool) {
return super.supportsInterface(_interfaceID);
}
function version() external pure virtual returns (uint256) {
return 1;
}
}