IModuleManagerBase_v1.sol
Inherits: IERC2771Context
Functions
isModule
Returns whether the address module
is added as module.
Parameters
module
address
The module to check.
Returns
<none>
bool
True if module added, false otherwise.
listModules
Returns the list of all modules.
Returns
<none>
address[]
List of all modules.
modulesSize
Returns the number of modules.
Returns
<none>
uint8
The number of modules.
isTrustedForwarder
Returns wether the given address is the trusted forwarder or not.
Exposes the ERC2771 isTrusted Forwarder.
Parameters
forwarder
address
The address to check.
Returns
<none>
bool
True if the address is the trusted forwarder, false otherwise.
trustedForwarder
Returns the trusted forwarder for metatransactions.
Exposes the ERC2771 isTrusted Forwarder.
Returns
<none>
address
The trusted forwarder address.
Events
ModuleAdded
Event emitted when module added.
Parameters
module
address
The module's address.
ModuleRemoved
Event emitted when module removed.
Parameters
module
address
The module's address.
ModuleTimelockStarted
Event emitted when updating a module is initiated, and the timelock starts;.
Parameters
module
address
The module's address.
timelockUntil
uint256
The unix timestamp until the timelock is active.
ModuleUpdateCanceled
Event emitted when a module update is canceled.
Parameters
module
address
The module's address.
Errors
ModuleManagerBase__CallerNotAuthorized
Function is only callable by authorized address.
ModuleManagerBase__OnlyCallableByModule
Function is only callable by modules.
ModuleManagerBase__InvalidModuleAddress
Given module address invalid.
ModuleManagerBase__IsModule
Given address is a module.
ModuleManagerBase__IsNotModule
Given address is not a module.
ModuleManagerBase__ModuleAmountOverLimits
The {ModuleManagerBase_v1} has reached the maximum amount of modules.
ModuleManagerBase__ModuleUpdateTimelockStillActive
Timelock still active for the given module address.
Parameters
_module
address
The module address.
_timelockUntil
uint256
The unix timestamp until the timelock is active.
ModuleManagerBase__ModuleUpdateAlreadyStarted
Module update is already in progress.
ModuleManagerBase__ModuleNotRegistered
Module has not been registered in our factory.
ModuleManagerBase__ModuleFactoryInvalid
Referenced {ModuleFactory_v1} is invalid.
Structs
ModuleUpdateTimelock
The timelock struct to keep track of updating the registered modules.
Properties
timelockActive
bool
Is the timelock currently active.
timelockUntil
uint256
Timestamp that represents from when the update can be carried out.
Last updated