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: sync delegations #21

Merged
merged 12 commits into from
Oct 21, 2024
Merged

feat: sync delegations #21

merged 12 commits into from
Oct 21, 2024

Conversation

gusin13
Copy link
Collaborator

@gusin13 gusin13 commented Oct 18, 2024

This PR

  1. Syncs delegation events when poller is running. Basically intercepts delegation data from tx events, then converts into concrete proto and inserts in the db
  2. Fixes some minor things in local setup (connection string, args etc). Smh on my local 27017 for mongo doesn't work so I changed to 27019

Note:
Some helper functions (validation related) are placeholders and need improvement, will be done in future prs.
I had to add cosmos sdk as dependency b/c we need this function which converts event -> concrete proto types

Screenshot 2024-10-20 at 1 35 21 PM

@gusin13 gusin13 marked this pull request as ready for review October 20, 2024 17:36
@gusin13 gusin13 requested review from totraev and gbarkhatov October 20, 2024 17:42
docker-compose.yml Outdated Show resolved Hide resolved
Copy link
Collaborator

@jrwbabylonlab jrwbabylonlab left a comment

Choose a reason for hiding this comment

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

Amazing work @gusin13

@gusin13 gusin13 merged commit d6ecee3 into main Oct 21, 2024
11 checks passed
@gusin13 gusin13 deleted the gusin13/delegations-setup branch October 21, 2024 15:03
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