You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.0 KiB
Solidity
35 lines
1.0 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
// OpenZeppelin Contracts (last updated v4.6.0) (vendor/optimism/ICrossDomainMessenger.sol)
|
|
pragma solidity >0.5.0 <0.9.0;
|
|
|
|
/**
|
|
* @title ICrossDomainMessenger
|
|
*/
|
|
interface ICrossDomainMessenger {
|
|
/**********
|
|
* Events *
|
|
**********/
|
|
|
|
event SentMessage(address indexed target, address sender, bytes message, uint256 messageNonce, uint256 gasLimit);
|
|
event RelayedMessage(bytes32 indexed msgHash);
|
|
event FailedRelayedMessage(bytes32 indexed msgHash);
|
|
|
|
/*************
|
|
* Variables *
|
|
*************/
|
|
|
|
function xDomainMessageSender() external view returns (address);
|
|
|
|
/********************
|
|
* Public Functions *
|
|
********************/
|
|
|
|
/**
|
|
* Sends a cross domain message to the target messenger.
|
|
* @param _target Target contract address.
|
|
* @param _message Message to send to the target.
|
|
* @param _gasLimit Gas limit for the provided message.
|
|
*/
|
|
function sendMessage(address _target, bytes calldata _message, uint32 _gasLimit) external;
|
|
}
|