Skip to content

Commit 82c0571

Browse files
committed
fix(api): added CL consolidations slot
1 parent 32843e9 commit 82c0571

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

backend/pkg/api/data_access/vdb_consolidations.go

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,12 @@ func (d *DataAccessService) GetValidatorDashboardConsensusLayerConsolidations(ct
416416

417417
for _, r := range res {
418418
row := t.VDBConsolidationsClTableRow{
419-
Source: r.Source,
420-
Target: r.Target,
421-
Status: r.Status,
422-
Id: r.Id,
419+
Source: r.Source,
420+
Target: r.Target,
421+
Status: r.Status,
422+
Id: r.Id,
423+
Slot: r.Slot,
424+
SlotIndex: r.SlotIndex,
423425
}
424426

425427
// some data integrity checks TODO add more

backend/pkg/api/types/validator_dashboard.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,8 @@ type VDBConsolidationsClTableRow struct {
353353
RejectReason *string `json:"reject_reason,omitempty" tstype:"'source_equals_target' | 'full_queue' | 'insufficient_consolidation_churn' | 'source_unknown_pubkey' | 'target_unknown_pubkey' | 'source_no_execution_withdrawal_credentials' | 'source_address_mismatch' | 'target_not_compounding' | 'source_inactive' | 'target_inactive' | 'source_exiting' | 'target_exiting' | 'source_too_young' | 'source_pending_withdrawals' | 'source_slashed'" faker:"oneof: source_equals_target, full_queue, insufficient_consolidation_churn, source_unknown_pubkey, target_unknown_pubkey, source_no_execution_withdrawal_credentials, source_address_mismatch, target_not_compounding, source_inactive, target_inactive, source_exiting, target_exiting, source_too_young, source_pending_withdrawals, source_slashed"`
354354
Amount *decimal.Decimal `json:"amount,omitempty" faker:"eth"`
355355
Id uint64 `json:"id"`
356+
Slot uint64 `json:"slot"`
357+
SlotIndex uint64 `json:"slot_index"`
356358
}
357359
type GetValidatorDashboardConsensusLayerConsolidationsResponse ApiPagingResponse[VDBConsolidationsClTableRow]
358360

frontend/types/api/validator_dashboard.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ export interface VDBConsolidationsClTableRow {
313313
reject_reason?: 'source_equals_target' | 'full_queue' | 'insufficient_consolidation_churn' | 'source_unknown_pubkey' | 'target_unknown_pubkey' | 'source_no_execution_withdrawal_credentials' | 'source_address_mismatch' | 'target_not_compounding' | 'source_inactive' | 'target_inactive' | 'source_exiting' | 'target_exiting' | 'source_too_young' | 'source_pending_withdrawals' | 'source_slashed';
314314
amount?: string /* decimal.Decimal */;
315315
id: number /* uint64 */;
316+
slot: number /* uint64 */;
317+
slot_index: number /* uint64 */;
316318
}
317319
export type GetValidatorDashboardConsensusLayerConsolidationsResponse = ApiPagingResponse<VDBConsolidationsClTableRow>;
318320
/**

0 commit comments

Comments
 (0)