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;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;localRegistry
address
The address of the new local registry to set
setMessageOriginators
function setMessageOriginators(address[] memory originators, bool[] memory enabled) publicSets a list of message originator addresses that can send messages to other chains.
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
function setMessageOriginators(address[] memory originators, bool[] memory enabled) publicSets the controller addresses for the given chain IDs. To disable a controller in a chain, set the controller address to the zero address.
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
function setVetoer(address _vetoer) public;Sets the vetoer address that can cancel the execution of messages. Set to address(0) to disable vetoer.
_vetoer
address
The address of the vetoer
setTimelockDelay
function setTimelockDelay(uint256 _timelockDelay) public;Sets the timelock delay in seconds for message execution. Set to 0 to disable timelock
_timelockDelay
uint256
The timelock delay in seconds
pause
function pause() public;Pauses the contract. Applicable to the following functions: execute(), sendMessage() and resendMessage(),
unpause
function unpause() public;Unpauses and already paused contract.
Last updated