Message Bridging: Admin Functions

An account with the DEFAULT_ADMIN_ROLE can call the following functions:

setLocalAdapter

function setLocalAdapter(address[] memory adapters, bool[] memory enabled) public;
Name
Type
Description

adapters

address[]

An array of adapter addresses to enable/disable

enabled

bool[]

An array of boolean values to enable or disable the corresponding adapters in adapters. Both arrays must have the same length

setLocalRegistry

function setLocalRegistry(address _localRegistry) public;
Name
Type
Description

localRegistry

address

The address of the new local registry to set

setMessageOriginators

function setMessageOriginators(address[] memory originators, bool[] memory enabled) public

Sets a list of message originator addresses that can send messages to other chains.

Name
Type
Description

originators

address[]

An array of message originator addresses to enable/disable

enabled

bool[]

An array of boolean values to enable or disable the corresponding originators. Both arrays must have the same length

setControllerForChain

Sets the controller addresses for the given chain IDs. To disable a controller in a chain, set the controller address to the zero address.

Name
Type
Description

chainId

uint256[]

An array of chain id to set controllers for

controller

address[]

An array of controller addresses to set for the corresponding chainIds. Both arrays must have the same length.

setVetoer

Sets the vetoer address that can cancel the execution of messages. Set to address(0) to disable vetoer.

Name
Type
Description

_vetoer

address

The address of the vetoer

setTimelockDelay

Sets the timelock delay in seconds for message execution. Set to 0 to disable timelock

Name
Type
Description

_timelockDelay

uint256

The timelock delay in seconds

pause

Pauses the contract. Applicable to the following functions: execute(), sendMessage() and resendMessage(),

unpause

Unpauses and already paused contract.

Last updated