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: send cannot execute event to amplifier #6

Merged
merged 5 commits into from
Dec 20, 2024

Conversation

frenzox
Copy link
Contributor

@frenzox frenzox commented Dec 17, 2024

Describe the changes
Sending feedback to the amplifier in case of failure to execute a message.

Related Issue(s)

Closes https://github.com/eigerco/solana-axelar-internal/issues/504

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.

@frenzox frenzox force-pushed the feat/send-cannot-execute-event-to-amplifier branch from 7ddef6d to d5c050b Compare December 17, 2024 19:48
The signature is useful in case we need to retrieve logs for the
transaction.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
Signed-off-by: Guilherme Felipe da Silva <[email protected]>
@frenzox frenzox force-pushed the feat/send-cannot-execute-event-to-amplifier branch from d5c050b to 5db5cd4 Compare December 18, 2024 13:12
@frenzox frenzox marked this pull request as ready for review December 18, 2024 13:16
@frenzox frenzox self-assigned this Dec 18, 2024
Copy link
Member

@roberts-pumpurs roberts-pumpurs left a comment

Choose a reason for hiding this comment

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

overall lgtm but you will need to alter the fetch_logs fn before merging. Because at this point in time the solana_listener component expects to only work with txs that succeeded.

crates/solana-gateway-task-processor/src/component.rs Outdated Show resolved Hide resolved
crates/solana-gateway-task-processor/src/component.rs Outdated Show resolved Hide resolved
@frenzox frenzox force-pushed the feat/send-cannot-execute-event-to-amplifier branch 2 times, most recently from ea307e0 to e045c81 Compare December 20, 2024 10:57
Using fetch_logs won't work here because it doesn't return the data for
failed transactions. Besides that, we're lot really using the logs
whereas fetch_logs fails if there is not logs.

Signed-off-by: Guilherme Felipe da Silva <[email protected]>
@frenzox frenzox force-pushed the feat/send-cannot-execute-event-to-amplifier branch from e045c81 to 091e174 Compare December 20, 2024 10:58
Co-authored-by: Roberts Pumpurs <[email protected]>
@frenzox frenzox merged commit cccb9fc into main Dec 20, 2024
6 checks passed
@frenzox frenzox deleted the feat/send-cannot-execute-event-to-amplifier branch December 20, 2024 15: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