Skip to content

Commit

Permalink
chore: convert typescript
Browse files Browse the repository at this point in the history
See: BEDS-1065
  • Loading branch information
LuccaBitfly committed Jan 14, 2025
1 parent a6050a2 commit b16c30f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions frontend/types/api/validator_dashboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */;
Expand All @@ -24,7 +24,7 @@ export interface VDBOverviewData {
rewards: PeriodicValues<ClElValue<string /* decimal.Decimal */>>;
apr: PeriodicValues<ClElValue<number /* float64 */>>;
chart_history_seconds: ChartHistorySeconds;
balances: VDBOverviewBalances;
balances: ValidatorBalances;
}
export type GetValidatorDashboardResponse = ApiDataResponse<VDBOverviewData>;
export interface VDBPostArchivingReturnData {
Expand Down Expand Up @@ -68,6 +68,9 @@ export interface VDBGroupSummaryMissedRewards {
sync: string /* decimal.Decimal */;
}
export interface VDBGroupSummaryData {
efficiency: number /* float64 */;
balances: ValidatorBalances;
rewards: ClElValue<string /* decimal.Decimal */>;
attestations_head: StatusCount;
attestations_source: StatusCount;
attestations_target: StatusCount;
Expand Down

0 comments on commit b16c30f

Please sign in to comment.