indexer: align with v0.15.0 ValidatorPodManager events#131
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
SharesUpdatedgainedtotalAssets+totalSharesPool;newSharesmoved int256 → uint256WithdrawalQueued/WithdrawalCompletedgained a trailingassetsBeaconRebase(new) — beacon rewards/slashes that move totalAssets without changing share balancesSchema
ValidatorPodShareEventgains nullabletotalAssets/totalSharesPoolValidatorPodWithdrawalgains nullablequeuedAssets/completedAssetsValidatorPodBeaconRebaseentityTest plan
npm run codegencleannpm run build(tsc --build) cleannpm test5/5 passingCoordinates with
tnt-core-bindings v0.15.0published to crates.io and taggedbindings-v0.15.0.