IModuleManagerBase_v1.sol

Git Sourcearrow-up-right

Inherits: IERC2771Context

Functions

isModule

Returns whether the address module is added as module.

function isModule(address module) external view returns (bool);

Parameters

Name
Type
Description

module

address

The module to check.

Returns

Name
Type
Description

<none>

bool

True if module added, false otherwise.

listModules

Returns the list of all modules.

function listModules() external view returns (address[] memory);

Returns

Name
Type
Description

<none>

address[]

List of all modules.

modulesSize

Returns the number of modules.

Returns

Name
Type
Description

<none>

uint8

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

forwarder

address

The address to check.

Returns

Name
Type
Description

<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

Name
Type
Description

<none>

address

The trusted forwarder address.

Events

ModuleAdded

Event emitted when module added.

Parameters

Name
Type
Description

module

address

The module's address.

ModuleRemoved

Event emitted when module removed.

Parameters

Name
Type
Description

module

address

The module's address.

ModuleTimelockStarted

Event emitted when updating a module is initiated, and the timelock starts;.

Parameters

Name
Type
Description

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

Name
Type
Description

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

Name
Type
Description

_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

Name
Type
Description

timelockActive

bool

Is the timelock currently active.

timelockUntil

uint256

Timestamp that represents from when the update can be carried out.

Last updated