Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account Abstraction support #17

Merged
merged 2 commits into from
Mar 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading