-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Callback for app layer to aware the message dispatch result (#99)
* on message delivery * fix * rename * increase timeout * add some doc
- Loading branch information
Showing
5 changed files
with
51 additions
and
4 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
17 changes: 17 additions & 0 deletions
17
contracts/bridge/contracts/interfaces/IOnMessageDelivered.sol
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,17 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity >=0.6.0; | ||
|
||
/** | ||
* @title A interface for app layer to get message dispatch result | ||
* @author echo | ||
* @notice The app layer could implement the interface `IOnMessageDelivered` to receive message dispatch result (optionally) | ||
*/ | ||
interface IOnMessageDelivered { | ||
/** | ||
* @notice Message delivered callback | ||
* @param nonce Nonce of the callback message | ||
* @param dispatch_result Dispatch result of cross chain message | ||
*/ | ||
function on_messages_delivered(uint64 nonce, bool dispatch_result) 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