This repository was archived by the owner on Apr 26, 2026. It is now read-only.
Merge changes from testnet#24
Merged
Merged
Conversation
Add selection_availability, selection_latency, selection_sync, selection_stake, and selection_composite to the Full variants of provider and spec optimizer metrics endpoints. Values are stored as sums in the DB and averaged (sum / metrics_count) on read. Affected endpoints: - /providerConsumerOptimizerMetricsFull/:addr - /specConsumerOptimizerMetricsFull/:specId Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add provider and provider_moniker to ConsumerOptimizerMetricsFullByProviderItem to satisfy MetricsItem interface, fixing the TS build error. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… metrics endpoints Add selection_availability/latency/sync/stake/composite WRS fields and tier_average/tier_chances to basic (non-Full) provider and spec endpoints to match MetricsItem interface requirements and expose WRS data consistently. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The aggregateMetrics() functions were stripping WRS fields from the response. Add selection_availability/latency/sync/stake/composite to accumulator, BaseAggregatedMetrics interface, and averaged output in both provider and spec handler utils. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Makes selection_availability/latency/sync/stake/composite selectable as metric types on the specConsumerOptimizerMetricsFull endpoint. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add selection_latency, selection_availability, selection_sync, selection_stake, and selection_composite to AVAILABLE_METRICS so the standard (non-key) spec endpoint accepts them as valid metric choices. Also update AVAILABLE_METRICS_FULL labels to match existing terminology (e.g. "Latency Score" instead of "Selection Latency"). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
No description provided.