Skip to content

indexer: align with v0.15.0 ValidatorPodManager events#131

Merged
drewstone merged 1 commit into
mainfrom
chore/v0.15-indexer-alignment
May 11, 2026
Merged

indexer: align with v0.15.0 ValidatorPodManager events#131
drewstone merged 1 commit into
mainfrom
chore/v0.15-indexer-alignment

Conversation

@drewstone
Copy link
Copy Markdown
Contributor

Summary

Mirror the ValidatorPodManager event-signature changes that landed in #129 into the indexer config + handlers so the ingest pipeline doesn't silently drop or misread the new fields.

Three event signatures changed, one is new:

  • SharesUpdated gained totalAssets + totalSharesPool; newShares moved int256 → uint256
  • WithdrawalQueued / WithdrawalCompleted gained a trailing assets
  • BeaconRebase (new) — beacon rewards/slashes that move totalAssets without changing share balances

Schema

  • ValidatorPodShareEvent gains nullable totalAssets / totalSharesPool
  • ValidatorPodWithdrawal gains nullable queuedAssets / completedAssets
  • New ValidatorPodBeaconRebase entity

Test plan

  • npm run codegen clean
  • npm run build (tsc --build) clean
  • npm test 5/5 passing
  • Sanity-check entity writes against a fixture replay (deferred to deployment)

Coordinates with tnt-core-bindings v0.15.0 published to crates.io and tagged bindings-v0.15.0.

Share-pool refactor in ValidatorPodManager changed three event signatures
and added one. Mirror those in the indexer config + handlers so the
ingest pipeline doesn't silently drop or misread the new fields.

- SharesUpdated: gained `totalAssets` and `totalSharesPool`. `newShares`
  also moved from int256 to uint256.
- WithdrawalQueued / WithdrawalCompleted: gained a trailing `assets`
  (snapshot at queue time; live-min-snapshot payout at completion).
- BeaconRebase (new event): tracks beacon rewards/slashes that move
  totalAssets without changing share balances. Stored in a separate
  entity so analytics can distinguish principal mints from pool-price
  moves.

Schema entity `ValidatorPodShareEvent` gains nullable `totalAssets` /
`totalSharesPool`; `ValidatorPodWithdrawal` gains nullable
`queuedAssets` / `completedAssets`. New `ValidatorPodBeaconRebase`
entity.

Codegen succeeds, tsc --build clean, unit suite 5/5.
@drewstone drewstone merged commit 241b09d into main May 11, 2026
2 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