@@ -44,7 +44,7 @@ export const commitHashSchema = z.string();
4444
4545export const identityKeySchema = z . string ( ) ;
4646
47- export const uptimeNanosSchema = z . number ( ) ;
47+ export const uptimeNanosSchema = z . coerce . bigint ( ) ;
4848
4949export const tileTypeSchema = z . enum ( [
5050 "sock" ,
@@ -71,9 +71,9 @@ export const tileSchema = z.object({
7171 kind_id : z . number ( ) ,
7272} ) ;
7373
74- export const identityBalanceSchema = z . number ( ) ;
74+ export const identityBalanceSchema = z . coerce . bigint ( ) ;
7575
76- export const voteBalanceSchema = z . number ( ) ;
76+ export const voteBalanceSchema = z . coerce . bigint ( ) ;
7777
7878export const rootSlotSchema = z . number ( ) ;
7979
@@ -234,12 +234,12 @@ export const slotPublishSchema = z.object({
234234 transactions : z . number ( ) . nullable ( ) ,
235235 vote_transactions : z . number ( ) . nullable ( ) ,
236236 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 ( ) ,
240240 compute_units : z . number ( ) . nullable ( ) ,
241241 duration_nanos : z . number ( ) . nullable ( ) ,
242- completed_time_nanos : z . number ( ) . nullable ( ) ,
242+ completed_time_nanos : z . coerce . bigint ( ) . nullable ( ) ,
243243} ) ;
244244
245245export const tpsHistorySchema = z . array (
@@ -360,11 +360,13 @@ export const summarySchema = z.discriminatedUnion("key", [
360360
361361export const epochNewSchema = z . object ( {
362362 epoch : z . number ( ) ,
363+ start_time_nanos : z . string ( ) . nullable ( ) ,
364+ end_time_nanos : z . string ( ) . nullable ( ) ,
363365 start_slot : z . number ( ) ,
364366 end_slot : z . number ( ) ,
365- excluded_stake_lamports : z . number ( ) ,
367+ excluded_stake_lamports : z . coerce . bigint ( ) ,
366368 staked_pubkeys : z . string ( ) . array ( ) ,
367- staked_lamports : z . number ( ) . array ( ) ,
369+ staked_lamports : z . coerce . bigint ( ) . array ( ) ,
368370 leader_slots : z . number ( ) . array ( ) ,
369371} ) ;
370372
@@ -385,7 +387,7 @@ const peerUpdateGossipSchema = z.object({
385387
386388const peerUpdateVoteAccountSchema = z . object ( {
387389 vote_account : z . string ( ) ,
388- activated_stake : z . number ( ) ,
390+ activated_stake : z . coerce . bigint ( ) ,
389391 last_vote : z . nullable ( z . number ( ) ) ,
390392 root_slot : z . nullable ( z . number ( ) ) ,
391393 epoch_credits : z . number ( ) ,
@@ -425,7 +427,7 @@ export const peersSchema = z.discriminatedUnion("key", [
425427] ) ;
426428
427429const tsTileTimersSchema = z . object ( {
428- timestamp_nanos : z . number ( ) ,
430+ timestamp_nanos : z . string ( ) ,
429431 tile_timers : z . number ( ) . array ( ) ,
430432} ) ;
431433
0 commit comments