Open
Conversation
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.
This pull request introduces a new
@dappnode/dashboard-serverpackage and integrates a new daemon into the system to periodically sync validator indices with an external dashboard server. The changes include the implementation of the dashboard server client, logic for fetching and posting validator data, utility functions for change detection, and the wiring up of the daemon within the main daemons process.Major features and integration:
@dappnode/dashboard-serverpackage, providing all core logic, types, and utilities for dashboard server integration. [1] [2] [3] [4] [5] [6]@dappnode/daemonsto periodically check, detect changes, and sync validator indices to the dashboard server. [1] [2]Detailed breakdown of the most important changes:
1. New Dashboard Server Package Implementation
@dappnode/dashboard-serverpackage with all required source files, types, utility functions, and test configuration for fetching validator indices from the "brain" API, posting to the dashboard server, and handling change detection. [1] [2] [3] [4] [5] [6] [7]2. Daemon Logic for Validator Sync
checkAndSyncValidators.tsto implement the logic for periodically fetching validator indices, detecting changes, and posting updates to the dashboard server, including error handling and state tracking.3. Daemon Integration and Scheduling
index.tsto periodically trigger sync logic, with configurable polling and posting intervals, and feature flagging via environment variables.4. Dependency and Configuration Updates
packages/daemons/package.jsonto add a dependency on the new dashboard server package.These changes collectively enable automated, robust, and configurable syncing of validator data to an external dashboard server, with clear separation of concerns and error handling throughout.