Skip to content

Commit

Permalink
Account Abstraction support (#17)
Browse files Browse the repository at this point in the history
* add payee to dispatch objects

* payee -> payer
  • Loading branch information
seunlanlege authored Mar 3, 2024
1 parent 7ffc17d commit a22060d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/IDispatcher.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/IIsmpHost.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a22060d

Please sign in to comment.