Skip to content

Commit 3ba78ce

Browse files
remoteramienzo-bitfly
authored andcommitted
feat(api): returning el (i)tx index
1 parent 3495743 commit 3ba78ce

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

backend/pkg/api/data_access/vdb_consolidations.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,8 @@ func (d *DataAccessService) GetValidatorDashboardExecutionLayerConsolidations(ct
188188
Source: res.SourceIndex,
189189
Target: res.TargetIndex,
190190
BlockQueued: res.BlockQueued,
191+
TxIndexQueued: res.TxIndex,
192+
ITxIndexQueued: res.ITxIndex,
191193
TimestampQueued: res.BlockQueuedTime.Unix(),
192194
// Status: res.Status, // BEDS-1399
193195
TxHash: t.Hash(hexutil.Encode(res.TxHash)),

backend/pkg/api/data_access/vdb_withdrawals.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,8 @@ func (d *DataAccessService) GetValidatorDashboardElWithdrawals(ctx context.Conte
232232
Index: res.Index,
233233
BlockQueued: res.BlockQueued,
234234
TimestampQueued: res.BlockQueuedTime.Unix(),
235+
TxIndexQueued: res.TxIndex,
236+
ITxIndexQueued: res.ITxIndex,
235237
// Status: res.Status, // BEDS-1399
236238
TxHash: t.Hash(hexutil.Encode(res.TxHash)),
237239
Amount: res.Amount,

backend/pkg/api/types/validator_dashboard.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,8 @@ type GetValidatorDashboardTotalConsensusDepositsResponse ApiDataResponse[VDBTota
281281
type VDBWithdrawalsElTableRow struct {
282282
BlockQueued uint64 `json:"block_queued"`
283283
TimestampQueued int64 `json:"timestamp_queued" faker:"past_timestamp"`
284+
TxIndexQueued uint64 `json:"tx_index_queued"`
285+
ITxIndexQueued uint64 `json:"itx_index_queued"`
284286
BlockProcessed uint64 `json:"block_processed"`
285287
TimestampProcessed int64 `json:"timestamp_processed" faker:"past_timestamp"`
286288
Index uint64 `json:"index"`
@@ -334,6 +336,8 @@ type VDBConsolidationsElTableRow struct {
334336
Target uint64 `json:"target"`
335337
BlockQueued uint64 `json:"block_queued,omitempty"`
336338
TimestampQueued int64 `json:"timestamp_queued,omitempty" faker:"past_timestamp"`
339+
TxIndexQueued uint64 `json:"tx_index_queued"`
340+
ITxIndexQueued uint64 `json:"itx_index_queued"`
337341
BlockProcessed uint64 `json:"block_processed"`
338342
TimestampProcessed int64 `json:"timestamp_processed" faker:"past_timestamp"`
339343
Status string `json:"status" tstype:"'queued' | 'processed'" faker:"oneof: queued, processed"`

frontend/types/api/validator_dashboard.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ export type GetValidatorDashboardTotalConsensusDepositsResponse = ApiDataRespons
245245
export interface VDBWithdrawalsElTableRow {
246246
block_queued: number /* uint64 */;
247247
timestamp_queued: number /* int64 */;
248+
tx_index_queued: number /* uint64 */;
249+
itx_index_queued: number /* uint64 */;
248250
block_processed: number /* uint64 */;
249251
timestamp_processed: number /* int64 */;
250252
index: number /* uint64 */;
@@ -294,6 +296,8 @@ export interface VDBConsolidationsElTableRow {
294296
target: number /* uint64 */;
295297
block_queued?: number /* uint64 */;
296298
timestamp_queued?: number /* int64 */;
299+
tx_index_queued: number /* uint64 */;
300+
itx_index_queued: number /* uint64 */;
297301
block_processed: number /* uint64 */;
298302
timestamp_processed: number /* int64 */;
299303
status: 'queued' | 'processed';

0 commit comments

Comments
 (0)