babylonlabs-io / babylon-staking-indexer

Other
1 stars 2 forks source link

feat: emit events for api #31

Closed gusin13 closed 1 month ago

gusin13 commented 1 month ago

This pr sets up event emission from indexer in the queues that will be consumed by api

Notes

  1. i copied the staking queue client from https://github.com/babylonlabs-io/staking-queue-client/tree/main/client in this repo temporarily. this was needed b/c i had to add new schema for verified/pending etc.
  2. i only tested the events being pushed to queue and the consumer logic (api side) is not tested, so separate work will be needed on that side.
  3. i tried to use existing schema for active/unbonding but the data is not sufficient, for now i added placeholder but when we actually test this will need some fixes
Screenshot 2024-10-24 at 3 48 10 PM