admin: add sentinel commands for validator multicast publisher management#3398
Draft
admin: add sentinel commands for validator multicast publisher management#3398
Conversation
482e558 to
0f17631
Compare
…ment Add sentinel subcommand to doublezero-admin with two commands: - find-validator-multicast-publishers: cross-reference onchain IBRL users with validator metadata to show publisher status - create-validator-multicast-publishers: bulk-create multicast publisher users for IBRL validators via 3-step onchain flow Shared library crate (doublezero-sentinel) provides readers, writers, and pure logic with unit tests. DZClient gets rpc_client() and payer_keypair() accessors for sentinel command integration.
9d23f31 to
56b68f7
Compare
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
doublezero-sentinelcrate (crates/sentinel/) with reusable logic for reading validator metadata, DZ ledger state, and multicast publisher managementsentinel find-validator-multicast-publishersadmin command to cross-reference IBRL validators with multicast publisher status, with filtering by stake, client type, publisher status, and summary viewsentinel create-validator-multicast-publishersadmin command to batch-create multicast publisher users for eligible validators (with dry-run support and confirmation prompt)rpc_client()andpayer_keypair()accessors onDZClientin the Rust SDKTesting Verification
sentinel find-validator-multicast-publisherstested with various filter combinations (--min-stake,--client,--is-publisher,--not-publisher,--summary,--json)sentinel create-validator-multicast-publisherstested with--dry-runto verify candidate selection and transaction constructioncrates/sentinel/cover candidate filtering and multicast find logic