@@ -44,7 +44,7 @@ export const commitHashSchema = z.string();
44
44
45
45
export const identityKeySchema = z . string ( ) ;
46
46
47
- export const uptimeNanosSchema = z . number ( ) ;
47
+ export const uptimeNanosSchema = z . coerce . bigint ( ) ;
48
48
49
49
export const tileTypeSchema = z . enum ( [
50
50
"sock" ,
@@ -71,9 +71,9 @@ export const tileSchema = z.object({
71
71
kind_id : z . number ( ) ,
72
72
} ) ;
73
73
74
- export const identityBalanceSchema = z . number ( ) ;
74
+ export const identityBalanceSchema = z . coerce . bigint ( ) ;
75
75
76
- export const voteBalanceSchema = z . number ( ) ;
76
+ export const voteBalanceSchema = z . coerce . bigint ( ) ;
77
77
78
78
export const rootSlotSchema = z . number ( ) ;
79
79
@@ -234,12 +234,12 @@ export const slotPublishSchema = z.object({
234
234
transactions : z . number ( ) . nullable ( ) ,
235
235
vote_transactions : z . number ( ) . nullable ( ) ,
236
236
failed_transactions : z . number ( ) . nullable ( ) ,
237
- priority_fee : z . number ( ) . nullable ( ) ,
238
- transaction_fee : z . number ( ) . nullable ( ) ,
239
- tips : z . number ( ) . nullable ( ) ,
237
+ priority_fee : z . coerce . bigint ( ) . nullable ( ) ,
238
+ transaction_fee : z . coerce . bigint ( ) . nullable ( ) ,
239
+ tips : z . coerce . bigint ( ) . nullable ( ) ,
240
240
compute_units : z . number ( ) . nullable ( ) ,
241
241
duration_nanos : z . number ( ) . nullable ( ) ,
242
- completed_time_nanos : z . number ( ) . nullable ( ) ,
242
+ completed_time_nanos : z . coerce . bigint ( ) . nullable ( ) ,
243
243
} ) ;
244
244
245
245
export const tpsHistorySchema = z . array (
@@ -360,11 +360,13 @@ export const summarySchema = z.discriminatedUnion("key", [
360
360
361
361
export const epochNewSchema = z . object ( {
362
362
epoch : z . number ( ) ,
363
+ start_time_nanos : z . string ( ) . nullable ( ) ,
364
+ end_time_nanos : z . string ( ) . nullable ( ) ,
363
365
start_slot : z . number ( ) ,
364
366
end_slot : z . number ( ) ,
365
- excluded_stake_lamports : z . number ( ) ,
367
+ excluded_stake_lamports : z . coerce . bigint ( ) ,
366
368
staked_pubkeys : z . string ( ) . array ( ) ,
367
- staked_lamports : z . number ( ) . array ( ) ,
369
+ staked_lamports : z . coerce . bigint ( ) . array ( ) ,
368
370
leader_slots : z . number ( ) . array ( ) ,
369
371
} ) ;
370
372
@@ -385,7 +387,7 @@ const peerUpdateGossipSchema = z.object({
385
387
386
388
const peerUpdateVoteAccountSchema = z . object ( {
387
389
vote_account : z . string ( ) ,
388
- activated_stake : z . number ( ) ,
390
+ activated_stake : z . coerce . bigint ( ) ,
389
391
last_vote : z . nullable ( z . number ( ) ) ,
390
392
root_slot : z . nullable ( z . number ( ) ) ,
391
393
epoch_credits : z . number ( ) ,
@@ -425,7 +427,7 @@ export const peersSchema = z.discriminatedUnion("key", [
425
427
] ) ;
426
428
427
429
const tsTileTimersSchema = z . object ( {
428
- timestamp_nanos : z . number ( ) ,
430
+ timestamp_nanos : z . string ( ) ,
429
431
tile_timers : z . number ( ) . array ( ) ,
430
432
} ) ;
431
433
0 commit comments