-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(interfaces): add ISingleMessageExecutor
- Loading branch information
1 parent
0eac8e4
commit d744c25
Showing
7 changed files
with
65 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.16; | ||
|
||
import { IMessageExecutor } from "../IMessageExecutor.sol"; | ||
|
||
/** | ||
* @title SingleMessageExecutor interface | ||
* @dev IMessageExecutor interface extended to execute a message. | ||
*/ | ||
interface ISingleMessageExecutor is IMessageExecutor { | ||
/** | ||
* @notice Execute message from the origin chain. | ||
* @dev Should authenticate that the call has been performed by the bridge transport layer. | ||
* @dev Must revert if the message fails. | ||
* @dev Must emit the `MessageIdExecuted` event once the message has been executed. | ||
* @param to Address that will receive `data` | ||
* @param data Data forwarded to address `to` | ||
* @param messageId ID uniquely identifying the message | ||
* @param fromChainId ID of the chain that dispatched the message | ||
* @param from Address of the sender on the origin chain | ||
*/ | ||
function executeMessage( | ||
address to, | ||
bytes calldata data, | ||
bytes32 messageId, | ||
uint256 fromChainId, | ||
address from | ||
) external; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters