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

process slashes in gateway #7

Merged
merged 23 commits into from
Jan 24, 2025
Merged

process slashes in gateway #7

merged 23 commits into from
Jan 24, 2025

Conversation

girazoki
Copy link
Contributor

@girazoki girazoki commented Jan 21, 2025

Adds slash processing through the gateway. In particular we:

  • try to process all slashes with the maxDispatchGas set in the params
  • if we error decoding the params or accessing the middleware, a UnableToProcessSlashMessage event will be emitted
  • If we error within a slash, a UnableToProcessIndividualSlash event is thrown
  • Test cases for pretty much all of the above

overridden_contracts/src/Gateway.sol Outdated Show resolved Hide resolved
overridden_contracts/src/Gateway.sol Outdated Show resolved Hide resolved
Base automatically changed from jeremy-gateway-owner-and-middleware to main January 23, 2025 09:43
@girazoki girazoki marked this pull request as ready for review January 23, 2025 10:34
@0xvgg 0xvgg self-requested a review January 24, 2025 15:51
@girazoki girazoki merged commit 4e02380 into main Jan 24, 2025
2 checks passed
@girazoki girazoki deleted the girazoki-process-slashes branch January 24, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants