forked from gnosischain/tokenbridge-contracts
-
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.
feat(interfaces): adds hashi interfaces
- Loading branch information
1 parent
f24c91f
commit 46f1d1f
Showing
3 changed files
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pragma solidity 0.4.24; | ||
|
||
interface IAdapter { | ||
function getHash(uint256 domain, uint256 id) external view returns (bytes32 hash); | ||
} |
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,15 @@ | ||
pragma solidity 0.4.24; | ||
|
||
import "./IAdapter.sol"; | ||
|
||
interface IReporter { | ||
function dispatchBlocks(uint256 targetChainId, IAdapter adapter, uint256[] blockNumbers) | ||
external | ||
payable | ||
returns (bytes32); | ||
|
||
function dispatchMessages(uint256 targetChainId, IAdapter adapter, uint256[] messageIds, bytes32[] messageHashes) | ||
external | ||
payable | ||
returns (bytes32); | ||
} |
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,15 @@ | ||
pragma solidity 0.4.24; | ||
|
||
import "./IAdapter.sol"; | ||
import "./IReporter.sol"; | ||
|
||
interface IYaho { | ||
function dispatchMessage( | ||
uint256 targetChainId, | ||
uint256 threshold, | ||
address receiver, | ||
bytes data, | ||
IReporter[] reporters, | ||
IAdapter[] adapters | ||
) external returns (uint256); | ||
} |