Skip to content

Commit

Permalink
feat(interfaces): adds hashi interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
allemanfredi committed Apr 17, 2024
1 parent f24c91f commit 46f1d1f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
5 changes: 5 additions & 0 deletions contracts/interfaces/hashi/IAdapter.sol
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);
}
15 changes: 15 additions & 0 deletions contracts/interfaces/hashi/IReporter.sol
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);
}
15 changes: 15 additions & 0 deletions contracts/interfaces/hashi/IYaho.sol
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);
}

0 comments on commit 46f1d1f

Please sign in to comment.