refactor!: retire legacy operator stake indexing - #25
Merged
Merged
Conversation
Index operator registration independently of token stakes and retain application weights, group history, rewards, and raw fault telemetry. BREAKING CHANGE: remove legacy Operator stake roles, balances, registration counters, and StatsRecord stake totals; rename authorization amounts to reported weights. Preserve the previous published deployment for historical stake queries and coordinate consumer cutover after a full sync.
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
Operator registration currently depends on a prior positive TokenStaking record, even though node participation has moved to DAO-managed allowlist weights. The schema also exposes obsolete stake balances and totals. This cleanup indexes operators without economic staking while preserving wallet/group history, rewards, and existing fault telemetry.
TokensSeizedtelemetry handler. Preserve raw amount, discrepancy, and emitter without changing balances or duplicating application fault counters.Breaking schema: field replacements, weight semantics (including pending decrease requests), and the release checklist are in operator-staking-retirement.md. The new version needs a full sync and a coordinated proxy cutover. Keep the previous published deployment queryable for historical stake queries and rollback. No deployment or production cutover is performed by this PR.
This PR is independent of #24; user rebate staking is unaffected. The two branches merge cleanly in a local validation checkout; codegen, both network builds, and all 17 mapping tests pass together. Explorer companion PR #454 removes the unused group-detail query requesting retired fields; the active wallet fallback's group/public-key query is preserved. The Explorer migration remains in dApp #453.
Validation: codegen, mainnet and Sepolia builds, all 12 new mapping tests, and all 58 existing toolchain/cutover tests pass locally.