diff --git a/src/IDispatcher.sol b/src/IDispatcher.sol index 3c2b47f..6110e33 100644 --- a/src/IDispatcher.sol +++ b/src/IDispatcher.sol @@ -18,6 +18,8 @@ struct DispatchPost { uint64 gaslimit; // the amount put up to be paid to the relayer, this is in $DAI and charged to tx.origin uint256 fee; + // who pays for this request? + address payer; } // An object for dispatching get requests to the IsmpDispatcher @@ -34,6 +36,8 @@ struct DispatchGet { uint64 gaslimit; // the amount put up to be paid to the relayer, this is in $DAI and charged to tx.origin uint256 fee; + // who pays for this request? + address payer; } struct DispatchPostResponse { @@ -47,6 +51,8 @@ struct DispatchPostResponse { uint64 gaslimit; // the amount put up to be paid to the relayer, this is in $DAI and charged to tx.origin uint256 fee; + // who pays for this request? + address payer; } // The core ISMP API, IIsmpModules use this interface to send outgoing get/post requests & responses diff --git a/src/IIsmpHost.sol b/src/IIsmpHost.sol index a7917f1..98a50ed 100644 --- a/src/IIsmpHost.sol +++ b/src/IIsmpHost.sol @@ -167,7 +167,7 @@ interface IIsmpHost is IDispatcher { * @dev Dispatch an incoming get response to source module * @param response - get response */ - function dispatchIncoming(GetResponse memory response) external; + function dispatchIncoming(GetResponse memory response, FeeMetadata memory meta) external; /** * @dev Dispatch an incoming get timeout to source module