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

Get events from RPC event's data instead of events #1172

Merged
merged 15 commits into from
Aug 23, 2021
Merged

Get events from RPC event's data instead of events #1172

merged 15 commits into from
Aug 23, 2021

Conversation

ancazamfir
Copy link
Collaborator

@ancazamfir ancazamfir commented Jul 12, 2021

Closes: #1191

TODOs

  • Please remember to delete any constants that we might have added for matching message.action, e.g., here.

Context for this PR: Simplifies greatly the relayer's RPC events parsing architecture. Additionally, this is a low-hanging fruit to improve the ergonomics of testing with Hermes and Interchain Accounts (ICS27). Main customer benefiting from this: @seantking.

Description


For contributor use:

  • Updated the Unreleased section of CHANGELOG.md with the issue.
  • If applicable: Unit tests written, added test to CI.
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Updated relevant documentation (docs/) and code comments.
  • Re-reviewed Files changed in the Github PR explorer.

@romac
Copy link
Member

romac commented Jul 13, 2021

Do you foresee any issues integrating these changes against informalsystems/tendermint-rs#918 once a release of tendermint-rs including that PR will be out?

relayer/src/event/rpc.rs Outdated Show resolved Hide resolved
@adizere adizere mentioned this pull request Aug 17, 2021
9 tasks
@romac romac mentioned this pull request Aug 18, 2021
10 tasks
@ancazamfir ancazamfir marked this pull request as ready for review August 23, 2021 18:17
@romac romac merged commit 9eeec52 into master Aug 23, 2021
@romac romac deleted the anca/ica branch August 23, 2021 19:44
@romac romac mentioned this pull request Aug 24, 2021
5 tasks
@adizere adizere linked an issue Sep 6, 2021 that may be closed by this pull request
5 tasks
@seantking
Copy link

Nice!! @ancazamfir

hu55a1n1 added a commit that referenced this pull request Jan 24, 2022
romac pushed a commit that referenced this pull request Feb 3, 2022
* Implement conversions for channel events

* Implement conversions for packets

* Resurrect code (from PR #1172) to extract begin/end-block events from a tendermint NewBlock event

* Add channel events in the right order

* Remove redundant clones

* Minor refactoring

* Fix failing CI tests

* Extract block events without depending on message.action

* Cleanup

* Add .changelog entry

* Document event extraction
hu55a1n1 pushed a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
)

* temp fix

* Debugability, add check for chan try for counterparty ch

* Get events from RPC event's data insead of events

* Fix error message

* Debug for proof bytes and getter of other_proof

* fmt fix

* Remove event conversion, redundant with current tendermint-rs refpoint

* Review comments

* Add .changelog entry for informalsystems#1191

* Fix clippy warning

Co-authored-by: Romain Ruetschi <romain@informal.systems>
hu55a1n1 added a commit to hu55a1n1/hermes that referenced this pull request Sep 13, 2022
* Implement conversions for channel events

* Implement conversions for packets

* Resurrect code (from PR informalsystems#1172) to extract begin/end-block events from a tendermint NewBlock event

* Add channel events in the right order

* Remove redundant clones

* Minor refactoring

* Fix failing CI tests

* Extract block events without depending on message.action

* Cleanup

* Add .changelog entry

* Document event extraction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants