All pages
Powered by GitBook
1 of 1

Loading...

BaseOmnichainControllerSrc

BaseOmnichainControllerSrc

Solidity API

accessControlManager

ACM (Access Control Manager) contract address


chainIdToMaxDailyLimit

Maximum daily limit for commands from the local chain


chainIdToLast24HourCommandsSent

Total commands transferred within the last 24-hour window from the local chain


chainIdToLast24HourWindowStart

Timestamp when the last 24-hour window started from the local chain


chainIdToLastProposalSentTimestamp

Timestamp when the last proposal sent from the local chain to dest chain


setMaxDailyLimit

Sets the limit of daily (24 Hour) command amount

Parameters

Name
Type
Description

📅 Events

  • Emits SetMaxDailyLimit with old and new limit and its corresponding chain id

⛔️ Access Requirements

  • Controlled by AccessControlManager


pause

Triggers the paused state of the controller

⛔️ Access Requirements

  • Controlled by AccessControlManager


unpause

Triggers the resume state of the controller

⛔️ Access Requirements

  • Controlled by AccessControlManager


setAccessControlManager

Sets the address of Access Control Manager (ACM)

Parameters

Name
Type
Description

📅 Events

  • Emits NewAccessControlManager with old and new access control manager addresses

⛔️ Access Requirements

  • Only owner


renounceOwnership

Empty implementation of renounce ownership to avoid any mishap


chainId_

uint16

Destination chain id

limit_

uint256

Number of commands

accessControlManager_

address

The new address of the Access Control Manager

address accessControlManager
mapping(uint16 => uint256) chainIdToMaxDailyLimit
mapping(uint16 => uint256) chainIdToLast24HourCommandsSent
mapping(uint16 => uint256) chainIdToLast24HourWindowStart
mapping(uint16 => uint256) chainIdToLastProposalSentTimestamp
function setMaxDailyLimit(uint16 chainId_, uint256 limit_) external
function pause() external
function unpause() external
function setAccessControlManager(address accessControlManager_) external
function renounceOwnership() public