IModuleManagerBase_v1.sol
Inherits: IERC2771Context
Functions
isModule
Returns whether the address module
is added as module.
Parameters
Name | Type | Description |
---|---|---|
|
| The module to check. |
Returns
Name | Type | Description |
---|---|---|
|
| True if module added, false otherwise. |
listModules
Returns the list of all modules.
Returns
Name | Type | Description |
---|---|---|
|
| List of all modules. |
modulesSize
Returns the number of modules.
Returns
Name | Type | Description |
---|---|---|
|
| The number of modules. |
isTrustedForwarder
Returns wether the given address is the trusted forwarder or not.
Exposes the ERC2771 isTrusted Forwarder.
Parameters
Name | Type | Description |
---|---|---|
|
| The address to check. |
Returns
Name | Type | Description |
---|---|---|
|
| True if the address is the trusted forwarder, false otherwise. |
trustedForwarder
Returns the trusted forwarder for metatransactions.
Exposes the ERC2771 isTrusted Forwarder.
Returns
Name | Type | Description |
---|---|---|
|
| The trusted forwarder address. |
Events
ModuleAdded
Event emitted when module added.
Parameters
Name | Type | Description |
---|---|---|
|
| The module's address. |
ModuleRemoved
Event emitted when module removed.
Parameters
Name | Type | Description |
---|---|---|
|
| The module's address. |
ModuleTimelockStarted
Event emitted when updating a module is initiated, and the timelock starts;.
Parameters
Name | Type | Description |
---|---|---|
|
| The module's address. |
|
| The unix timestamp until the timelock is active. |
ModuleUpdateCanceled
Event emitted when a module update is canceled.
Parameters
Name | Type | Description |
---|---|---|
|
| 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
Name | Type | Description |
---|---|---|
|
| The module address. |
|
| 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
Name | Type | Description |
---|---|---|
|
| Is the timelock currently active. |
|
| Timestamp that represents from when the update can be carried out. |
Last updated