Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Merge changes from testnet#24

Merged
nimrod-teich merged 6 commits into
mainnetfrom
testnet
Mar 10, 2026
Merged

Merge changes from testnet#24
nimrod-teich merged 6 commits into
mainnetfrom
testnet

Conversation

@nimrod-teich
Copy link
Copy Markdown
Collaborator

No description provided.

nimrod-teich and others added 6 commits March 9, 2026 16:10
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>
@nimrod-teich nimrod-teich merged commit c647aab into mainnet Mar 10, 2026
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant