Skip to content

Commit

Permalink
modify ismp host
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizdave97 committed Jan 17, 2024
1 parent 3d2cbd8 commit 93ca089
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solidity-merkle-trees
19 changes: 19 additions & 0 deletions src/IIsmpHost.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ struct FeeMetadata {
address sender;
}

struct ResponseReceipt {
// commitment of the response object
bytes32 responseCommitment;
// address of the relayer responsible for this response delivery
address relayer;
}

interface IIsmpHost is IIsmp {
/**
* @return the host admin
Expand Down Expand Up @@ -71,6 +78,18 @@ interface IIsmpHost is IIsmp {
*/
function consensusState() external returns (bytes memory);

/**
* @param commitment - commitment to the request
* @return relayer addrress
*/
function requestReceiptData(bytes32 commitment) external returns (address);

/**
* @param commitment - commitment to the request of the response
* @return response receipt data
*/
function responseReceiptData(bytes32 commitment) external returns (ResponseReceipt memory);

/**
* @param commitment - commitment to the request
* @return existence status of an incoming request commitment
Expand Down

0 comments on commit 93ca089

Please sign in to comment.