Skip to content

[server]: refactor indexer to poll with exponential backoff & index revenues claimed#27

Merged
0xull merged 6 commits into
mainfrom
nightly
Jun 13, 2026
Merged

[server]: refactor indexer to poll with exponential backoff & index revenues claimed#27
0xull merged 6 commits into
mainfrom
nightly

Conversation

@0xull

@0xull 0xull commented Jun 13, 2026

Copy link
Copy Markdown
Contributor
  • Replace WebSocket block subscription with HTTP polling (2s interval, 50-block chunks)
  • Fix API: shared RPC client, package-level ABI parsing, correct needsRebalancing, default nav to 0
  • Add retry with exponential backoff on transient RPC errors in pollOnce
  • Index RevenueClaimed events, add redemption and claim history to API responses

0xull added 6 commits June 12, 2026 04:27
…nly filtering

Replace address-filtered WebSocket log subscription with SubscribeNewHead plus
per-block eth_getLogs using topic-only filters. Add chunk-local address set to
handle Deposited preceding BasketCreated in the same factory transaction.
Remove migrate.go and all migration tests.

Signed-off-by: 0xull <mrikehchukwuka@gmail.com>
… instead

Signed-off-by: 0xull <mrikehchukwuka@gmail.com>
…rrect needsRebalancing, default nav to 0

Signed-off-by: 0xull <mrikehchukwuka@gmail.com>
… in pollOnce

Signed-off-by: 0xull <mrikehchukwuka@gmail.com>
…ory to API responses

Signed-off-by: 0xull <mrikehchukwuka@gmail.com>
Signed-off-by: 0xull <mrikehchukwuka@gmail.com>
@0xull 0xull merged commit 971e8ba into main Jun 13, 2026
5 checks passed
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.

1 participant