Skip to content

Commit 062fde1

Browse files
committed
feat: timestamp filter alias
1 parent e4b854a commit 062fde1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

backend/pkg/api/enums/validator_dashboard_enums.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (c VDBDepositsElColumn) Int() int {
266266

267267
func (VDBDepositsElColumn) NewFromString(s string) VDBDepositsElColumn {
268268
switch s {
269-
case "", "block":
269+
case "", "block", "timestamp":
270270
return VDBDepositElBlock
271271
case "amount":
272272
return VDBDepositElAmount
@@ -301,7 +301,7 @@ func (c VDBDepositsClColumn) Int() int {
301301

302302
func (VDBDepositsClColumn) NewFromString(s string) VDBDepositsClColumn {
303303
switch s {
304-
case "", "slot":
304+
case "", "slot", "timestamp":
305305
return VDBDepositClSlot
306306
case "amount":
307307
return VDBDepositClAmount

backend/pkg/api/types/validator_dashboard.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ type VDBExecutionDepositsTableRow struct {
235235
GroupId uint64 `json:"group_id"`
236236
Block uint64 `json:"block"`
237237
Timestamp int64 `json:"timestamp" faker:"past_timestamp"`
238-
From Address `json:"from"`
238+
From Address `json:"-"` // TODO enable again
239239
Depositor Address `json:"depositor"`
240240
TxHash Hash `json:"tx_hash" faker:"tx_hash"`
241241
WithdrawalCredential Hash `json:"withdrawal_credential" faker:"withdrawal_credentials"`

frontend/types/api/validator_dashboard.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ export interface VDBExecutionDepositsTableRow {
202202
group_id: number /* uint64 */;
203203
block: number /* uint64 */;
204204
timestamp: number /* int64 */;
205-
from: Address;
206205
depositor: Address;
207206
tx_hash: Hash;
208207
withdrawal_credential: Hash;

0 commit comments

Comments
 (0)