diff --git a/backend/pkg/api/types/notifications.go b/backend/pkg/api/types/notifications.go index 971af2ec1..ccdfa4824 100644 --- a/backend/pkg/api/types/notifications.go +++ b/backend/pkg/api/types/notifications.go @@ -31,12 +31,12 @@ type InternalGetUserNotificationsResponse ApiDataResponse[NotificationOverviewDa type NotificationDashboardsTableRow struct { IsAccountDashboard bool `json:"is_account_dashboard"` // if false it's a validator dashboard ChainId uint64 `json:"chain_id"` - Timestamp int64 `json:"timestamp"` + Epoch uint64 `json:"epoch"` DashboardId uint64 `json:"dashboard_id"` + GroupId uint64 `json:"group_id"` GroupName string `json:"group_name"` - NotificationId uint64 `json:"notification_id"` // may be string? db schema is not defined afaik EntityCount uint64 `json:"entity_count"` - EventTypes []string `json:"event_types" tstype:"('validator_online' | 'validator_offline' | 'group_online' | 'group_offline' | 'attestation_missed' | 'proposal_success' | 'proposal_missed' | 'proposal_upcoming' | 'max_collateral' | 'min_collateral' | 'sync' | 'withdrawal' | 'got_slashed' | 'has_slashed' | 'incoming_tx' | 'outgoing_tx' | 'transfer_erc20' | 'transfer_erc721' | 'transfer_erc1155')[]" faker:"oneof: validator_offline, group_offline, attestation_missed, proposal_success, proposal_missed, proposal_upcoming, max_collateral, min_collateral, sync, withdrawal, slashed_own, incoming_tx, outgoing_tx, transfer_erc20, transfer_erc721, transfer_erc1155"` + EventTypes []string `json:"event_types" tstype:"('validator_online' | 'validator_offline' | 'group_online' | 'group_offline' | 'attestation_missed' | 'proposal_success' | 'proposal_missed' | 'proposal_upcoming' | 'max_collateral' | 'min_collateral' | 'sync' | 'withdrawal' | 'got_slashed' | 'has_slashed' | 'incoming_tx' | 'outgoing_tx' | 'transfer_erc20' | 'transfer_erc721' | 'transfer_erc1155')[]" faker:"slice_len=2, oneof: validator_offline, group_offline, attestation_missed, proposal_success, proposal_missed, proposal_upcoming, max_collateral, min_collateral, sync, withdrawal, slashed_own, incoming_tx, outgoing_tx, transfer_erc20, transfer_erc721, transfer_erc1155"` } type InternalGetUserNotificationDashboardsResponse ApiPagingResponse[NotificationDashboardsTableRow] diff --git a/frontend/components/dashboard/table/DashboardTableRewards.vue b/frontend/components/dashboard/table/DashboardTableRewards.vue index 92758a883..c60d63642 100644 --- a/frontend/components/dashboard/table/DashboardTableRewards.vue +++ b/frontend/components/dashboard/table/DashboardTableRewards.vue @@ -137,19 +137,6 @@ const findNextEpochDuties = (epoch: number) => { return list.join(', ') } - -const wrappedRewards = computed(() => { - if (!rewards.value) { - return - } - return { - data: rewards.value.data.map(d => ({ - ...d, - identifier: `${d.epoch}-${d.group_id}`, - })), - paging: rewards.value.paging, - } -})