Skip to main content

L2MessageService

CONTRACT_VERSION

string CONTRACT_VERSION

This is the ABI version and not the reinitialize version.

constructor

constructor() public

initialize

function initialize(uint256 _rateLimitPeriod, uint256 _rateLimitAmount, address _defaultAdmin, struct IPermissionsManager.RoleAddress[] _roleAddresses, struct IPauseManager.PauseTypeRole[] _pauseTypeRoles, struct IPauseManager.PauseTypeRole[] _unpauseTypeRoles) external

Initializes underlying message service dependencies.

Parameters

NameTypeDescription
_rateLimitPerioduint256The period to rate limit against.
_rateLimitAmountuint256The limit allowed for withdrawing the period.
_defaultAdminaddressThe account to be given DEFAULT_ADMIN_ROLE on initialization.
_roleAddressesstruct IPermissionsManager.RoleAddress[]The list of addresses to grant roles to.
_pauseTypeRolesstruct IPauseManager.PauseTypeRole[]The list of pause type roles.
_unpauseTypeRolesstruct IPauseManager.PauseTypeRole[]The list of unpause type roles.

reinitializePauseTypesAndPermissions

function reinitializePauseTypesAndPermissions(struct IPermissionsManager.RoleAddress[] _roleAddresses, struct IPauseManager.PauseTypeRole[] _pauseTypeRoles, struct IPauseManager.PauseTypeRole[] _unpauseTypeRoles) external

Sets permissions for a list of addresses and their roles as well as initialises the PauseManager pauseType:role mappings.

This function is a reinitializer and can only be called once per version. Should be called using an upgradeAndCall transaction to the ProxyAdmin.

Parameters

NameTypeDescription
_roleAddressesstruct IPermissionsManager.RoleAddress[]The list of addresses and roles to assign permissions to.
_pauseTypeRolesstruct IPauseManager.PauseTypeRole[]The list of pause types to associate with roles.
_unpauseTypeRolesstruct IPauseManager.PauseTypeRole[]The list of unpause types to associate with roles.
Contributions not accepted
These reference pages are automatically generated based on Linea's smart contracts. To ensure they accurately match the deployed smart contracts, we cannot accept any contributions that edit these pages.