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

feat: gas service support on the relayer #8

Merged
merged 54 commits into from
Jan 14, 2025

Conversation

roberts-pumpurs
Copy link
Member

@roberts-pumpurs roberts-pumpurs commented Dec 20, 2024

Describe the changes

  • relayer monitors events from the gas service
  • relayer can combine events from the gateway & gas service if they were created in the same tx
    • it will make associations between the "gas paid" & "call contract" events
  • relayer can refund using the gas service

Related Issue(s)
Closes #24

Checklist

  • Tests have been added/updated for the changes.
  • Documentation has been updated for the changes (if applicable).
  • The code follows Rust's style guidelines.

Additional Context
Add any other context about the pull request here.

@roberts-pumpurs
Copy link
Member Author

From the issue description, the things that are not implemented:

  • realtime monitoring of the gas service via websockets
  • sending "refund gas" txs to the GasService
  • checking if the relayer has the authority over the gas service to even be able to send txs

@frenzox frenzox mentioned this pull request Dec 24, 2024
3 tasks
frenzox and others added 18 commits January 6, 2025 16:06
* feat: subscribe to gas service logs

Signed-off-by: Guilherme Felipe da Silva <gfsilva.eng@gmail.com>

* feat: handle refund task

Signed-off-by: Guilherme Felipe da Silva <gfsilva.eng@gmail.com>

* chore: make clippy happy

Signed-off-by: Guilherme Felipe da Silva <gfsilva.eng@gmail.com>

* feat: check relayer as authority of gas service

Signed-off-by: Guilherme Felipe da Silva <gfsilva.eng@gmail.com>

---------

Signed-off-by: Guilherme Felipe da Silva <gfsilva.eng@gmail.com>
frenzox
frenzox previously approved these changes Jan 13, 2025
Copy link
Contributor

@frenzox frenzox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm. there seems to be failing tests though

@roberts-pumpurs roberts-pumpurs force-pushed the rob/relayer-gas-service-support branch from 173985a to d433797 Compare January 13, 2025 17:59
@roberts-pumpurs roberts-pumpurs force-pushed the rob/relayer-gas-service-support branch from d433797 to bfbd3f2 Compare January 13, 2025 18:08
@roberts-pumpurs roberts-pumpurs merged commit 28facf3 into main Jan 14, 2025
6 checks passed
@roberts-pumpurs roberts-pumpurs deleted the rob/relayer-gas-service-support branch January 14, 2025 10:14
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.

2 participants