forked from pooltogether/ERC5164
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathISingleMessageDispatcher.sol
More file actions
26 lines (23 loc) · 891 Bytes
/
ISingleMessageDispatcher.sol
File metadata and controls
26 lines (23 loc) · 891 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.16;
import "./IMessageDispatcher.sol";
/**
* @title ERC-5164: Cross-Chain Execution Standard, optional SingleMessageDispatcher extension
* @dev See https://eips.ethereum.org/EIPS/eip-5164
*/
interface ISingleMessageDispatcher is IMessageDispatcher {
/**
* @notice Dispatch a message to the receiving chain.
* @dev Must compute and return an ID uniquely identifying the message.
* @dev Must emit the `MessageDispatched` event when successfully dispatched.
* @param toChainId ID of the receiving chain
* @param to Address on the receiving chain that will receive `data`
* @param data Data dispatched to the receiving chain
* @return bytes32 ID uniquely identifying the message
*/
function dispatchMessage(
uint256 toChainId,
address to,
bytes calldata data
) external returns (bytes32);
}