From b16c30f966cc7cbc6369b6081740cf54264eb4b1 Mon Sep 17 00:00:00 2001
From: Lucca Dukic <109136188+LuccaBitfly@users.noreply.github.com>
Date: Thu, 9 Jan 2025 14:10:35 +0100
Subject: [PATCH] chore: convert typescript
See: BEDS-1065
---
frontend/types/api/validator_dashboard.ts | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/frontend/types/api/validator_dashboard.ts b/frontend/types/api/validator_dashboard.ts
index 9d557abef..5128ee519 100644
--- a/frontend/types/api/validator_dashboard.ts
+++ b/frontend/types/api/validator_dashboard.ts
@@ -10,7 +10,7 @@ export interface VDBOverviewGroup {
name: string;
count: number /* uint64 */;
}
-export interface VDBOverviewBalances {
+export interface ValidatorBalances {
total: string /* decimal.Decimal */;
effective: string /* decimal.Decimal */;
staked_eth: string /* decimal.Decimal */;
@@ -24,7 +24,7 @@ export interface VDBOverviewData {
rewards: PeriodicValues>;
apr: PeriodicValues>;
chart_history_seconds: ChartHistorySeconds;
- balances: VDBOverviewBalances;
+ balances: ValidatorBalances;
}
export type GetValidatorDashboardResponse = ApiDataResponse;
export interface VDBPostArchivingReturnData {
@@ -68,6 +68,9 @@ export interface VDBGroupSummaryMissedRewards {
sync: string /* decimal.Decimal */;
}
export interface VDBGroupSummaryData {
+ efficiency: number /* float64 */;
+ balances: ValidatorBalances;
+ rewards: ClElValue;
attestations_head: StatusCount;
attestations_source: StatusCount;
attestations_target: StatusCount;