From 93ca089bde5166034cdf11aefd63caf98623d40f Mon Sep 17 00:00:00 2001 From: David Salami Date: Wed, 17 Jan 2024 13:03:28 +0100 Subject: [PATCH] modify ismp host --- lib/solidity-merkle-trees | 2 +- src/IIsmpHost.sol | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/lib/solidity-merkle-trees b/lib/solidity-merkle-trees index f637bb0..8b0c7e0 160000 --- a/lib/solidity-merkle-trees +++ b/lib/solidity-merkle-trees @@ -1 +1 @@ -Subproject commit f637bb083eb6bdef3daee016e300a56800c2725e +Subproject commit 8b0c7e03f0d656463a1e4a1e98050d0af89229bb diff --git a/src/IIsmpHost.sol b/src/IIsmpHost.sol index 659efde..963a7ff 100644 --- a/src/IIsmpHost.sol +++ b/src/IIsmpHost.sol @@ -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 @@ -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